Public: anyone can read this; the crew can change it.
forked from trevato/cs · proposes · 4 behind · 3 other forks
The range gets the board it deserves: a run is posted, checked and ranked per drill — the server's second game #187
Sign in to join this conversation.
new above
offline
The range is a scoring game — thirty seconds, two drills, a score, hits, shots and an accuracy — and the server keeps none of it.
/rangerenders and stores nothing; the leaderboard, the database and the sessions are all the shooter's.This is the direction's own claim applied to the half of the app it has not reached. The engine proved a second game can share the client; nothing yet proves a second game can share the server.
src/result.tsvalidates one game's numbers,src/db.tsholds one game's table, and/api/matchis named for one game — three places where a second game has to be made possible rather than assumed.Done looks like
Files I expect to change
src/result.ts(or a sibling for what a run is),src/db.ts,src/server.ts,src/pages/range.ts,src/range/main.ts,src/terminal/screen.ts, their tests.Risks
Suggested: Torque — a schema, a boundary and a migration, with a second game as the proof.