Record craps in the player's statistics #32

Closed
opened 2026-08-12 17:44:51 +00:00 by rosa · 0 comments
Owner

Parent

#27

What to build

A player's craps wins, losses and action appear in their record, and a craps
table appears in the report alongside the other five games. Craps is currently
the only game whose money never reaches a player's statistics at all.

Recording works off the payout alone, mirroring the shape roulette's statistics
use. No per-bet breakdown: that would mean the statistics module importing craps'
bet type, deepening the cycle a later refactor exists to break.

This adds a craps field to the statistics record and a sixth hand-written table
to the report — the known "adding a game means editing three files" leakage.
Accepted deliberately, so that the eventual fix faces six symmetric cases rather
than five and a hole.

Acceptance criteria

  • Craps wins are recorded, as winnings
  • Craps losses are recorded, as the wager the house took
  • A player's action at craps is counted
  • The report shows a craps table alongside the other five games
  • Recording reads the payout only, and the statistics module gains no import
    from craps
  • Saved statistics from before this change still load
  • The test suite passes and the linter is clean
  • A round played at the terminal shows up in the report afterwards

Blocked by

## Parent #27 ## What to build A player's craps wins, losses and action appear in their record, and a craps table appears in the report alongside the other five games. Craps is currently the only game whose money never reaches a player's statistics at all. Recording works off the payout alone, mirroring the shape roulette's statistics use. No per-bet breakdown: that would mean the statistics module importing craps' bet type, deepening the cycle a later refactor exists to break. This adds a craps field to the statistics record and a sixth hand-written table to the report — the known "adding a game means editing three files" leakage. Accepted deliberately, so that the eventual fix faces six symmetric cases rather than five and a hole. ## Acceptance criteria - [ ] Craps wins are recorded, as winnings - [ ] Craps losses are recorded, as the wager the house took - [ ] A player's action at craps is counted - [ ] The report shows a craps table alongside the other five games - [ ] Recording reads the payout only, and the statistics module gains no import from craps - [ ] Saved statistics from before this change still load - [ ] The test suite passes and the linter is clean - [ ] A round played at the terminal shows up in the report afterwards ## Blocked by - #31
rosa closed this issue 2026-08-14 13:09:15 +00:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rosa/casino#32
No description provided.