1
0
mirror of https://github.com/captn3m0/modernart.git synced 2024-07-24 02:31:34 +00:00
modernart/enumtest.mzn
Nemo da83f6eda1 Implemented Nominal Turn Counting
- This ensures that every player gets atleast T|T-1 turns per round.
- Comments out drawone stuff for simplicity for now
- Does not consider double cards either
2020-06-11 03:45:17 +05:30

14 lines
359 B
MiniZinc

include "globals.mzn";
% Since the documentation is unclear, wrote this test to figure
% out whether enums wrap around or not.
enum Letters;
Letters= {A,B,C};
var Letters: x;
var Letters: y;
var Letters: z;
constraint x = enum_next(Letters, y);
constraint y = B;
% This is unsatisfiable, because nothing comes after x=C
constraint z = enum_next(Letters, x);