Inspiration

I wanted a geography game that a whole subreddit plays together: the same chain for everyone each day, a small bet on every card, and a comment section full of "how is Kazakhstan that big?". Ranking countries is quick to learn and surprisingly hard to get right, which suits a short daily ritual on Reddit.

World Chain has two modes: the shared daily chain, and an endless mode for after the daily.

What it does

Rank countries from highest to lowest by today's category: population, area, GDP per person, life expectancy or population density.

Every day the subreddit gets one new chain. You start with one country, and ten more arrive one at a time. Drag each one to its place in the ranking. Values stay hidden until you let go of the card, so every placement is a small bet: is Algeria bigger than Saudi Arabia?

Everyone gets the same ten countries in the same order, so the comments become a shared post-mortem: "Vietnam fooled me", "how is Kazakhstan that big?".

A daily you can actually win. The chain starts with very well-known countries far apart in the ranking and ends with closer calls. A wrong placement still adds the card in its true spot, so everyone faces exactly the same chain to the end. Two helps, once each per chain:

  • 💡 Hint: shows a related stat on every card for one turn (area on a Population day, life expectancy on a GDP day…).
  • 50:50: closes every spot but two, the right one and a nearby wrong one.

Finish without either and your result gets a 🧠 no help badge.

Results that talk back. After the tenth card you get your score, time and rank, plus:

  • how many players got each country right (the hardest are tagged tricky),
  • a histogram of everyone's scores ("you scored higher than 72% of players"),
  • the post's top 10,
  • a countdown to tomorrow's chain.

Built for Reddit

  • One post a day, automatically. A scheduled job posts 🌍 World Chain #N — rank 10 countries by <category> at 00:00 UTC. Installing the app posts today's chain right away. A moderator menu item reposts it if a scheduled post ever fails. A claim in Redis makes sure the same puzzle is never posted twice.
  • A feed card that changes every day. The post card fans out today's eleven flags like a hand of cards (shuffled, so the order stays secret) under Can you rank these 11 countries?, so each day's post looks different in the feed. It also shows the puzzle number and date, the category, the top three and the player count. Once you've played, it also shows your own result grid. The button changes from PLAY TODAY'S CHAIN to CONTINUE · 4/10, BEAT 10/10 · 1:01 or SEE MY RESULTS.
  • Result comments that can't be faked. "Post my result" comments as the player. Their own words come first, then a result card built on the server from stored data: 🟩🟩🟥🟩… 8/10 · 1:12 · rank #4 · 🔥 3-day streak · 🧠 no help.
  • Streaks. Finishing consecutive daily chains builds a streak, shown on the title screen and on the comment card.
  • Flair. Every post gets a flair from the app (🌍 Daily #3 · Population, ✏️ Player-made), so the subreddit can be filtered by type. From the results, players can show 🔥 5-day streak as their user flair. It updates with each daily they finish, and it is only ever set when they ask.
  • Make your own chain. Any player can build a chain and post it to the subreddit as their own post.
    • First choose what it's made of. Countries: type "J", pick Japan from the list, and the flag comes with it. Anything: your own words, with an optional picture for each item.
    • Then name what is being ranked ("World Cup titles"), give each of the 5–10 items a number, and post.
    • Other players play it exactly like the daily chain, with the same judging, leaderboard, stats, 50:50 and comment card.
    • The maker can play their own chain, but it isn't scored.
  • Endless mode. For after the daily: a random category, three lives, combo bonuses and a subreddit-wide endless leaderboard.

Fair play

  • Judged on the server. Each placement goes to the server one at a time. The server rebuilds the puzzle from its number with the same seeded code the client uses and re-judges the whole run, so a client can't submit a score.
  • One run per puzzle. Only the first run counts, and it can't be restarted.
  • Leave and come back. Progress is saved: close the post mid-chain and CONTINUE picks up at the next country.
  • Helps can't be farmed. Using a help is recorded on the server. The 50:50's pair is fixed per puzzle and card, so reloading can't reveal a second pair.

Player-made content, handled with care

  • Before posting, the maker says where the chain will be posted and under which name. It posts only when the player presses the button.
  • It asks players not to enter personal information or anything offensive, and says that chains are public and moderators can remove them.
  • Pictures are cropped to 128 px on the device and uploaded through Reddit's media service. The game only ever shows Reddit-hosted images.
  • All of a chain's text and pictures go into the post's userGeneratedContent for Reddit's safety review.
  • The server re-checks every chain:
    • 5–10 items, short single-line text with control characters removed;
    • finite numbers with no ties, and no repeated items;
    • real countries, and small JPEG/PNG/WebP pictures only;
    • at most 10 chains per player per day.

How I built it

  • Devvit Web, TypeScript and esbuild. The browser client, the Devvit server and a shared module hold the country data, the seeded puzzle generator and the judging. Client and server run the exact same rules.
  • Redis for runs, boards, histograms, per-country success rates, streaks and player-made chains.
  • Devvit features:
    • scheduler (daily post);
    • onAppInstall trigger;
    • post and user flair;
    • moderator menu items;
    • runAs: 'USER' for posts and comments;
    • media uploads;
    • inline feed card plus expanded game view.
  • Sound. Sound effects are decoded at load and played through Web Audio. A loading screen makes sure the music starts properly inside Reddit's webview.
  • Motion. Cards slide into place with FLIP animations: a correct card glides in and pushes the others aside. A wrong one shows ✕ where it was dropped, then slides to where it really belongs.
  • Screen sizes. Layouts are tested from small phones (340×533) to Reddit's short desktop modal (652×538).

Challenges I ran into

  • Making a daily puzzle fair. In endless mode, mistakes cost lives until your run ends. A shared daily needs everyone to see the same ten countries whatever they do. The answer: a wrong card still joins the chain in its true spot.
  • Difficulty. In early testing I often got only one or two right, because later cards came from all 110 countries. Now:
    • every country comes from the 50 best-known (the first four from the top 25);
    • each new country is at least 8 places away in the ranking from everything already in the chain.

Simulated over 300 days with a model player, the average went from 6.5 to 8.0 out of 10.

  • Running inside Reddit.
    • Sound had to be instant inside the webview, and music can only start after a tap inside the game itself.
    • Layouts had to fit Reddit's short desktop modal.
    • Every tool that writes to Reddit as the player needed safe, explicit flows.

What I learned

  • A daily game is a social object. The comments, the shared result card and the per-country success rates matter as much as the puzzle itself.
  • Devvit Web. I learned to design for two surfaces, a small inline feed card and the expanded game. Webviews also have rules about when audio can start.
  • Reddit's own features. Flair goes through templates. I also learned how scheduled posts, moderator menu actions, triggers and media uploads fit together.
  • Fairness has to live on the server. A seeded generator shared by client and server lets the server check every move cheaply.

What's next

  • Publish after the hackathon, so other communities can install World Chain.
  • Weekly themes built from player-made chains.

Built With

Share this project:

Updates

Submission history