# yaml-language-server: $schema=../tactic.schema.json
# Tactic for docs/examples/pig.yaml: keep rolling until the pot is 8, or until stopping wins.
# Rules are tried top to bottom; the first one whose `when_x` holds picks the action.
tactic: pig-tactic
game: pig
label: "Stop at a pot of 8, or as soon as stopping wins"
rules:
  - at: step choice
    when_x: "pot >= 8 or score[current] + pot >= GOAL"
    pick: stop
  - at: step choice
    pick: roll
