Settle the craps pay table: the Field on 12, and bar-12 #33
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rosa/casino#33
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#27
What to build
Two places where the craps code and the module's own rules comment disagree get
a decision, each behind a test that names the rate chosen.
The Field pays double on both 2 and 12, where the rules comment says 2:1 on 2 and
3:1 on 12. And Don't Pass wins outright on 12, where the comment calls 12 a push
for both sides of the line — the bar-12 every craps table has.
Both are rules choices rather than defects: nothing in the code arbitrates, so
somebody has to. Whichever way each goes, the outcome is a test that states the
rate, so the next reader finds a decision instead of an accident.
The push outcome this needs already exists — #31 puts it in the payout type
without anything yet producing one.
Acceptance criteria
comment agree
visible one
counts as neither a win nor a loss in their record
Blocked by