Week 1 – 1/10/15

This weeks assignment is to write out the instruction (pseudocode) that one would give a “simple” computer to play the following game.

1. Ask the player for her name

2. Tell the player she has 6 chances to guess a random number between 1-20.

3. Have the computer select a random number between 1-20

4. ┬áHave the player guess a number. Let the computer respond with “You Win” , “too low” or “too hi”

5. After 6 guesses the computer responds with “You Loose”

Leave a Reply