This project teaches children how to use
while loops and random numbers to create various versions of a number guessing game.
For this project, Python will need to be installed. It is recommended that version 3.2 of Python is installed.
Children can also make use of the materials which accompany these challenges. Files included in the ’Project Materials link:
Make sure that each child has read and write access to their own copy of these resources.
You can find a completed version of this project’s challenges by clicking the ‘Project Materials’ link for this project, which contains:
whileloops in a program;
- Use of the
- Adding comments to a program;
- Boolean data type.
- Keeping score - using a variable to keep track of the player’s score;
- Fixing the input - allowing more robust user input;
- Losing the game - changing the game logic;
- Twenty-one - using
whileloops and random numbers to create a blackjack-style game.