What it is

Gridlock Daily is a daily sliding-car puzzle built on Reddit's Developer Platform (Devvit Web). Every UTC day the whole community gets the same 6x6 traffic jam: slide the cars out of the way and drive the red one out through the exit on the right. A new "Gridlock Daily #N" post is created every day at 00:05 UTC, so there is one puzzle, one leaderboard and one conversation per day.

How it plays

  • Drag a car along its length, or tap a car and use the arrow keys. Sliding one car any distance is one move.
  • Par is the fewest moves possible, computed by a breadth-first search over every reachable board. Undo and Reset are free. Hint shows the next optimal move; a run that used hints is saved but kept off the leaderboard and labelled on the result card.
  • Difficulty ramps through the week (par bands: Mon 6-9 up to Sun 18-26). The puzzle is generated from the UTC date, so the client and the server produce the identical board, and every board is verified solvable.
  • When the red car is free it drives off the board and a result card shows moves against par, time, streak, a histogram of how everyone did, and a copyable emoji summary.

Built for Reddit

  • Interactive custom post with a fast inline splash (puzzle number, difficulty, a small board preview, streak, solve count) and an expanded game view.
  • Redis-backed daily leaderboard (fewest moves, then fastest time), per-day move histogram and per-user streaks.
  • The move count is verified on the server: the client sends its list of moves and the server replays them on its own copy of the puzzle, rejecting anything that is not a legal sequence ending at the exit. Time is client-reported, which the README says plainly.
  • Scheduler cron task posts each day's puzzle with a per-day Redis guard against duplicate posts; an install trigger and a moderator menu item can also post one.
  • Optional "Share as comment" posts your result from your own account only after a second confirming tap; Copy and Share are the defaults.
  • Text fallback for clients that cannot render the web view; logged-out players can play, with a prompt to log in to save a streak.
  • Light and dark themes, keyboard-focusable cars with labels and live-region announcements, reduced-motion support, and no external network calls, fonts or assets.

Testing and honesty notes

  • Unit tests cover determinism of the daily board, solvability and par for 200 consecutive days, the replay validator, and streak logic. The app type-checks and builds, and was uploaded and installed on a test subreddit, where I played a full puzzle end to end (drag/keyboard moves, server-verified submission, result card, leaderboard).
  • It has not been played by other people yet, so there are no player numbers to report. About 7 percent of generated days land a few moves outside their weekday band; they are still solvable.
  • It was built by Rishabh Bansal with AI coding assistance (Claude Code) and the Devvit docs.

Links

Built With

Share this project:

Updates

Submission history