2020-06-10 19:17:54 +00:00
|
|
|
include "gameplay.mzn";
|
2020-06-10 13:03:07 +00:00
|
|
|
enum Players;
|
|
|
|
enum Artists;
|
|
|
|
enum Rounds;
|
|
|
|
|
2020-06-10 22:15:17 +00:00
|
|
|
Players = {Nemo,Jana, Adam};
|
2020-06-10 13:03:07 +00:00
|
|
|
Artists = {Krypto,KarlGitter,ChristinP,Yoko,LiteMetal};
|
2020-06-10 22:15:17 +00:00
|
|
|
Rounds = {Round1, Round2, Round3, Round4};
|
2020-06-10 13:03:07 +00:00
|
|
|
|
|
|
|
% Number of cards per round per player per artist
|
|
|
|
array[Rounds,Players,Artists] of var int: visible_count_per_round_per_artist_per_player;
|
2020-06-10 14:11:00 +00:00
|
|
|
|
2020-06-10 18:44:01 +00:00
|
|
|
% First player every Round
|
|
|
|
array[Rounds] of var Players: first_player;
|
|
|
|
|
|
|
|
% Closing player every Round
|
|
|
|
array[Rounds] of var Players: last_player;
|
|
|
|
|
2020-06-10 14:11:00 +00:00
|
|
|
% Total points that an artist has in a given round
|
|
|
|
array[Rounds,Artists] of var int: total_score_per_round_per_artist;
|
2020-06-10 13:03:07 +00:00
|
|
|
|
2020-06-10 14:15:22 +00:00
|
|
|
% Score a player gets in each given round
|
2020-06-10 22:15:17 +00:00
|
|
|
array[Rounds,Players] of var int: RoundScore;
|
2020-06-10 13:03:07 +00:00
|
|
|
|
2020-06-10 14:15:22 +00:00
|
|
|
% Final score of a player
|
2020-06-10 22:15:17 +00:00
|
|
|
array[Players] of var int: Score;
|
2020-06-10 14:15:22 +00:00
|
|
|
|
2020-06-10 14:11:00 +00:00
|
|
|
% Total number of a cards of an artist that were PLAYED this round
|
2020-06-10 22:15:17 +00:00
|
|
|
array[Rounds, Artists] of var int: CardsForArtist;
|
|
|
|
|
|
|
|
% Number of Turns played by the closing player this round
|
|
|
|
array[Rounds] of var int: NominalTurnCount;
|
2020-06-10 13:03:07 +00:00
|
|
|
|
2020-06-10 22:15:17 +00:00
|
|
|
solve maximize Score[Nemo];
|