Inspiration

Numblet was inspired by the desire to create a fun and challenging game that not only entertains but also enhances players' mental agility and reasoning skills. We aimed to combine math puzzles with a competitive edge to engage players in a brain-stimulating experience.

What it does

Numblet presents players with a target number and six available digits. Players must use these digits and basic mathematical operations (+, -, *, /) to form the target number. Each number can only be used once, and players have only one attempt to solve the puzzle. The first five players to solve the puzzle are displayed on the leaderboard, earning bragging rights for their quick thinking.

How we built it

Numblet was built using a webview-based interface optimized for Reddit. It integrates Redis for backend storage, where game states, player scores, and puzzle data are stored persistently. The game logic handles random puzzle generation, validation of expressions, and user interaction. The UI allows players to interact with the numbers and operators, and feedback is provided instantly after submission.

Challenges we ran into

  • Ensuring valid solutions: Generating puzzles with valid solutions while adhering to the rules was a key challenge.
  • Optimizing for webview: Adapting the game for Reddit’s webview environment required careful handling of UI and performance.
  • Leaderboard management: Managing a real-time leaderboard for the first five solvers while ensuring fairness and accuracy was complex.

Accomplishments that we're proud of

  • Successfully created a math puzzle game that’s both engaging and challenging, with real-time validation of solutions.
  • Implemented a competitive leaderboard that highlights the first five solvers, adding excitement for players.
  • Built an intuitive interface that runs seamlessly within Reddit’s webview.

What we learned

  • Webview Optimization: Understanding how to optimize games for webview environments to ensure smooth interactions.
  • Persistence and State Management: Leveraging Redis to effectively store dynamic game data like scores, game states, and leaderboard entries.
  • User Engagement: Balancing challenge and accessibility to create a game that keeps players motivated.

What's next for Numblet

  • Cross-platform support: Expand beyond Reddit’s webview to a full-fledged web and mobile application.
  • More puzzle variations: Introduce advanced difficulty levels, daily challenges, and timed modes to keep gameplay fresh and exciting.
  • Enhanced leaderboard features: Add global rankings and rewards for consistent top players.

Numblet combines the joy of puzzles with the thrill of competition—will you be one of the first five to solve today’s challenge? 🎉

Share this project:

Updates