Summary
- The Number Guessing Game is the final project where students create a game entirely from scratch.
- Players guess a number between 1 and 100, with different difficulty levels offering varying numbers of attempts (10 for easy, 5 for hard).
- After each guess, the game provides feedback on whether the guess was too high or too low.
- Students should play the game multiple times to understand the mechanics before creating their own version.
- The project requires independent problem breakdown, task planning, and implementation without starter code.
- Creative freedom is allowed for styling and wording as long as core functionality remains the same.
Resources
Text to ASCII Art Generator (TAAG)
Demo
Notes\ Code
Time to create a number guessing game for today’s project, which we get no hints or task to accomplish this. We’re flying solo. The program should pick a random number 1 to 100 and the user will input guess which are checked to see if they are correct. If the guess is wrong we give the user feedback that the number was too high or too low. And we should make 2 levels of this game, easy where the user gets 10 guess and hard where they only have 5 guesses. To make this easier, I should create a to do list, and add comments to the code. Also really test for edge cases. Also add our own ASCII art that we can get from the resources link. To make the ASCII work correctly we need to make it a docstring in the art file. Lets do it 😎
Tasks:
- [ ] Get a random number from 1 - 100
- [ ] Get user guess
- [ ] Compare if guess and random number are equal
- [ ] If so declare the user the winner
- [ ] Give feedback for higher or lower
- [ ] Add attempts