draft expressing games via config

This commit is contained in:
Bel LaPointe
2021-03-13 23:46:48 -06:00
parent b72c48f705
commit 60adca804b

33
games/poker.yaml Normal file
View File

@@ -0,0 +1,33 @@
# after each phase, given game, evaluate if end
end:
- op: playerCount
operand: 1
phases:
- op: charge
operand: 5
- op: deal
operand: 5
- op: bet
- op: trade
operand: 5
- op: bet
- op: end
# always return an number type (or zero if not qualified) w/ high card
# ie
# two pair and a card
# king, king, 4, 4, 3 => 1000 * (13) + 10 * (4) + 3 = 1343
# TODO: inverted ranking, I think negative is enough
hands:
- royalFlush
- straightFlush
- fourOfAKind
- fullHouse
- flush
- straight
- threeOfAKind
- twoPair
- pair
- highCard
deck:
exclude:
- joker