🚀 Inspiration The 100 Prisoners Riddle is a mind-bending probability puzzle that highlights the power of strategy and mathematical insight. I wanted to bring this classic problem to life through an interactive game, letting players test different strategies, analyze success rates, and experience the thrill of solving a high-stakes logical challenge.
🎮 What it does This web app recreates the 100 Prisoners Riddle, where players take on the role of prisoners trying to find their assigned numbers in a limited number of box openings. The game visualizes different strategies, tracks success rates, and offers an engaging way to understand the math behind the riddle.
🛠️ How I built it Frontend: React + TypeScript for a smooth and interactive UI. Backend: Serverless architecture using Firebase (or another backend solution, if applicable). Game Logic: Implemented the optimal cycle-finding strategy and randomized drawer contents using JavaScript.
Hosting: Deployed on Netlify for fast, easy access.
🚧 Challenges I ran into Designing an intuitive UI that explains the riddle without overwhelming new players. Ensuring the game logic correctly simulates the optimal strategy. Optimizing performance for running large-scale probability simulations efficiently.
🏆 Accomplishments that I'm proud of Successfully built an interactive game that makes a complex probability puzzle fun and accessible. Created an engaging UI that guides players through the logic of the riddle. Optimized the simulation to run smoothly, even with large-scale trials.
📚 What I learned The importance of balancing game mechanics with educational value. How to optimize React applications for real-time interactions. Deeper insights into probability theory and strategy optimization.
🔮 What's next for Prisoners Riddle Adding multiplayer mode for competitive or cooperative strategy testing. Implementing AI-driven hints and analytics to help players improve. Expanding the game with more probability-based puzzles and challenges.
As the sole developer, I handled every aspect of the project, including:
Game Development 🎮 – Implemented the core game logic, ensuring an accurate simulation of the 100 Prisoners Riddle with an optimized cycle-finding strategy.
Frontend Engineering 🖥️ – Designed and developed an interactive React + TypeScript UI for a smooth player experience.
Backend & Hosting ☁️ – Managed serverless deployment on Netlify and integrated backend logic where necessary.
User Experience & Design 🎨 – Created an intuitive layout that balances engagement and education, making the probability puzzle accessible to all.
Performance Optimization ⚡ – Ensured that the game runs efficiently, even when simulating thousands of trials.
Project Management 📅 – Oversaw the entire development cycle, from ideation to execution, working independently to bring the vision to life.
Log in or sign up for Devpost to join the conversation.