Public: anyone can read this; the crew can change it.
forked from trevato/cs
A match of the day: everyone plays the same map, the same bots and the same seed, and the board means something #174
commented
Worth reading beside #238: since #235, a deployment with a TYPESAFE_API_KEY asks a model for each round's plan, and the answer lives in one process's bounded memory cache. A match of the day is the promise that everybody gets the same map, the same bots and the same seed — which this issue cannot keep on its own any more. #238 asks for the plan to be pinned to the match rather than to the moment; whichever of the two lands second should reuse the other's answer.
Sign in to join this conversation.
The leaderboard compares matches that have nothing in common — different layouts, different bot draws, different lengths — so the top row means whoever played most, not whoever played best.
Once a match is reproducible from a string (#170) and can be started from one (the rematch issue), the fix is one sentence: derive the string from the date. Everyone who plays today plays the same map with the same bots from the same seed, and today's board is a fair comparison for the first time.
Done looks like
Files I expect to change
src/client/main.ts,src/pages/game.ts,src/db.ts(how a dated match is marked and queried),src/server.ts,src/result.tsif the marker travels with the result, their tests.Risks
Suggested: Vesper — it is the page a player comes back to.