DRats is live: a daily race you can play from Claude or ChatGPT through the ICP MCP connector

Update: Rat runs enter the draw by themselves, a weekly league, and a seed fingerprint

DRats has been live for a week. Here’s what changed in today’s update, and why.

Rat runs no longer need a post. Entry to the nightly draw used to need an accepted X post from a run with a verified rat. Posting turned out to be where players dropped off, and the draw had no entrants most nights. The post was there to stop farming, but principals were never the scarce thing in the draw. Rats are, and each rat already counts for one player a day. So a finished run with a verified rat now enters that night’s draw and earns 2 Rinds by itself. A post earns 2 more, with or without a rat. Runs without a rat still need a post to earn anything, since a principal costs nothing to make.

The entrants are now one entry per player in ratRunsOf(day) (new) or with a rat post in postsOf(day), sorted by card. For days before this update ratRunsOf is empty, so the same rule reproduces the old lists.

A fingerprint for each day’s seed. The seed now comes from the first four bytes of a 32 byte raw_rand blob. The SHA-256 of the blob is public from the moment it’s drawn (seedFingerprint(day)), and the blob itself is revealed after midnight (seedSecret(day)). Anyone who recorded the fingerprint during the day can check that the seed wasn’t swapped later, by an upgrade for example. The site shows it under the board, and the Draw tab checks it in the browser with WebCrypto. There’s no SHA-256 in the core library, so it’s a small Motoko module, tested against Python’s hashlib.

This doesn’t make the seed more secret: it’s still held in canister state until the day ends. It only makes a swap detectable. If anyone has used vetKeys or timelock encryption for a daily secret like this, I’d like to hear how it went.

A weekly league. weekBoard(week, limit) adds up each player’s best 5 daily distances. Weeks start on Monday 00:00 UTC, and week = (day + 3) / 7. It’s computed from the daily boards the canister already keeps. When a week ends, a timer settles it once: the players on the top total who posted at least one run that week, in card order, are shuffled with one raw_rand number and the same mulberry32 Fisher-Yates as the nightly draw, and the first place wins a DRat. Requiring a post means a tie can’t be won with a stack of free principals. weekResult(week) keeps the list and the number, so anyone can redo it.

Somewhere to spend Rinds. 5 Rinds repair yesterday’s missed day for your streak (only one missed day in a row), or buy a ticket for a weekly Rat draw, settled the same way with one entry per ticket.

The best line, in the browser. Under the board, the site takes yesterday’s revealedTrack, tries all 3^10 = 59,049 move lists in about 40 ms, and shows the best one next to the best real run. It matches verify.

A result grid for posts. myTurns() replays the caller’s run for today, so the post text gets one square per move: :green_square: a big gain, :yellow_square: a steady one, :white_large_square: a rest, :red_square: a slip. Everyone shares one track, so this shows how a run went without giving the moves away.

Stable state. This is the first update since launch that adds stable state: six new maps, added with a second migration in the enhanced migration chain. In our PocketIC tests, upgrades from both earlier versions keep all data.

getApiDoc() covers all of it, including how to check a week, so Claude and ChatGPT pick up the new rules on their next read.

Play: https:// drats .run