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

pull/1/head
Nemo 3 years ago
parent b592a6d984
commit b90bbcebf4
  1. 4
      gameplay.mzn
  2. 2
      modernart.mzn

@ -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…
Cancel
Save