1
0
mirror of https://github.com/captn3m0/modernart.git synced 2024-07-24 02:31:34 +00:00
modernart/dealing.mzn
Nemo da83f6eda1 Implemented Nominal Turn Counting
- This ensures that every player gets atleast T|T-1 turns per round.
- Comments out drawone stuff for simplicity for now
- Does not consider double cards either
2020-06-11 03:45:17 +05:30

27 lines
581 B
MiniZinc

% This file deals with dealing of new cards every Round
% Usable variable from here is CardsDealtPerRound[Rounds]
array[Rounds] of var int: CardsDealtPerRound;
constraint CardsDealtPerRound[Round1] = 13;
constraint CardsDealtPerRound[Round2] =
if card(Players) < 4 then
6
else if card(Players) = 4 then
4
else
2
endif
endif;
constraint CardsDealtPerRound[Round3] =
if card(Players) < 4 then
6
else if card(Players) = 4 then
4
else
2
endif
endif;
constraint CardsDealtPerRound[Round4] = if card(Players) = 2 then 3 else 0 endif;