mirror of
https://github.com/captn3m0/modernart.git
synced 2024-09-07 07:46:27 +00:00
Add a constraint to ensure we don't any round with less than zero cards
This commit is contained in:
parent
b592a6d984
commit
b90bbcebf4
@ -54,6 +54,10 @@ constraint forall(p in Players) (
|
||||
StartingCardsInHand[Round4,p] = StartingCardsInHand[Round3,p] - TotalCardsPlayed[Round3,p] + CardsDealtPerRound[Round4]
|
||||
);
|
||||
|
||||
constraint forall(r in Rounds, p in Players) (
|
||||
StartingCardsInHand[r,p] >= TotalCardsPlayed[r,p]
|
||||
);
|
||||
|
||||
% TODO: Move to simultanouse
|
||||
% The last player must have played atleast one card of the top artist
|
||||
constraint forall(r in Rounds) (
|
||||
|
@ -3,7 +3,7 @@ enum Players;
|
||||
enum Artists;
|
||||
enum Rounds;
|
||||
|
||||
Players = {Nemo,Jana, Adam};
|
||||
Players = {Nemo, Jana, Adam};
|
||||
Artists = {Krypto,KarlGitter,ChristinP,Yoko,LiteMetal};
|
||||
Rounds = {Round1, Round2, Round3, Round4};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user