The Monty Hall Game is a fun and interactive simulation of the famous probability puzzle. Built using React.js, this game allows players to experience the counterintuitive nature of probability in the classic "Three Doors" scenario.
- Choose one of the three doors 🚪.
- The host will reveal a goat 🐐 behind one of the other two doors.
- Decide whether to stick with your original choice or switch to the remaining closed door.
- The door is revealed! If it hides the car 🚗, you win!
- Interactive UI with animated door flipping.
- Option to switch or stick with the original choice.
- Tracks the number of wins and losses.
- Displays all doors at the end of the game.
- Responsive design for desktop and mobile.
This project helps students understand:
- The Monty Hall problem and probability.
- How to manage state in React.
- Using event handlers for interactivity.
- Basic CSS animations for UI effects.
- Add game statistics and a win-rate tracker.
- Implement sound effects and animations.
- Deploy the game online.
Pull requests are welcome! If you find bugs or have ideas for improvements, feel free to open an issue.
📌 Star this repo ⭐ if you like it! Happy coding! 🚀