What it is

Lamplit is a daily logic puzzle that lives inside a Reddit post. Every night at 00:00 UTC a new town appears, the same for everyone. You stand lamps on the streets until the whole town is lit.

Three rules, learned in a few taps:

  1. Tap a street to stand a lamp on it. A lamp lights its row and column until a building blocks it.
  2. A numbered building wants exactly that many lamps touching its sides.
  3. Light every street. No lamp may shine on another lamp.

A town takes one to five minutes. Every town has exactly one answer and never needs a guess. When the last street lights up you get your time, your streak, your place on the night's board, and one button to post a spoiler-free line in the comments.

The rules are not ours. They are the rules of Light Up, also known as Akari, a logic puzzle type published by Nikoli, which developed it in 2001. Lamplit is our own build of that puzzle as a daily Reddit game, written for this hackathon. It is not a port.

What is new

On top of the Light Up rules, Lamplit adds:

  • A town made from the date. A seeded generator builds each night's map from that day's date, so everyone gets the same town.
  • One answer, no guessing. A town is kept only if a solver that uses steps a person can follow can finish it.
  • A measured week. Grid size and level follow the weekday, from a 6 x 6 on Monday to the hardest 8 x 8 on Sunday.
  • A timed board with a floor. Each hint adds 30 seconds. A solve under 30, 45 or 60 seconds, by grid size, gets no place on the board.
  • A Reddit layer. A named town in every post title, streaks, opt-in streak flair, a spoiler-free comment line, and the last 28 towns as practice.

SKILLMERC has two other entries in this hackathon: Scatterhoard, a hide-and-seek where players bury and dig up acorns, and Satchel, a route-planning game with a two-parcel bag. Lamplit is the only logic grid of the three. Its rules, generator and solver are used by neither of the others.

How to try it (for judges)

  • Community: r/lamplit_game_dev. It is public and small, so no approval is needed.
  • Demo post on 15 Nov: Lamplit No. 5: Bramblend (Sunday, the hardest town of the week). It is an older town now, so its button reads "Play No. 5" and it plays as practice. For tonight's town, open the newest post and tap "Light the town".
  • The app posts a new town at 00:01 UTC every day, so the newest post at the top of the community is always tonight's town. Older posts stay playable as practice.
  • App listing: developers.reddit.com/apps/lamplit-game. The app is uploaded and not submitted for publishing, as the rules ask.
  • Streak flair is off until you switch it on, on the result card.

How it uses Reddit

  • Interactive post (Devvit Web). The feed card is a small inline view that draws the night's map and level from data attached to the post, so it appears without a server call. The game opens from it in about a second.
  • Scheduler. A daily job at 00:01 UTC creates the night's post, titled with the town number, name, date and level. Nobody has to press anything.
  • Redis. Sessions and start times, the night's leaderboard (a sorted set by time), streaks, the community streak board, and a count of where everyone placed their first lamp.
  • Comments. The app pins a short how-to comment on each post. After solving, "Post my time in the comments" posts one line from the player's own account, for example Lamplit No. 2 (Harrowhaven) · lit in 1:44 · 1 hint · 2 nights in a row. It only happens when the player presses the button, once per town.
  • Flair. Players can switch on streak flair in the community: Matchbearer (1 night), Wick Trimmer (3), Lamplighter (7), Night Warden (30), Keeper of the Flame (100). Off by default.
  • Devvit Journeys. Start, hint and finish are wired as journey events, ready for when the app is published.
  • Moderator menu. "Lamplit: post tonight's town" creates the post if it is missing.

What is distinctive

  • Every town is made from its date and proven to have one answer. Nothing is hand-written or stored in advance. A seeded generator lays out the buildings, then a solver that only uses steps a person can follow removes signs one at a time and keeps the town only if it still solves by logic. The tests check this again with a separate exhaustive search over a simulated year (371 days).
  • A difficulty curve through the week. Monday is a gentle 6 x 6 with extra signs. Midweek moves to 7 x 7 and adds one or two "what if" steps. Saturday and Sunday are 8 x 8, and Sunday is the hardest. The level is measured by the solver, not guessed.
  • Fair play. The answer never reaches the browser before you solve. The server checks every answer and checks every time against its own clock. A town lit in under 30 seconds on a 6x6 grid, 45 seconds on a 7x7 or 60 seconds on an 8x8, before hint penalties, keeps your streak but gets no place on the board and cannot be posted as a time in the comments. For such a solve the feed card and the copied result line show no time.
  • Comfort. Sound is off by default. Errors carry a "!" badge and a pattern, so they do not rely on colour alone. Every cell has a screen-reader label. No ads, no purchases, no nagging.
  • Past towns. The last 28 towns can be replayed as practice. Practice never changes a streak or a board.

How we built it

Devvit Web 0.15, TypeScript, React for the game view, a plain script for the feed card, Hono on the server, Redis and the Devvit scheduler. The puzzle rules, generator, scoring and streak logic are shared code. The project has 70 unit tests. We playtested on Reddit at phone size (390 x 844) and on desktop, and fixed what the playtest found: a stale saved board, a toast that covered the thumb controls, a header that ran out of room on narrow screens, a clock that kept running behind the help sheet, and header buttons below 44 px.

What we learned

A daily game stands or falls on the first ten seconds, so the feed card had to show the town itself and the game had to open on the map with no setup screen. Measuring difficulty with a solver that works like a person gave a week that feels fair, where guessing band sizes did not.

What is next

Tune the weekday levels from real solve times once more people play, and stop the feed card from showing "Light the town" for a moment to players who have already solved.

Made by SKILLMERC.

Built With

Share this project:

Updates

Submission history