Give a Come bet a point of its own #35

Closed
opened 2026-08-14 03:20:24 +00:00 by rosa · 1 comment
Owner

Parent

#27

What to build

A Come or Don't Come position gets a point of its own.

Today the engine reads such a position against the same totals as the line on
every roll it stands for, and takes whatever is still standing when the round
ends. At a table the position's first roll is its own come-out — 7 or 11 pays
Come, 2 or 3 pays Don't Come, the 12 is barred — and any other total becomes
that position's point, which it then rides until the point or a 7 arrives.

Four things follow from the gap:

  • A seven-out takes a Come position even when that 7 is the position's own
    come-out. A table pays it.
  • A Come position never travels. The total that should become its point does
    nothing, and neither does the repeat that should pay it — while a second 11
    pays it again, which a position sitting on a point cannot do.
  • The bar on the 12 covers every roll a Don't Come position stands for, not
    only its come-out, because the engine cannot tell which roll is its first.
  • Two Come positions cannot sit on different numbers, because there is nowhere
    to put the number. The point belongs on the position, not on the round.

One thing here is a decision rather than a defect. At a table a Come position
still standing when the point is hit stays up for the next come-out. This
engine's round has no next, so somebody has to say what becomes of it —
returned, or carried into a round the engine does not yet have.

Acceptance criteria

  • The first roll a Come or Don't Come position sees settles it the way a
    come-out settles the line: 7 or 11 pays Come, 2 or 3 pays Don't Come, and
    the 12 pushes Don't Come
  • Any other total becomes that position's point, and the position stands
    until its point or a 7 arrives
  • Hitting a Come position's point pays it 1:1; a 7 before it takes the
    position and pays Don't Come
  • A seven-out that is a Come position's own come-out pays it, where it
    takes one already riding a point
  • Several Come positions can stand on points of their own in the same round
  • The bar on the 12 applies to a Don't Come position's come-out roll alone
  • What becomes of a Come position still standing when the round ends is
    decided, and the decision has a test
  • The module's rules comment agrees with what the code does
  • The test suite passes and the linter is clean

Notes

The Come bets the table takes today were written against the line's rules
because the line is what the engine models. Nothing about the current behaviour
is arbitrary — it is the line's rules applied to a bet that does not follow
them.

## Parent #27 ## What to build A Come or Don't Come position gets a point of its own. Today the engine reads such a position against the same totals as the line on every roll it stands for, and takes whatever is still standing when the round ends. At a table the position's *first* roll is its own come-out — 7 or 11 pays Come, 2 or 3 pays Don't Come, the 12 is barred — and any other total becomes that position's point, which it then rides until the point or a 7 arrives. Four things follow from the gap: - A seven-out takes a Come position even when that 7 is the position's own come-out. A table pays it. - A Come position never travels. The total that should become its point does nothing, and neither does the repeat that should pay it — while a second 11 pays it again, which a position sitting on a point cannot do. - The bar on the 12 covers every roll a Don't Come position stands for, not only its come-out, because the engine cannot tell which roll is its first. - Two Come positions cannot sit on different numbers, because there is nowhere to put the number. The point belongs on the position, not on the round. One thing here is a decision rather than a defect. At a table a Come position still standing when the point is hit stays up for the next come-out. This engine's round has no next, so somebody has to say what becomes of it — returned, or carried into a round the engine does not yet have. ## Acceptance criteria - [ ] The first roll a Come or Don't Come position sees settles it the way a come-out settles the line: 7 or 11 pays Come, 2 or 3 pays Don't Come, and the 12 pushes Don't Come - [ ] Any other total becomes that position's point, and the position stands until its point or a 7 arrives - [ ] Hitting a Come position's point pays it 1:1; a 7 before it takes the position and pays Don't Come - [ ] A seven-out that is a Come position's own come-out pays it, where it takes one already riding a point - [ ] Several Come positions can stand on points of their own in the same round - [ ] The bar on the 12 applies to a Don't Come position's come-out roll alone - [ ] What becomes of a Come position still standing when the round ends is decided, and the decision has a test - [ ] The module's rules comment agrees with what the code does - [ ] The test suite passes and the linter is clean ## Notes The Come bets the table takes today were written against the line's rules because the line is what the engine models. Nothing about the current behaviour is arbitrary — it is the line's rules applied to a bet that does not follow them.
Author
Owner

This was generated by AI during triage.

Duplicate of #28, which specifies the same change and carries the agent brief.

#27 names #28 as where this simplification is tracked, and #28's brief covers
every criterion here: the bet's own come-out, the come point it travels to, the
independence of several positions, the bar on the 12 applying to a Don't Come
come-out alone, and a 7 that arrives on a position's own come-out paying it
rather than taking it.

The one decision this issue left open — what becomes of a Come position still
standing when the round ends — is answered there by removing the situation. The
round no longer ends on a point hit, so a travelled position is never orphaned:
it stays up through the new come-out. A seven-out is the only ending left, and a
7 settles every bet the table takes.

The two criteria #28 was missing — the rules comment describing travel rather
than the line, and a clean run of mise run ci — have been added to it.

Closing here; the work continues on #28.

> *This was generated by AI during triage.* Duplicate of #28, which specifies the same change and carries the agent brief. #27 names #28 as where this simplification is tracked, and #28's brief covers every criterion here: the bet's own come-out, the come point it travels to, the independence of several positions, the bar on the 12 applying to a Don't Come come-out alone, and a 7 that arrives on a position's own come-out paying it rather than taking it. The one decision this issue left open — what becomes of a Come position still standing when the round ends — is answered there by removing the situation. The round no longer ends on a point hit, so a travelled position is never orphaned: it stays up through the new come-out. A seven-out is the only ending left, and a 7 settles every bet the table takes. The two criteria #28 was missing — the rules comment describing travel rather than the line, and a clean run of `mise run ci` — have been added to it. Closing here; the work continues on #28.
rosa 2026-08-15 06:34:05 +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#35
No description provided.