-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
symbols.mzn
22 lines (21 loc) · 1013 Bytes
/
symbols.mzn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% This file maintains common symbol constraints
% Since we are modelling each symbol individually (and not "on-a-card"), this results in
% symbol counts being calculated in isolation.
% Sanity constraints on each symbol file individually ensure
% that atleast one card of the symbol was played by the correct played
% they do not ensure that across symbols
% and hence, the same card may end up getting counted twice for different symbols.
% this file prevents such issues
% and may ultimately end up replacing separate symbol counters
constraint forall(r in Rounds, a in Artists) (
% Total number of cards played by all players
% MINUS total number of Draw One Cards played by all players
sum (p in Players) (
visible_count_per_round_per_artist_per_player[r,p,a] - DrawOneCard[r,p,a]
)
% MINUS total number of awards given this round
- (if AwardPlayedInRound[a] = r /\ AwardGiven[a] then 1 else 0 endif)
% Is the number of Symbol Cards played this turn
% and it can't be negative
>= 0
);