diff --git a/games/poker.yaml b/games/poker.yaml new file mode 100644 index 0000000..0494d9e --- /dev/null +++ b/games/poker.yaml @@ -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