Bets on the felt
Strategies
How strategies work
A strategy is a list of rules the engine checks in order. Every rule has three parts. A trigger, the moment it fires. Optional conditions, all of which must pass. And actions, executed top to bottom. The engine runs your rules at each trigger point around every roll, so a strategy is really a description of what you would do standing at the table.
The roll sequence
Knowing when triggers fire is most of the skill. Before every come-out roll, onComeOut. Before every roll of any kind, beforeEachRoll. Then the dice land and every bet resolves, firing onBetResolved once per resolution. Then the state changes and the matching trigger fires, onPointEstablished, onPointMade, onSevenOut, or onComePointEstablished for each come bet that traveled. So a rule on onPointEstablished acts after the point is already up, and a rule on onComeOut acts before the dice fly.
Build one from zero
Goal, place the 6 and 8 after every point, press each one unit on its first win only. New strategy, then start from the smallest working thing:
{
"variables": {"pressed6": 0, "pressed8": 0},
"rules": [
{
"trigger": "onPointEstablished",
"conditions": [],
"actions": [
{"type": "setVariable", "name": "pressed6", "value": 0},
{"type": "setVariable", "name": "pressed8", "value": 0},
{"type": "placeBet", "betType": "Place6", "amount": {"ref": "place68Unit"}},
{"type": "placeBet", "betType": "Place8", "amount": {"ref": "place68Unit"}}
]
},
{
"trigger": "onBetResolved",
"betFilter": "Place6",
"outcomeFilter": "win",
"conditions": [{"type": "variable", "name": "pressed6", "operator": "==", "value": 0}],
"actions": [
{"type": "pressBet", "betType": "Place6", "amount": {"ref": "place68Unit"}},
{"type": "setVariable", "name": "pressed6", "value": 1}
]
},
{
"trigger": "onBetResolved",
"betFilter": "Place8",
"outcomeFilter": "win",
"conditions": [{"type": "variable", "name": "pressed8", "operator": "==", "value": 0}],
"actions": [
{"type": "pressBet", "betType": "Place8", "amount": {"ref": "place68Unit"}},
{"type": "setVariable", "name": "pressed8", "value": 1}
]
}
]
}
Read it back in table language. Point goes up, reset my press flags, get the 6 and 8 working. Either one hits for the first time this cycle, press it a unit and mark it pressed. That translation test, JSON to spoken English, is the fastest way to spot a wrong rule.
Amounts
A plain number is dollars, "amount": 12. A ref scales with the table, {"ref": "tableMin", "multiplier": 2}. The refs are tableMin, place68Unit ($6-clean), place59Unit and place4_10Unit ($5-clean), bankroll, or any variable name. "max" works only on the four odds bet types. Wagers must land on payout-clean increments, place 6/8 in $6 steps, 4/5/9/10 in $5 steps, Horn in $4, C&E in $2. The engine rejects anything else with a message telling you the step.
Variables
Declared up top, they are your memory between rolls. Set with a literal, "value": 0, count with {"ref": "wins", "add": 1}, or scale with {"ref": "mg", "multiplier": 2}, which is how a martingale doubles. Used as amounts they read as dollars. Used in conditions they compare as plain numbers.
Modify a preset
System strategies are locked, so Clone one, then Edit the copy. Cloning Iron Cross and doubling the 6 and 8 is a one-line change, {"ref": "place68Unit", "multiplier": 2} on those two actions. Cloning is also the fastest path to a new idea, the Molly is a good skeleton for anything come-bet shaped, the Grinder for anything dark side.
Test before you trust
Simulate at 1 iteration first. That mode returns the full roll log and a table of every action your strategy took, with the roll number it happened on. Confirm the story matches your intent, watch for skipped placements in the note column. Then 1,000 iterations for the shape and 10,000 when you care about the tails. Avg ROI is the honest number, P10 and drawdown tell you what it feels like to sit through.
The rules that bite
Traveled Come and Don't Come bets and a Pass Line with a point are contract bets, takeDownBet on them is silently skipped, they ride to resolution. placeBet is a no-op when that bet is already up, so firing every roll is safe. The 12 is barred on the don't side, a push, never a win. A won standing bet, place, buy, lay, big, hardway, stays on the felt automatically, you only write rules for pressing or taking it down. The Fire Bet only books before a hand's first roll, placements at any other moment are skipped. And bust is strict, the run ends the moment the strategy cannot afford a computed amount, so a martingale with a short bankroll dies fast, which is the point.