HOME

Word guesser

George is writing a game that asks the user to guess a word.

The word to guess is a constant in the program - i.e. it is hardcoded into the program

The user has 10 guesses to try and guess the word.

Write the pseudocode for this game that:

1. Asks the user for their guess.

2. If it is not the same as the stored word it displays "incorrect" and the number of guesses they have left. They then must guess again.

3. If they cannot guess the correct word within 10 guesses, the program outputs "Game Over" and the game ends

4. If they do guess the correct word, the "congratulations you guessed the word in X tries" where X is the number of guesses

[7 marks]

Construct a pseudocode answer by drag&dropping and reordering lines from the left to the right.

Jumble the blocks! Try your code!