34 lines
562 B
YAML
34 lines
562 B
YAML
# 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
|