Debian Codegraph @

tests/spec/examples/tenpenki_4.mzn

raw
1 /***
2 !Test
3 expected:
4 - !Result
5 solution: !Solution
6 a:
7 - [true, true, true]
8 - [true, true, false]
9 - [true, false, false]
10 ***/
11
12 include "tenpenki.mzn.model";
13
14 nrows = 3;
15 ncols = 3;
16
17 constraint row_constraint(1, [3]);
18 constraint row_constraint(2, [2]);
19 constraint row_constraint(3, [1]);
20
21 constraint col_constraint(1, [3]);
22 constraint col_constraint(2, [2]);
23 constraint col_constraint(3, [1]);
24
25 % Solution:
26 %
27 % # # #
28 % # # .
29 % # . .
30