Prefactor: align craps' wager prompt with roulette's #30

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

Parent

#27

What to build

A player asked for a wager at the craps table is shown the most they can put up,
and a mistyped amount is asked again rather than ending the game. Craps' wager
prompt currently differs from roulette's on both counts — one arm propagates the
parse failure instead of reprompting, and the maximum is never shown.

Bring craps' prompt into line with roulette's, wording included. Six games each
carry their own copy of this loop and they have drifted apart; a later piece of
work collapses them into one. Aligning first means that collapse is a
deduplication rather than a decision about whose behaviour wins.

Acceptance criteria

  • The wager prompt shows the player the maximum they can wager
  • An amount that does not parse reprompts rather than ending the round
  • An amount the player cannot afford reprompts with the same wording
    roulette uses
  • The prompt's behaviour and wording match roulette's
  • The test suite passes and the linter is clean

Blocked by

## Parent #27 ## What to build A player asked for a wager at the craps table is shown the most they can put up, and a mistyped amount is asked again rather than ending the game. Craps' wager prompt currently differs from roulette's on both counts — one arm propagates the parse failure instead of reprompting, and the maximum is never shown. Bring craps' prompt into line with roulette's, wording included. Six games each carry their own copy of this loop and they have drifted apart; a later piece of work collapses them into one. Aligning first means that collapse is a deduplication rather than a decision about whose behaviour wins. ## Acceptance criteria - [ ] The wager prompt shows the player the maximum they can wager - [ ] An amount that does not parse reprompts rather than ending the round - [ ] An amount the player cannot afford reprompts with the same wording roulette uses - [ ] The prompt's behaviour and wording match roulette's - [ ] The test suite passes and the linter is clean ## Blocked by - #29
rosa closed this issue 2026-08-12 17:56:50 +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#30
No description provided.