draft expressing games via config
This commit is contained in:
33
games/poker.yaml
Normal file
33
games/poker.yaml
Normal 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
|
||||
Reference in New Issue
Block a user