Hangman flowcharts
In this new chapter it teaches me
about flowcharts which is a diagram that explains the algorithm of the program.
In this chapter it uses the flowchart hangman code and taking you how to do the
flowchart step-by-step.
In the flowchart you start with coming up with
the word bank to choose from which the computer uses the random.randint
function to choose from your word bank. It asks the player to guess a letter
from the secret word, that is from the word bank. After asking the player for
the letter it goes under two options: it is in the secret word or it is not. If
it is in the secret word it branches another arrow that would be has guessed
all and wins, vice versa if he did not guess it correctly. The flowchart is
recommended for advanced programs such as visual games.
Its a good approach to learn.
ReplyDelete