Skip to main content
cli-gamesBlog

How Scoring Works: Raw Metrics, 30-Day Boards, and Crown Time

How leaderboard scoring works on CLI-Games: every board ranks one raw number, scores count for only 30 days, and holding first place earns Crown Time.

coauthored by Claude Fable 5.2 and
leaderboardscoringgame-designcompetitionfairness

The intent for scoring here revolves around defending your title. Every game maintains a rolling 30-day window in which scores live ephemerally then phase out. Still, if you hold the high score during that window, you accrue crown time that is credited to your account permanently at a rate of 1 crown per board per day. So get cracking before the competition heats up! The rest of the article is about that as well as deciding how each game calculates an equitable score.

How Scoring Works

Every site with a scoreboard has to decide what number goes on it. We got that wrong the first time, in a way that was instructive enough to be worth writing down. This post covers the mistake, the fix and how the fix behaves today.

The problem with points

The first version used composite scores. Take the completion time, multiply by difficulty, add a streak bonus, subtract a hint penalty, and print the result. It makes a big number, and a big number looks like a score.

The trouble is that the number doesn't correspond to anything the player did, and every coefficient in the formula is something to optimize against. Within days of shipping it, a player showed us how fragile it was, and he was right. We patched the obvious exploits. Then we admitted the real problem, which was that we were manufacturing a number when we could have been measuring one.

Measure, don't calculate

Where a game has a natural measurement, that measurement is the score. Minesweeper, Sudoku and Solitaire rank by solve time in seconds, and lower is better. Baud ranks by words per minute. ShiftSum ranks by the score the game shows while you play, and Word-King by its Royal Score. Nobody can game a Minesweeper time except by solving the board faster.

Some games have no single clean measurement, and those keep a calculated score. Terminal Poker scores the chips you won plus a small bonus for your win rate. We would rather say that plainly than pretend every game reduces to a stopwatch.

Backspin and Dockhand can also be played by a script you write. Scripted runs share the board with hand-played ones and carry a "script" tag, so you can tell which kind of run you are looking at.

One board per mode

A 30-second Minesweeper solve on Easy isn't comparable with a 30-second solve on Hard, so each difficulty is its own board with its own first place. Minesweeper has three boards (Easy, Medium and Hard), Sudoku has four (the same three plus Expert), and Solitaire has two (draw 1 and draw 3). As of this writing that comes to 41 boards across 27 games, all of them on the leaderboard page.

The leaderboards page: The Range and Backspin boards, each with a crown and a running seconds counter beside the leader, and a guest tag on one row

The 30-day window

Only scores from the last 30 days count. The rule is Frank's, and it applies to every public board. A score that is set and never defended leaves its board 30 days later, and first place passes to the best score still inside the window.

This is our answer to the frozen leaderboard, the one where somebody set an unbeatable score years ago and the top of the board has been a monument ever since. Here every first place can be contested every month.

Crowns and Crown Time

The player in first place on a board holds its crown. A crown needs an account. Guests rank on every board, tagged "guest", but the crown goes to the highest registered player, and a guest's place lapses once the guest has been away for two days.

Single scores come and go, so we wanted one number for a player's overall standing. The obvious candidates both failed. Total points across games brings the composite problem straight back, one level up. A count of crowns held changes while you sleep and leaves nothing permanent to build toward.

The number we settled on is Crown Time. We first called it Leaderboard Time, and the terminal's help for the crowns command still uses that name. It works like this:

  • You post the best time on Minesweeper Easy and take its crown.
  • Every second you hold the crown is a second of Crown Time.
  • When someone beats your score, the seconds you earned stay on your account for good.
  • One crown held for 24 hours is one day of Crown Time.

Crowns add up. Hold three at once and you earn three days of Crown Time per day. The part we like most is the ceiling: a single board never pays more than one day per day, however far ahead its leader is. Being untouchable at one game earns exactly as much as being barely ahead at it. To earn faster you have to go and win somewhere else.

Each week the leaderboard page names a featured game, and its crowns earn double for that week.

When the time is counted

Early versions credited time once a day, from a snapshot at midnight UTC. Whoever held first place at midnight got the whole day. That paid people for taking a board one minute before midnight, which is a fine heist and a bad incentive.

Now a new best score queues its board for a check, and a worker runs every minute. When the leader changes, the outgoing holder's time is banked up to that moment and the new holder's clock starts. Time on crowns that are still held is banked once a day at 00:00 UTC. Between those points the pages add the seconds not yet banked, so a total keeps climbing while you hold a crown and never jumps when the daily job runs.

Crews

A crew of up to eight players is ranked on every board too. A crew's place counts its three best members: their scores are added together, or averaged on a time board. A crew that leads a board with at least two members contributing holds a crew crown. One strong player with seven passengers doesn't qualify.

A crew crown pays the same single rate as any other crown, divided evenly among the crew's accepted members. In a crew of eight, each member earns an eighth of a day per day from it. That time stacks with the crowns you hold yourself. It also makes roster size a real decision, because every seat a crew fills divides each of its crowns further.

A crown flag in Dustline pays the same rate to the player or crew whose name is painted on it.

Notice the tradeoff here. If you approach a crown-emitting site in Dustline, you might have the option to claim the crowns by entering your username or that of your crew. You could be a homie and write down your crew's name and award everybody crowns but collect a smaller share yourself. Or you could be selfish and write down your own, banking the full point. That's the tension. Which will you choose?

Something I'm noticing is missing from the article that's worth explaining: crowns come from more than just a high score in a single-player game. RPGs also hold crown sites, meaning solve a challenge or get to a certain position and claim the crown. It's like a physical capture-the-flag. Fitting, right? Some might require crew coordination to get to, some might require breaking into a system. So save those exploits!

Reading the boards

The leaderboard page shows every board as of the moment the page loaded. The score column is the raw metric: seconds, words per minute or points. The crown icon marks the holder, and the counter beside it is how long the current hold has lasted, in seconds. When we checked for this post, the longest hold on the page was past two and a half million seconds, which is about a month.

The Players page lists the top ten by total Crown Time, in days. A player who holds crowns right now also shows a rate, such as "+3/day".

The Players page: the Crown Time podium with three players, their totals in days and their rates per day, and places four to eight below

In the terminal, type leaderboard and a game's name to read its boards, crowns to see your own crowns and total, and crowns leaders for the standings.

Why this holds up

A raw metric has no formula to exploit. The 30-day window means a score has to be defended or it leaves the board. Crown Time pays one day per day per board, so the only way to earn more is to win on more boards.

People will still optimize, and they should. The optimizing now looks like getting better at the game, which is the kind we were hoping for.

See the leaderboards, or pick a game and post a score.