Hi! I’m Alaa, and this is one of my first Python projects.
It’s a fun little console game where you try to guess which hat hides the ball (O).
- The game shuffles three hats — only one hides the ball (
O). - Pick a number: 0, 1, or 2.
- The game will tell you if you guessed correctly.
- You can play again as many times as you like — it’s super fun!
- Interactive console game that actually responds to you 🎉
- Uses functions, loops, and conditionals — all beginner-friendly Python concepts
- Modular code structure that’s easy to read and expand
- Teaches how to combine multiple functions and user input
Make sure you have Python 3 installed. You can download it here: python.org.
- Clone this repository or download the files.
- Open a terminal in the project folder.
- Run the game with: