What my algorithm is supposed to do
Goal: (what my algorithm is supposed to do) Guess the picture
Steps:
Set guess: 0
Set Randomnum= Random picture between 1 - 4
Repeat (Loop) until guess = randomnum
Ask user: “Guess a picture between 1 - 4”
Set guess = User Answer
Output:”You guess it!”
Else
If guess > Randomnum Then
Output: failed - try again
Else
Output: emit sound
End if
End if
End Loop
Comments
Post a Comment