Inspiration

I've always loved logic puzzles like Mastermind. Saw the Reddit hackathon and thought - why not bring code-cracking to Reddit communities?

What it does

A puzzle game where you crack a secret code using logic clues. Each clue tells you if digits are correct, misplaced, or wrong. You get 5 attempts per puzzle, depends on difficulty levels. Features: multiple difficulty levels, daily/weekly challenges, leaderboards, and a progressive unlock system.

How we built it

  • React + TypeScript frontend
  • Devvit platform with Redis storage
  • Compact and simplified json to store puzzle data
  • Vite for builds, Tailwind for styling

Challenges we ran into

Mobile responsiveness took some iteration. How to store puzzle data took some effort to make it compact and Maintaining the leaderboard on daily puzzle was tricky.

Accomplishments that we're proud of

The game feels polished and plays smoothly on both mobile and desktop. Splash screen show's the topper of the daily puzzle and podium. I loved the point calculation as it consider number of tries, time.

What we learned

First time building on Devvit. Learned a lot about webviews, Redit app and the platform's app lifecycle. Also dove deep into constraint solving for puzzle generation.

What's next for CrackTheCodePuzzle

Weekly challenges, better leader boards, and a progressive unlock system.

Built With

Share this project:

Updates