What it is

VariantDoku Daily brings two new variant sudoku puzzles to Reddit every day: a quick 4×4 and a 6×6 that takes some thought. Every grid starts empty, with no given digits: the clues (killer cages, Kropki dots, XV, thermometers, arrows, palindromes and more) are enough to solve it by logic alone. Every puzzle is generated and logic-checked.

Just after 07:00 UTC each day the app opens a new post in r/variantsudoku, flaired Daily Game and pinned. The post shows both boards right in the feed, how many people have solved each, and your own result once you have one. Tap Play and the game opens full size: digits, centre and corner pencil marks, colours, a pen for lines and circles, undo and redo, keyboard shortcuts, and a sum helper for killer cages.

A daily that people compare

  • Fair times. Only your first attempt is ranked, and only if you didn't use Check (which shows wrong digits). The clock runs only while the puzzle is open and in front, so there's no rush.
  • Leaderboard. The trophy button shows each puzzle's five fastest times and marks your own; if you're further down, your place is shown below them.
  • One daily everywhere. The same two puzzles are VariantDoku's daily on every platform, so Reddit players share one leaderboard and one solver count with everyone who played them that day, and their times count on VariantDoku's daily board too.
  • Your result on every device. Solve on your phone, and the post on your desktop opens on your result.
  • Earlier posts stay useful. They show that day's final times and lead to today's post.
  • 10 languages: English, German, French, Japanese, Korean, Czech, Polish, Russian, Ukrainian and Traditional Chinese.

A port

This is a port of VariantDoku, my own variant sudoku game on iOS, Android and the web. The Reddit version was built during the hackathon, on Devvit Web.

How I built it

  • The game view reuses the web version's player (board drawing, input, pencil marks, rule cards) unchanged. A new Devvit server re-implements the daily's rules around it: sessions, Check, ranking, and a plausibility check that replays the solve.
  • Devvit's Redis keeps sessions, boards and results. Player data is keyed by Reddit account id, never by username, and expires within 30 days.
  • The launch screen and the leaderboard are new, made for Reddit's inline and expanded views on phones and desktop.
  • Getting the daily in without leaving Reddit. Devvit apps don't call outside servers, so VariantDoku's service writes each day's pair to a wiki page of the subreddit, encrypted (AES-256-GCM), because the app needs the solutions to check finished grids. The app's scheduler reads it every 5 minutes and opens the day's post. Results travel the same way: the apps' and website's anonymous times and solver counts come in, Reddit's go out.

Challenges

  • Fitting a full puzzle interface into Reddit's expanded view, from a desktop window down to a narrow phone.
  • One fair leaderboard across platforms without sharing anyone's identity.
  • A day that changes at 07:00 UTC everywhere, including for posts left open across the change.

What's next

More Reddit-native play: sharing your time as a comment on the day's post, and streaks.

Built With

Share this project:

Updates

Submission history