Add a constraint to ensure we don't any round with less than zero cards

This commit is contained in:
Nemo 2020-06-11 15:58:55 +05:30
parent b592a6d984
commit b90bbcebf4
2 changed files with 5 additions and 1 deletions

View File

@ -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) (