2020-06-10 22:15:17 +00:00
|
|
|
% This file deals with dealing of new cards every Round
|
|
|
|
|
|
|
|
% Usable variable from here is CardsDealtPerRound[Rounds]
|
2020-06-13 20:18:15 +00:00
|
|
|
array[Rounds] of var 0..13: CardsDealtPerRound;
|
2020-06-10 22:15:17 +00:00
|
|
|
|
|
|
|
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;
|