The tally: what the ledgers add up to, in every game's about panel, with the game's own lines through GameSpec.tally

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG
This commit is contained in:
Eric Wagoner
2026-09-23 18:16:41 -04:00
co-authored by Claude Fable 5.1
parent 1f412a2440
commit 7aa05536c2
6 changed files with 169 additions and 1 deletions
+2
View File
@@ -66,4 +66,6 @@ export interface GameSpec<State, Input> {
validate?(state: State, seat: SeatId, input: Input): string | null;
/** A seat's name from the state, for the hall and the chronicle. */
nameOf(state: State, seat: SeatId): string;
/** The game's own lines for the hall's tally, counted from a finished game: a label and how many it adds. */
tally?(state: State): Record<string, number>;
}