Skip to content

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 30 Aug 22:31
· 16 commits to main since this release

Craps Sim 0.5.1 fixes three defects in the strategy examples that ship with the app. An example is where most people meet this language, so these are worth naming plainly.

Fixed:

  • A pressed place bet climbed without limit. "Press twice, then collect" is supposed to press a number on its first two hits and regress after that; instead the stake ratcheted upward without stopping — past $384 within forty simulated sessions. Letting a rule's press survive the next roll had been done by writing the rule's figure into that bet's pressing system, and the pressed level then outlived the bet it belonged to: a seven-out took the bet, the next roll put a fresh one up at the base stake, and the table quietly topped it back to the old level, from which the rule pressed again. A flat pressing system now leaves a winner alone, which is what "flat" always meant. Only strategies that press from a rule were affected — the checkbox player and all twelve progressions are unchanged, and the pinned outcome checksums confirm it.

  • "The field is due" bet after one field number instead of two. A strategy is consulted before every roll including the very first, where the last total reads zero — and zero is under four, so a condition written as last-total <= 4 counted a field number that had not happened. The example was modelling the superstition one roll more eagerly than the superstition itself, which is the one thing that example exists not to do.

  • A condition shown as text named memory by its slot number. On the Rules tab, a condition too complex for the typed rows is displayed as its own text so you can edit it there — and that display was writing var0 >= 2 where the strategy says streak >= 2, naming something that appears nowhere in your strategy. The rows immediately below it had the names all along.

  • A refused regress described itself in the Replay ledger as a refused bet.

Both example defects are now pinned by tests that assert what the prose promises rather than only that the strategy runs: the 6 never passes its second press, and the streak never counts a roll that has not happened. Section 7 of the design specification is generated from those same examples, so the document cannot describe a strategy the tests do not run.

Full Changelog: v0.5.0...v0.5.1