程序代写代做代考 prolog Component

Component
Points
csce322hmwrk04part01.pl
csce322hmwrk04part02.pl
csce322hmwrk04part03.pl
csce322hmwrk04part04.pl
20 30 20 30
Total
100
1

Contents
1 Metadata 3
1.1 SubmittedFiles…………………………………………….. 3
1.2 webgraderRuns…………………………………………….. 3
1.3 diffs …………………………………………………. 3
2 webgrader Run 5
3 csce322hmwrk04part01.pl 6
3.1 part01test01………………………………………………. 6
3.1.1 Diff ………………………………………………. 6
3.1.2 InputFile……………………………………………. 6
3.1.3 SubmissionOutput……………………………………….. 6
3.1.4 SolutionOutput ………………………………………… 6
3.1.5 stderr …………………………………………….. 7
3.2 part01test02………………………………………………. 7
3.2.1 Diff ………………………………………………. 7
3.2.2 InputFile……………………………………………. 7
3.2.3 SubmissionOutput……………………………………….. 7
3.2.4 SolutionOutput ………………………………………… 7
3.2.5 stderr …………………………………………….. 7
3.3 part01test03………………………………………………. 8
3.3.1 Diff ………………………………………………. 8
3.3.2 InputFile……………………………………………. 8
3.3.3 SubmissionOutput……………………………………….. 8
3.3.4 SolutionOutput ………………………………………… 8
3.3.5 stderr …………………………………………….. 8
3.4 part01test04………………………………………………. 8
3.4.1 Diff ………………………………………………. 8
3.4.2 InputFile……………………………………………. 9
3.4.3 SubmissionOutput……………………………………….. 9
3.4.4 SolutionOutput ………………………………………… 9
3.4.5 stderr …………………………………………….. 9
3.5 part01test05………………………………………………. 9
3.5.1 Diff ………………………………………………. 9
3.5.2 InputFile……………………………………………. 9
3.5.3 SubmissionOutput……………………………………….. 10
3.5.4 SolutionOutput ………………………………………… 10
3.5.5 stderr …………………………………………….. 10
3.6 part01test06………………………………………………. 10 3.6.1 Diff ………………………………………………. 10 3.6.2 InputFile……………………………………………. 10 3.6.3 SubmissionOutput……………………………………….. 10 3.6.4 SolutionOutput ………………………………………… 11 3.6.5 stderr …………………………………………….. 11
3.7 part01test07………………………………………………. 11 3.7.1 Diff ………………………………………………. 11 3.7.2 InputFile……………………………………………. 11 3.7.3 SubmissionOutput……………………………………….. 11
2

3.7.4 SolutionOutput ………………………………………… 12
3.7.5 stderr …………………………………………….. 12
3.8 part01test08………………………………………………. 12 3.8.1 Diff ………………………………………………. 12 3.8.2 InputFile……………………………………………. 12 3.8.3 SubmissionOutput……………………………………….. 12 3.8.4 SolutionOutput ………………………………………… 13 3.8.5 stderr …………………………………………….. 13
3.9 part01test09………………………………………………. 13 3.9.1 Diff ………………………………………………. 13 3.9.2 InputFile……………………………………………. 13 3.9.3 SubmissionOutput……………………………………….. 13 3.9.4 SolutionOutput ………………………………………… 13 3.9.5 stderr …………………………………………….. 13
3.10part01test10………………………………………………. 14 3.10.1Diff ………………………………………………. 14 3.10.2InputFile……………………………………………. 14 3.10.3 SubmissionOutput……………………………………….. 14 3.10.4SolutionOutput ………………………………………… 14 3.10.5stderr …………………………………………….. 14 3.11part01test11………………………………………………. 15 3.11.1Diff ………………………………………………. 15 3.11.2InputFile……………………………………………. 15 3.11.3 SubmissionOutput……………………………………….. 15 3.11.4SolutionOutput ………………………………………… 15 3.11.5stderr …………………………………………….. 15 3.12part01test12………………………………………………. 15 3.12.1Diff ………………………………………………. 15 3.12.2InputFile……………………………………………. 15 3.12.3 SubmissionOutput……………………………………….. 16 3.12.4SolutionOutput ………………………………………… 16 3.12.5stderr …………………………………………….. 16 3.13part01test13………………………………………………. 16 3.13.1Diff ………………………………………………. 16 3.13.2InputFile……………………………………………. 16 3.13.3 SubmissionOutput……………………………………….. 16 3.13.4SolutionOutput ………………………………………… 17 3.13.5stderr …………………………………………….. 17 3.14part01test14………………………………………………. 17 3.14.1Diff ………………………………………………. 17 3.14.2InputFile……………………………………………. 17 3.14.3 SubmissionOutput……………………………………….. 17 3.14.4SolutionOutput ………………………………………… 17 3.14.5stderr …………………………………………….. 18 3.15part01test15………………………………………………. 18 3.15.1Diff ………………………………………………. 18 3.15.2InputFile……………………………………………. 18 3.15.3 SubmissionOutput……………………………………….. 18 3.15.4SolutionOutput ………………………………………… 18 3.15.5stderr …………………………………………….. 19 3.16part01test16………………………………………………. 19 3.16.1Diff ………………………………………………. 19 3.16.2InputFile……………………………………………. 19 3.16.3 SubmissionOutput……………………………………….. 19 3.16.4SolutionOutput ………………………………………… 19 3.16.5stderr …………………………………………….. 20 3.17part01test17………………………………………………. 20 3.17.1Diff ………………………………………………. 20 3.17.2InputFile……………………………………………. 20 3.17.3 SubmissionOutput……………………………………….. 20
3

3.17.4SolutionOutput ………………………………………… 20
3.17.5stderr …………………………………………….. 20 3.18part01test18………………………………………………. 21 3.18.1Diff ………………………………………………. 21 3.18.2InputFile……………………………………………. 21 3.18.3 SubmissionOutput……………………………………….. 21 3.18.4SolutionOutput ………………………………………… 21 3.18.5stderr …………………………………………….. 21 3.19part01test19………………………………………………. 21 3.19.1Diff ………………………………………………. 21 3.19.2InputFile……………………………………………. 22 3.19.3 SubmissionOutput……………………………………….. 22 3.19.4SolutionOutput ………………………………………… 22 3.19.5stderr …………………………………………….. 22 3.20part01test20………………………………………………. 22 3.20.1Diff ………………………………………………. 22 3.20.2InputFile……………………………………………. 22 3.20.3 SubmissionOutput……………………………………….. 23 3.20.4SolutionOutput ………………………………………… 23 3.20.5stderr …………………………………………….. 23 3.21SourceCode………………………………………………. 23
4 csce322hmwrk04part02.pl 25
4.1 part02test01………………………………………………. 25 4.1.1 Diff ………………………………………………. 25 4.1.2 InputFile……………………………………………. 25 4.1.3 SubmissionOutput……………………………………….. 25 4.1.4 SolutionOutput ………………………………………… 25 4.1.5 stderr …………………………………………….. 26
4.2 part02test02………………………………………………. 26 4.2.1 Diff ………………………………………………. 26 4.2.2 InputFile……………………………………………. 26 4.2.3 SubmissionOutput……………………………………….. 26 4.2.4 SolutionOutput ………………………………………… 27 4.2.5 stderr …………………………………………….. 27
4.3 part02test03………………………………………………. 27 4.3.1 Diff ………………………………………………. 27 4.3.2 InputFile……………………………………………. 28 4.3.3 SubmissionOutput……………………………………….. 28 4.3.4 SolutionOutput ………………………………………… 28 4.3.5 stderr …………………………………………….. 29
4.4 part02test04………………………………………………. 29 4.4.1 Diff ………………………………………………. 29 4.4.2 InputFile……………………………………………. 30 4.4.3 SubmissionOutput……………………………………….. 30 4.4.4 SolutionOutput ………………………………………… 30 4.4.5 stderr …………………………………………….. 30
4.5 part02test05………………………………………………. 31 4.5.1 Diff ………………………………………………. 31 4.5.2 InputFile……………………………………………. 31 4.5.3 SubmissionOutput……………………………………….. 31 4.5.4 SolutionOutput ………………………………………… 31 4.5.5 stderr …………………………………………….. 32
4.6 part02test06………………………………………………. 32 4.6.1 Diff ………………………………………………. 32 4.6.2 InputFile……………………………………………. 32 4.6.3 SubmissionOutput……………………………………….. 33 4.6.4 SolutionOutput ………………………………………… 33 4.6.5 stderr …………………………………………….. 33
4.7 part02test07………………………………………………. 34
4

4.7.1 Diff ………………………………………………. 34 4.7.2 InputFile……………………………………………. 34 4.7.3 SubmissionOutput……………………………………….. 34 4.7.4 SolutionOutput ………………………………………… 34 4.7.5 stderr …………………………………………….. 35
4.8 part02test08………………………………………………. 35 4.8.1 Diff ………………………………………………. 35 4.8.2 InputFile……………………………………………. 36 4.8.3 SubmissionOutput……………………………………….. 36 4.8.4 SolutionOutput ………………………………………… 36 4.8.5 stderr …………………………………………….. 36
4.9 part02test09………………………………………………. 37 4.9.1 Diff ………………………………………………. 37 4.9.2 InputFile……………………………………………. 37 4.9.3 SubmissionOutput……………………………………….. 37 4.9.4 SolutionOutput ………………………………………… 37 4.9.5 stderr …………………………………………….. 38
4.10part02test10………………………………………………. 38 4.10.1Diff ………………………………………………. 38 4.10.2InputFile……………………………………………. 38 4.10.3 SubmissionOutput……………………………………….. 39 4.10.4SolutionOutput ………………………………………… 39 4.10.5stderr …………………………………………….. 39
4.11part02test11………………………………………………. 40 4.11.1Diff ………………………………………………. 40 4.11.2InputFile……………………………………………. 40 4.11.3 SubmissionOutput……………………………………….. 40 4.11.4SolutionOutput ………………………………………… 40 4.11.5stderr …………………………………………….. 41
4.12part02test12………………………………………………. 41 4.12.1Diff ………………………………………………. 41 4.12.2InputFile……………………………………………. 41 4.12.3 SubmissionOutput……………………………………….. 41 4.12.4SolutionOutput ………………………………………… 42 4.12.5stderr …………………………………………….. 42
4.13part02test13………………………………………………. 42 4.13.1Diff ………………………………………………. 42 4.13.2InputFile……………………………………………. 43 4.13.3 SubmissionOutput……………………………………….. 43 4.13.4SolutionOutput ………………………………………… 43 4.13.5stderr …………………………………………….. 44
4.14part02test14………………………………………………. 44 4.14.1Diff ………………………………………………. 44 4.14.2InputFile……………………………………………. 44 4.14.3 SubmissionOutput……………………………………….. 44 4.14.4SolutionOutput ………………………………………… 45 4.14.5stderr …………………………………………….. 45
4.15part02test15………………………………………………. 45 4.15.1Diff ………………………………………………. 45 4.15.2InputFile……………………………………………. 45 4.15.3 SubmissionOutput……………………………………….. 46 4.15.4SolutionOutput ………………………………………… 46 4.15.5stderr …………………………………………….. 46
4.16part02test16………………………………………………. 47 4.16.1Diff ………………………………………………. 47 4.16.2InputFile……………………………………………. 47 4.16.3 SubmissionOutput……………………………………….. 47 4.16.4SolutionOutput ………………………………………… 47 4.16.5stderr …………………………………………….. 48
4.17part02test17………………………………………………. 48 5

4.17.1Diff ………………………………………………. 48 4.17.2InputFile……………………………………………. 48 4.17.3 SubmissionOutput……………………………………….. 49 4.17.4SolutionOutput ………………………………………… 49 4.17.5stderr …………………………………………….. 49
4.18part02test18………………………………………………. 50 4.18.1Diff ………………………………………………. 50 4.18.2InputFile……………………………………………. 50 4.18.3 SubmissionOutput……………………………………….. 50 4.18.4SolutionOutput ………………………………………… 50 4.18.5stderr …………………………………………….. 51
4.19part02test19………………………………………………. 52 4.19.1Diff ………………………………………………. 52 4.19.2InputFile……………………………………………. 52 4.19.3 SubmissionOutput……………………………………….. 52 4.19.4SolutionOutput ………………………………………… 52 4.19.5stderr …………………………………………….. 52
4.20part02test20………………………………………………. 53 4.20.1Diff ………………………………………………. 53 4.20.2InputFile……………………………………………. 53 4.20.3 SubmissionOutput……………………………………….. 53 4.20.4SolutionOutput ………………………………………… 53 4.20.5stderr …………………………………………….. 54
4.21part02test21………………………………………………. 54 4.21.1Diff ………………………………………………. 54 4.21.2InputFile……………………………………………. 54 4.21.3 SubmissionOutput……………………………………….. 55 4.21.4SolutionOutput ………………………………………… 55 4.21.5stderr …………………………………………….. 55
4.22part02test22………………………………………………. 56 4.22.1Diff ………………………………………………. 56 4.22.2InputFile……………………………………………. 56 4.22.3 SubmissionOutput……………………………………….. 56 4.22.4SolutionOutput ………………………………………… 56 4.22.5stderr …………………………………………….. 56
4.23part02test23………………………………………………. 57 4.23.1Diff ………………………………………………. 57 4.23.2InputFile……………………………………………. 57 4.23.3 SubmissionOutput……………………………………….. 57 4.23.4SolutionOutput ………………………………………… 57 4.23.5stderr …………………………………………….. 58
4.24part02test24………………………………………………. 58 4.24.1Diff ………………………………………………. 58 4.24.2InputFile……………………………………………. 58 4.24.3 SubmissionOutput……………………………………….. 59 4.24.4SolutionOutput ………………………………………… 59 4.24.5stderr …………………………………………….. 59
4.25part02test25………………………………………………. 60 4.25.1Diff ………………………………………………. 60 4.25.2InputFile……………………………………………. 60 4.25.3 SubmissionOutput……………………………………….. 60 4.25.4SolutionOutput ………………………………………… 60 4.25.5stderr …………………………………………….. 61
4.26part02test26………………………………………………. 61 4.26.1Diff ………………………………………………. 61 4.26.2InputFile……………………………………………. 61 4.26.3 SubmissionOutput……………………………………….. 62 4.26.4SolutionOutput ………………………………………… 62 4.26.5stderr …………………………………………….. 62
4.27part02test27………………………………………………. 63 6

4.27.1Diff ………………………………………………. 63 4.27.2InputFile……………………………………………. 63 4.27.3 SubmissionOutput……………………………………….. 63 4.27.4SolutionOutput ………………………………………… 64 4.27.5stderr …………………………………………….. 64
4.28part02test28………………………………………………. 64 4.28.1Diff ………………………………………………. 64 4.28.2InputFile……………………………………………. 65 4.28.3 SubmissionOutput……………………………………….. 65 4.28.4SolutionOutput ………………………………………… 65 4.28.5stderr …………………………………………….. 65
4.29part02test29………………………………………………. 66 4.29.1Diff ………………………………………………. 66 4.29.2InputFile……………………………………………. 66 4.29.3 SubmissionOutput……………………………………….. 66 4.29.4SolutionOutput ………………………………………… 67 4.29.5stderr …………………………………………….. 67
4.30part02test30………………………………………………. 68 4.30.1Diff ………………………………………………. 68 4.30.2InputFile……………………………………………. 68 4.30.3 SubmissionOutput……………………………………….. 68 4.30.4SolutionOutput ………………………………………… 68 4.30.5stderr …………………………………………….. 69
4.31SourceCode………………………………………………. 69
5 csce322hmwrk04part03.pl 75
5.1 part03test01………………………………………………. 75 5.1.1 Diff ………………………………………………. 75 5.1.2 InputFile……………………………………………. 75 5.1.3 SubmissionOutput……………………………………….. 75 5.1.4 SolutionOutput ………………………………………… 75 5.1.5 stderr …………………………………………….. 76
5.2 part03test02………………………………………………. 76 5.2.1 Diff ………………………………………………. 76 5.2.2 InputFile……………………………………………. 77 5.2.3 SubmissionOutput……………………………………….. 77 5.2.4 SolutionOutput ………………………………………… 77 5.2.5 stderr …………………………………………….. 77
5.3 part03test03………………………………………………. 78 5.3.1 Diff ………………………………………………. 78 5.3.2 InputFile……………………………………………. 78 5.3.3 SubmissionOutput……………………………………….. 78 5.3.4 SolutionOutput ………………………………………… 79 5.3.5 stderr …………………………………………….. 79
5.4 part03test04………………………………………………. 80 5.4.1 Diff ………………………………………………. 80 5.4.2 InputFile……………………………………………. 80 5.4.3 SubmissionOutput……………………………………….. 80 5.4.4 SolutionOutput ………………………………………… 80 5.4.5 stderr …………………………………………….. 80
5.5 part03test05………………………………………………. 81 5.5.1 Diff ………………………………………………. 81 5.5.2 InputFile……………………………………………. 81 5.5.3 SubmissionOutput……………………………………….. 81 5.5.4 SolutionOutput ………………………………………… 82 5.5.5 stderr …………………………………………….. 82
5.6 part03test06………………………………………………. 83 5.6.1 Diff ………………………………………………. 83 5.6.2 InputFile……………………………………………. 83 5.6.3 SubmissionOutput……………………………………….. 83
7

5.6.4 SolutionOutput ………………………………………… 83
5.6.5 stderr …………………………………………….. 84
5.7 part03test07………………………………………………. 84 5.7.1 Diff ………………………………………………. 84 5.7.2 InputFile……………………………………………. 85 5.7.3 SubmissionOutput……………………………………….. 85 5.7.4 SolutionOutput ………………………………………… 85 5.7.5 stderr …………………………………………….. 85
5.8 part03test08………………………………………………. 86 5.8.1 Diff ………………………………………………. 86 5.8.2 InputFile……………………………………………. 86 5.8.3 SubmissionOutput……………………………………….. 86 5.8.4 SolutionOutput ………………………………………… 87 5.8.5 stderr …………………………………………….. 87
5.9 part03test09………………………………………………. 88 5.9.1 Diff ………………………………………………. 88 5.9.2 InputFile……………………………………………. 88 5.9.3 SubmissionOutput……………………………………….. 88 5.9.4 SolutionOutput ………………………………………… 88 5.9.5 stderr …………………………………………….. 88
5.10part03test10………………………………………………. 89 5.10.1Diff ………………………………………………. 89 5.10.2InputFile……………………………………………. 89 5.10.3 SubmissionOutput……………………………………….. 90 5.10.4SolutionOutput ………………………………………… 90 5.10.5stderr …………………………………………….. 90 5.11part03test11………………………………………………. 91 5.11.1Diff ………………………………………………. 91 5.11.2InputFile……………………………………………. 91 5.11.3 SubmissionOutput……………………………………….. 91 5.11.4SolutionOutput ………………………………………… 91 5.11.5stderr …………………………………………….. 92 5.12part03test12………………………………………………. 93 5.12.1Diff ………………………………………………. 93 5.12.2InputFile……………………………………………. 93 5.12.3 SubmissionOutput……………………………………….. 93 5.12.4SolutionOutput ………………………………………… 93 5.12.5stderr …………………………………………….. 93 5.13part03test13………………………………………………. 94 5.13.1Diff ………………………………………………. 94 5.13.2InputFile……………………………………………. 94 5.13.3 SubmissionOutput……………………………………….. 95 5.13.4SolutionOutput ………………………………………… 95 5.13.5stderr …………………………………………….. 95 5.14part03test14………………………………………………. 96 5.14.1Diff ………………………………………………. 96 5.14.2InputFile……………………………………………. 96 5.14.3 SubmissionOutput……………………………………….. 96 5.14.4SolutionOutput ………………………………………… 96 5.14.5stderr …………………………………………….. 96 5.15part03test15………………………………………………. 97 5.15.1Diff ………………………………………………. 97 5.15.2InputFile……………………………………………. 97 5.15.3 SubmissionOutput……………………………………….. 98 5.15.4SolutionOutput ………………………………………… 98 5.15.5stderr …………………………………………….. 98 5.16part03test16………………………………………………. 99 5.16.1Diff ………………………………………………. 99 5.16.2InputFile……………………………………………. 99 5.16.3 SubmissionOutput……………………………………….. 99
8

5.16.4SolutionOutput ………………………………………… 99
5.16.5stderr …………………………………………….. 100 5.17part03test17………………………………………………. 101 5.17.1Diff ………………………………………………. 101 5.17.2InputFile……………………………………………. 101 5.17.3 SubmissionOutput……………………………………….. 101 5.17.4 SolutionOutput ………………………………………… 101 5.17.5stderr …………………………………………….. 101 5.18part03test18………………………………………………. 102 5.18.1Diff ………………………………………………. 102 5.18.2InputFile……………………………………………. 102 5.18.3 SubmissionOutput……………………………………….. 102 5.18.4 SolutionOutput ………………………………………… 103 5.18.5stderr …………………………………………….. 103 5.19part03test19………………………………………………. 104 5.19.1Diff ………………………………………………. 104 5.19.2InputFile……………………………………………. 104 5.19.3 SubmissionOutput……………………………………….. 104 5.19.4 SolutionOutput ………………………………………… 104 5.19.5stderr …………………………………………….. 105 5.20part03test20………………………………………………. 105 5.20.1Diff ………………………………………………. 105 5.20.2InputFile……………………………………………. 106 5.20.3 SubmissionOutput……………………………………….. 106 5.20.4 SolutionOutput ………………………………………… 106 5.20.5stderr …………………………………………….. 106 5.21SourceCode………………………………………………. 107
6 csce322hmwrk04part04.pl 109
6.1 part04test01………………………………………………. 109 6.1.1 Diff ………………………………………………. 109 6.1.2 InputFile……………………………………………. 109 6.1.3 SubmissionOutput……………………………………….. 109 6.1.4 SolutionOutput ………………………………………… 109 6.1.5 stderr …………………………………………….. 110
6.2 part04test02………………………………………………. 110 6.2.1 Diff ………………………………………………. 110 6.2.2 InputFile……………………………………………. 110 6.2.3 SubmissionOutput……………………………………….. 110 6.2.4 SolutionOutput ………………………………………… 110 6.2.5 stderr …………………………………………….. 111
6.3 part04test03………………………………………………. 111 6.3.1 Diff ………………………………………………. 111 6.3.2 InputFile……………………………………………. 111 6.3.3 SubmissionOutput……………………………………….. 111 6.3.4 SolutionOutput ………………………………………… 111 6.3.5 stderr …………………………………………….. 112
6.4 part04test04………………………………………………. 112 6.4.1 Diff ………………………………………………. 112 6.4.2 InputFile……………………………………………. 112 6.4.3 SubmissionOutput……………………………………….. 112 6.4.4 SolutionOutput ………………………………………… 112 6.4.5 stderr …………………………………………….. 113
6.5 part04test05………………………………………………. 113 6.5.1 Diff ………………………………………………. 113 6.5.2 InputFile……………………………………………. 113 6.5.3 SubmissionOutput……………………………………….. 113 6.5.4 SolutionOutput ………………………………………… 114 6.5.5 stderr …………………………………………….. 114
6.6 part04test06………………………………………………. 114
9

6.6.1 Diff ………………………………………………. 114 6.6.2 InputFile……………………………………………. 114 6.6.3 SubmissionOutput……………………………………….. 114 6.6.4 SolutionOutput ………………………………………… 115 6.6.5 stderr …………………………………………….. 115
6.7 part04test07………………………………………………. 115 6.7.1 Diff ………………………………………………. 115 6.7.2 InputFile……………………………………………. 115 6.7.3 SubmissionOutput……………………………………….. 115 6.7.4 SolutionOutput ………………………………………… 115 6.7.5 stderr …………………………………………….. 116
6.8 part04test08………………………………………………. 116 6.8.1 Diff ………………………………………………. 116 6.8.2 InputFile……………………………………………. 116 6.8.3 SubmissionOutput……………………………………….. 116 6.8.4 SolutionOutput ………………………………………… 116 6.8.5 stderr …………………………………………….. 117
6.9 part04test09………………………………………………. 117 6.9.1 Diff ………………………………………………. 117 6.9.2 InputFile……………………………………………. 117 6.9.3 SubmissionOutput……………………………………….. 117 6.9.4 SolutionOutput ………………………………………… 117 6.9.5 stderr …………………………………………….. 118
6.10part04test10………………………………………………. 118 6.10.1Diff ………………………………………………. 118 6.10.2InputFile……………………………………………. 118 6.10.3 SubmissionOutput……………………………………….. 118 6.10.4 SolutionOutput ………………………………………… 118 6.10.5stderr …………………………………………….. 119
6.11part04test11………………………………………………. 119 6.11.1Diff ………………………………………………. 119 6.11.2InputFile……………………………………………. 119 6.11.3 SubmissionOutput……………………………………….. 119 6.11.4 SolutionOutput ………………………………………… 119 6.11.5stderr …………………………………………….. 120
6.12part04test12………………………………………………. 120 6.12.1Diff ………………………………………………. 120 6.12.2InputFile……………………………………………. 120 6.12.3 SubmissionOutput……………………………………….. 120 6.12.4 SolutionOutput ………………………………………… 120 6.12.5stderr …………………………………………….. 121
6.13part04test13………………………………………………. 121 6.13.1Diff ………………………………………………. 121 6.13.2InputFile……………………………………………. 121 6.13.3 SubmissionOutput……………………………………….. 121 6.13.4 SolutionOutput ………………………………………… 121 6.13.5stderr …………………………………………….. 122
6.14part04test14………………………………………………. 122 6.14.1Diff ………………………………………………. 122 6.14.2InputFile……………………………………………. 122 6.14.3 SubmissionOutput……………………………………….. 122 6.14.4 SolutionOutput ………………………………………… 122 6.14.5stderr …………………………………………….. 123
6.15part04test15………………………………………………. 123 6.15.1Diff ………………………………………………. 123 6.15.2InputFile……………………………………………. 123 6.15.3 SubmissionOutput……………………………………….. 123 6.15.4 SolutionOutput ………………………………………… 124 6.15.5stderr …………………………………………….. 124
6.16part04test16………………………………………………. 124 10

6.16.1Diff ………………………………………………. 124 6.16.2InputFile……………………………………………. 124 6.16.3 SubmissionOutput……………………………………….. 124 6.16.4 SolutionOutput ………………………………………… 125 6.16.5stderr …………………………………………….. 125
6.17part04test17………………………………………………. 125 6.17.1Diff ………………………………………………. 125 6.17.2InputFile……………………………………………. 125 6.17.3 SubmissionOutput……………………………………….. 125 6.17.4 SolutionOutput ………………………………………… 125 6.17.5stderr …………………………………………….. 126
6.18part04test18………………………………………………. 126 6.18.1Diff ………………………………………………. 126 6.18.2InputFile……………………………………………. 126 6.18.3 SubmissionOutput……………………………………….. 126 6.18.4 SolutionOutput ………………………………………… 126 6.18.5stderr …………………………………………….. 127
6.19part04test19………………………………………………. 127 6.19.1Diff ………………………………………………. 127 6.19.2InputFile……………………………………………. 127 6.19.3 SubmissionOutput……………………………………….. 127 6.19.4 SolutionOutput ………………………………………… 128 6.19.5stderr …………………………………………….. 128
6.20part04test20………………………………………………. 128 6.20.1Diff ………………………………………………. 128 6.20.2InputFile……………………………………………. 128 6.20.3 SubmissionOutput……………………………………….. 128 6.20.4 SolutionOutput ………………………………………… 128 6.20.5stderr …………………………………………….. 129
6.21part04test21………………………………………………. 129 6.21.1Diff ………………………………………………. 129 6.21.2InputFile……………………………………………. 129 6.21.3 SubmissionOutput……………………………………….. 129 6.21.4 SolutionOutput ………………………………………… 129 6.21.5stderr …………………………………………….. 130
6.22part04test22………………………………………………. 130 6.22.1Diff ………………………………………………. 130 6.22.2InputFile……………………………………………. 130 6.22.3 SubmissionOutput……………………………………….. 130 6.22.4 SolutionOutput ………………………………………… 130 6.22.5stderr …………………………………………….. 131
6.23part04test23………………………………………………. 131 6.23.1Diff ………………………………………………. 131 6.23.2InputFile……………………………………………. 131 6.23.3 SubmissionOutput……………………………………….. 131 6.23.4 SolutionOutput ………………………………………… 131 6.23.5stderr …………………………………………….. 132
6.24part04test24………………………………………………. 132 6.24.1Diff ………………………………………………. 132 6.24.2InputFile……………………………………………. 132 6.24.3 SubmissionOutput……………………………………….. 132 6.24.4 SolutionOutput ………………………………………… 133 6.24.5stderr …………………………………………….. 133
6.25part04test25………………………………………………. 133 6.25.1Diff ………………………………………………. 133 6.25.2InputFile……………………………………………. 133 6.25.3 SubmissionOutput……………………………………….. 133 6.25.4 SolutionOutput ………………………………………… 134 6.25.5stderr …………………………………………….. 134
6.26part04test26………………………………………………. 134 11

6.26.1Diff ………………………………………………. 134 6.26.2InputFile……………………………………………. 134 6.26.3 SubmissionOutput……………………………………….. 134 6.26.4 SolutionOutput ………………………………………… 135 6.26.5stderr …………………………………………….. 135
6.27part04test27………………………………………………. 135 6.27.1Diff ………………………………………………. 135 6.27.2InputFile……………………………………………. 135 6.27.3 SubmissionOutput……………………………………….. 136 6.27.4 SolutionOutput ………………………………………… 136 6.27.5stderr …………………………………………….. 136
6.28part04test28………………………………………………. 136 6.28.1Diff ………………………………………………. 136 6.28.2InputFile……………………………………………. 136 6.28.3 SubmissionOutput……………………………………….. 136 6.28.4 SolutionOutput ………………………………………… 137 6.28.5stderr …………………………………………….. 137
6.29part04test29………………………………………………. 137 6.29.1Diff ………………………………………………. 137 6.29.2InputFile……………………………………………. 137 6.29.3 SubmissionOutput……………………………………….. 137 6.29.4 SolutionOutput ………………………………………… 138 6.29.5stderr …………………………………………….. 138
6.30part04test30………………………………………………. 138 6.30.1Diff ………………………………………………. 138 6.30.2InputFile……………………………………………. 138 6.30.3 SubmissionOutput……………………………………….. 139 6.30.4 SolutionOutput ………………………………………… 139 6.30.5stderr …………………………………………….. 139
6.31SourceCode………………………………………………. 139
12

1 2 3 4
1
1 2 3 4 5 6 7 8 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
08/10/2016 13:13:30 fyang: csce322hmwrk04part01.pl 08/10/2016 13:13:32 fyang: csce322hmwrk04part02.pl 08/10/2016 13:13:33 fyang: csce322hmwrk04part03.pl 08/10/2016 13:13:35 fyang: csce322hmwrk04part04.pl
– OK – OK – OK – OK
Chapter 1 Metadata
1.1 Submitted Files
1.2 webgrader Runs
2016 -08 -10 T13 :14:33 -0500
1.3 diffs
129.93.5.132
webgrader.time
fyang 04
submission.diffs
csce322hmwrk04/fyang/02/part02test01.diff csce322hmwrk04/fyang/02/part02test02.diff csce322hmwrk04/fyang/02/part02test03.diff csce322hmwrk04/fyang/02/part02test04.diff csce322hmwrk04/fyang/02/part02test05.diff csce322hmwrk04/fyang/02/part02test06.diff csce322hmwrk04/fyang/02/part02test07.diff csce322hmwrk04/fyang/02/part02test08.diff csce322hmwrk04/fyang/02/part02test09.diff csce322hmwrk04/fyang/02/part02test10.diff csce322hmwrk04/fyang/02/part02test11.diff csce322hmwrk04/fyang/02/part02test12.diff csce322hmwrk04/fyang/02/part02test13.diff csce322hmwrk04/fyang/02/part02test14.diff csce322hmwrk04/fyang/02/part02test15.diff csce322hmwrk04/fyang/02/part02test16.diff csce322hmwrk04/fyang/02/part02test17.diff csce322hmwrk04/fyang/02/part02test18.diff csce322hmwrk04/fyang/02/part02test19.diff csce322hmwrk04/fyang/02/part02test20.diff csce322hmwrk04/fyang/02/part02test21.diff csce322hmwrk04/fyang/02/part02test22.diff csce322hmwrk04/fyang/02/part02test23.diff csce322hmwrk04/fyang/02/part02test24.diff csce322hmwrk04/fyang/02/part02test25.diff csce322hmwrk04/fyang/02/part02test26.diff
handin.time
13

28 csce322hmwrk04/fyang/02/part02test27.diff 29 csce322hmwrk04/fyang/02/part02test28.diff 30 csce322hmwrk04/fyang/02/part02test29.diff 31 csce322hmwrk04/fyang/02/part02test30.diff 32 csce322hmwrk04/fyang/03/part03test01.diff 33 csce322hmwrk04/fyang/03/part03test02.diff 34 csce322hmwrk04/fyang/03/part03test03.diff 35 csce322hmwrk04/fyang/03/part03test04.diff 36 csce322hmwrk04/fyang/03/part03test05.diff 37 csce322hmwrk04/fyang/03/part03test06.diff 38 csce322hmwrk04/fyang/03/part03test07.diff 39 csce322hmwrk04/fyang/03/part03test08.diff 40 csce322hmwrk04/fyang/03/part03test09.diff 41 csce322hmwrk04/fyang/03/part03test10.diff 42 csce322hmwrk04/fyang/03/part03test11.diff 43 csce322hmwrk04/fyang/03/part03test12.diff 44 csce322hmwrk04/fyang/03/part03test13.diff 45 csce322hmwrk04/fyang/03/part03test14.diff 46 csce322hmwrk04/fyang/03/part03test15.diff 47 csce322hmwrk04/fyang/03/part03test16.diff 48 csce322hmwrk04/fyang/03/part03test17.diff 49 csce322hmwrk04/fyang/03/part03test18.diff 50 csce322hmwrk04/fyang/03/part03test19.diff 51 csce322hmwrk04/fyang/03/part03test20.diff 52 csce322hmwrk04/fyang/04/part04test15.diff 53 csce322hmwrk04/fyang/04/part04test18.diff 54 csce322hmwrk04/fyang/04/part04test25.diff 55 csce322hmwrk04/fyang/04/part04test27.diff 56 csce322hmwrk04/fyang/04/part04test30.diff
14

Chapter 2 webgrader Run
Unsuccessful webgrader Report Generation
15

Chapter 3
csce322hmwrk04part01.pl
3.1 part01test01 3.1.1 Diff
3.1.2 Input File
part01test01.diff
part01test01.cnf
[6,6,2,4,3,2,6,4,4,5,2,4,6,6,3,3,6,1,5,2]. [x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,3,-,-,1,-,2,x]. [x,x,x,x,x,x,x,x].
3.1.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,3,-,-,1,-,2,x] [x,x,x,x,x,x,x,x] false
3.1.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,3,-,-,1,-,2,x]
part01test01.output
part01test01.output
16

[x,x,x,x,x,x,x,x] false
3.1.5 stderr
3.2 part01test02 3.2.1 Diff
3.2.2 Input File
[1,1,3,2,6,8]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,2,-,-,-,x]. [x,-,-,-,-,1,-,-,-,x]. [x,-,3,-,-,3,2,-,-,x]. [x,1,2,3,-,3,1,1,2,x]. [x,x,x,x,x,x,x,x,x,x].
3.2.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,2,-,-,-,x] [x,-,-,-,-,1,-,-,-,x] [x,-,3,-,-,3,2,-,-,x] [x,1,2,3,-,3,1,1,2,x] [x,x,x,x,x,x,x,x,x,x] false
3.2.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,2,-,-,-,x] [x,-,-,-,-,1,-,-,-,x] [x,-,3,-,-,3,2,-,-,x] [x,1,2,3,-,3,1,1,2,x] [x,x,x,x,x,x,x,x,x,x] false
3.2.5 stderr
part01test01.err
part01test02.diff
part01test02.cnf
part01test02.output
part01test02.output
part01test02.err
17

3.3 part01test03 3.3.1 Diff
3.3.2 Input File
[2,2,3,4,1,4,3,4,4,1,1]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,1,-,-,-,-,x]. [x,4,-,-,-,-,x]. [x,1,3,3,2,2,x]. [x,x,x,x,x,x,x].
3.3.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,1,-,-,-,-,x] [x,4,-,-,-,-,x] [x,1,3,3,2,2,x] [x,x,x,x,x,x,x] false
3.3.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,1,-,-,-,-,x] [x,4,-,-,-,-,x] [x,1,3,3,2,2,x] [x,x,x,x,x,x,x] false
3.3.5 stderr
3.4 part01test04 3.4.1 Diff
part01test03.diff
part01test03.cnf
part01test03.output
part01test03.output
part01test03.err
part01test04.diff 18

3.4.2 Input File
part01test04.cnf
[3,5,6,2,4,7,4,4,6,6,2,7,3,5,4,1,3,2]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,1,-,-,2,x]. [x,-,-,-,-,1,3,2,3,x]. [x,-,2,-,-,1,2,3,3,x]. [x,-,1,-,3,1,2,1,2,x]. [x,x,x,x,x,x,x,x,x,x].
3.4.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,1,-,-,2,x] [x,-,-,-,-,1,3,2,3,x] [x,-,2,-,-,1,2,3,3,x] [x,-,1,-,3,1,2,1,2,x] [x,x,x,x,x,x,x,x,x,x] false
3.4.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,1,-,-,2,x] [x,-,-,-,-,1,3,2,3,x] [x,-,2,-,-,1,2,3,3,x] [x,-,1,-,3,1,2,1,2,x] [x,x,x,x,x,x,x,x,x,x] false
3.4.5 stderr
3.5 part01test05 3.5.1 Diff
part01test04.output
3.5.2 Input File
part01test04.output
part01test04.err
part01test05.diff
19

[2,3,2,3,1,5,3,2,2,1,5,5,1,1,5,1,3]. [x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,1,2,-,-,x]. [x,2,2,1,-,1,x]. [x,x,x,x,x,x,x].
3.5.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,1,2,-,-,x] [x,2,2,1,-,1,x] [x,x,x,x,x,x,x] false
3.5.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,1,2,-,-,x] [x,2,2,1,-,1,x] [x,x,x,x,x,x,x] false
3.5.5 stderr
3.6 part01test06 3.6.1 Diff
3.6.2 Input File
[7,2,4,8,2,4,2,8,3,3,2,9,8,5,8]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,2,-,-,-,-,1,-,-,3,x]. [x,x,x,x,x,x,x,x,x,x,x].
3.6.3 Submission Output
part01test05.output
part01test05.cnf
part01test05.output
part01test05.err
part01test06.diff
part01test06.cnf
20

game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,2,-,-,-,-,1,-,-,3,x] [x,x,x,x,x,x,x,x,x,x,x] true
3.6.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,2,-,-,-,-,1,-,-,3,x] [x,x,x,x,x,x,x,x,x,x,x] true
3.6.5 stderr
3.7 part01test07 3.7.1 Diff
3.7.2 Input File
part01test06.output
[2,2,4,1,2,6,4,8,3,9,3,4,1,1,5,2,7,6]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,2,-,-,-,-,x]. [x,-,3,-,1,1,4,-,-,-,x]. [x,x,x,x,x,x,x,x,x,x,x].
3.7.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x]
part01test07.output
part01test06.output
part01test06.err
part01test07.diff
part01test07.cnf
21

[x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,2,-,-,-,-,x] [x,-,3,-,1,1,4,-,-,-,x] [x,x,x,x,x,x,x,x,x,x,x] false
3.7.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,2,-,-,-,-,x] [x,-,3,-,1,1,4,-,-,-,x] [x,x,x,x,x,x,x,x,x,x,x] false
3.7.5 stderr
3.8 part01test08 3.8.1 Diff
3.8.2 Input File
[3,1,3,5,1,4,2,2,3,4,2,4,2,4,2]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,1,-,-,x]. [x,x,x,x,x,x,x].
3.8.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,1,-,-,x] [x,x,x,x,x,x,x] true
part01test07.output
part01test07.err
part01test08.diff
part01test08.cnf
part01test08.output
22

3.8.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,1,-,-,x] [x,x,x,x,x,x,x] true
3.8.5 stderr
3.9 part01test09 3.9.1 Diff
3.9.2 Input File
[4,2,1,5,1,2,2,2,5,2]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,1,-,-,-,-,x]. [x,2,4,-,3,1,-,x]. [x,x,x,x,x,x,x,x].
3.9.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,x] [x,2,4,-,3,1,-,x] [x,x,x,x,x,x,x,x] true
3.9.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,x] [x,2,4,-,3,1,-,x] [x,x,x,x,x,x,x,x] true
3.9.5 stderr
part01test08.err
part01test09.diff
part01test09.cnf
part01test08.output
part01test09.output
part01test09.output
23

3.10 part01test10 3.10.1 Diff
3.10.2 Input File
[4,3,6,7,4,4,3]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,2,-,-,-,-,-,-,x]. [x,-,1,-,-,-,-,-,-,x]. [x,-,2,-,-,-,-,-,-,x]. [x,-,3,-,1,-,-,-,4,x]. [x,x,x,x,x,x,x,x,x,x].
3.10.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,2,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,-,-,x] [x,-,2,-,-,-,-,-,-,x] [x,-,3,-,1,-,-,-,4,x] [x,x,x,x,x,x,x,x,x,x] true
3.10.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,2,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,-,-,x] [x,-,2,-,-,-,-,-,-,x] [x,-,3,-,1,-,-,-,4,x] [x,x,x,x,x,x,x,x,x,x] true
3.10.5 stderr
part01test10.diff
part01test10.cnf
part01test09.err
part01test10.output
part01test10.output
part01test10.err
24

3.11 part01test11 3.11.1 Diff
3.11.2 Input File
[3,6,1,5,7,6,2,3,2,6,2,7]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,1,-,-,2,-,-,x]. [x,x,x,x,x,x,x,x,x].
3.11.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,1,-,-,2,-,-,x] [x,x,x,x,x,x,x,x,x] false
3.11.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,1,-,-,2,-,-,x] [x,x,x,x,x,x,x,x,x] false
3.11.5 stderr
3.12 part01test12 3.12.1 Diff
3.12.2 Input File
[2,4,4,3,1,3,3,4,2,3,5,2]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x].
part01test11.diff
part01test11.cnf
part01test11.output
part01test11.output
part01test11.err
part01test12.diff
part01test12.cnf
25

[x,-,1,2,-,-,x]. [x,-,3,1,2,4,x]. [x,x,x,x,x,x,x].
3.12.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,1,2,-,-,x] [x,-,3,1,2,4,x] [x,x,x,x,x,x,x] false
3.12.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,1,2,-,-,x] [x,-,3,1,2,4,x] [x,x,x,x,x,x,x] false
3.12.5 stderr
3.13 part01test13 3.13.1 Diff
3.13.2 Input File
part01test12.output
[4,3,2,3,3,2,5,5,5,2,4,5,3,1,1,1,4,1,3]. [x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x]. [x,-,-,1,3,-,x]. [x,4,-,2,4,-,x]. [x,3,-,2,1,-,x]. [x,x,x,x,x,x,x].
3.13.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x]
part01test13.output
part01test12.output
part01test12.err
part01test13.diff
part01test13.cnf
26

[x,-,-,1,3,-,x] [x,4,-,2,4,-,x] [x,3,-,2,1,-,x] [x,x,x,x,x,x,x] false
3.13.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,1,3,-,x] [x,4,-,2,4,-,x] [x,3,-,2,1,-,x] [x,x,x,x,x,x,x] false
3.13.5 stderr
3.14 part01test14 3.14.1 Diff
3.14.2 Input File
part01test13.output
[7,7,7,1,2,6,1,8,1,6,8,7,8,2,5,7,4,5,6]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,3,-,-,-,-,-,-,x]. [x,-,1,-,-,-,-,-,-,x]. [x,-,3,3,1,-,-,-,-,x]. [x,-,2,1,2,-,2,-,-,x]. [x,x,x,x,x,x,x,x,x,x].
3.14.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,3,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,-,-,x] [x,-,3,3,1,-,-,-,-,x] [x,-,2,1,2,-,2,-,-,x] [x,x,x,x,x,x,x,x,x,x] false
3.14.4 Solution Output
part01test14.output
part01test13.err
part01test14.diff
part01test14.cnf
27

game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,3,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,-,-,x] [x,-,3,3,1,-,-,-,-,x] [x,-,2,1,2,-,2,-,-,x] [x,x,x,x,x,x,x,x,x,x] false
3.14.5 stderr
3.15 part01test15 3.15.1 Diff
3.15.2 Input File
[8,1,4,1,8,3,1,4]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,3,-,-,1,-,-,x]. [x,-,-,-,1,-,3,2,-,-,x]. [x,1,2,1,2,3,1,2,-,3,x]. [x,x,x,x,x,x,x,x,x,x,x].
3.15.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,3,-,-,1,-,-,x] [x,-,-,-,1,-,3,2,-,-,x] [x,1,2,1,2,3,1,2,-,3,x] [x,x,x,x,x,x,x,x,x,x,x] true
3.15.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,3,-,-,1,-,-,x] [x,-,-,-,1,-,3,2,-,-,x]
part01test14.err
part01test15.diff
part01test15.cnf
part01test14.output
part01test15.output
part01test15.output
28

[x,1,2,1,2,3,1,2,-,3,x] [x,x,x,x,x,x,x,x,x,x,x] true
3.15.5 stderr
3.16 part01test16 3.16.1 Diff
3.16.2 Input File
part01test15.err
part01test16.diff
part01test16.cnf
[9,3,5,1,1,5,1,2,4,9,5,5,8,6,1,3,1,3,4,7]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,1,-,-,4,-,-,-,-,x]. [x,-,2,-,3,3,-,-,-,-,x]. [x,-,1,-,3,2,1,4,-,-,x]. [x,3,1,2,4,2,1,2,4,3,x]. [x,x,x,x,x,x,x,x,x,x,x].
3.16.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,1,-,-,4,-,-,-,-,x] [x,-,2,-,3,3,-,-,-,-,x] [x,-,1,-,3,2,1,4,-,-,x] [x,3,1,2,4,2,1,2,4,3,x] [x,x,x,x,x,x,x,x,x,x,x] false
3.16.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,1,-,-,4,-,-,-,-,x] [x,-,2,-,3,3,-,-,-,-,x] [x,-,1,-,3,2,1,4,-,-,x] [x,3,1,2,4,2,1,2,4,3,x] [x,x,x,x,x,x,x,x,x,x,x] false
part01test16.output
part01test16.output
29

3.16.5 stderr
3.17 part01test17 3.17.1 Diff
3.17.2 Input File
[8,8,5,9,3,1,1,9,8,2,6,5]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,1,x]. [x,2,-,-,-,-,-,-,-,1,x]. [x,2,1,1,-,2,-,-,1,2,x]. [x,x,x,x,x,x,x,x,x,x,x].
3.17.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,1,x] [x,2,-,-,-,-,-,-,-,1,x] [x,2,1,1,-,2,-,-,1,2,x] [x,x,x,x,x,x,x,x,x,x,x] false
3.17.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,1,x] [x,2,-,-,-,-,-,-,-,1,x] [x,2,1,1,-,2,-,-,1,2,x] [x,x,x,x,x,x,x,x,x,x,x] false
3.17.5 stderr
part01test17.diff
part01test17.cnf
part01test16.err
part01test17.output
part01test17.output
part01test17.err
30

3.18 part01test18 3.18.1 Diff
3.18.2 Input File
[4,5,3,4,3,3,4,5,2,5]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,3,-,4,2,1,x]. [x,x,x,x,x,x,x].
3.18.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,3,-,4,2,1,x] [x,x,x,x,x,x,x] false
3.18.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,3,-,4,2,1,x] [x,x,x,x,x,x,x] false
3.18.5 stderr
3.19 part01test19 3.19.1 Diff
part01test18.diff
part01test18.cnf
part01test18.output
part01test18.output
part01test18.err
part01test19.diff 31

3.19.2 Input File
[8,4,3,9,5,4,6,7]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,2,-,-,-,1,x]. [x,-,-,-,-,2,1,-,-,2,x]. [x,-,2,1,-,1,2,1,-,1,x]. [x,x,x,x,x,x,x,x,x,x,x].
3.19.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,2,-,-,-,1,x] [x,-,-,-,-,2,1,-,-,2,x] [x,-,2,1,-,1,2,1,-,1,x] [x,x,x,x,x,x,x,x,x,x,x] false
3.19.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,2,-,-,-,1,x] [x,-,-,-,-,2,1,-,-,2,x] [x,-,2,1,-,1,2,1,-,1,x] [x,x,x,x,x,x,x,x,x,x,x] false
3.19.5 stderr
3.20 part01test20 3.20.1 Diff
3.20.2 Input File
[7,9,5,4,9,7,3,8,1,7,8,8,8]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,2,1,-,-,x]. [x,3,-,-,-,-,2,2,-,-,x]. [x,1,-,-,-,3,2,1,-,-,x]. [x,3,-,-,-,2,1,1,3,3,x]. [x,x,x,x,x,x,x,x,x,x,x].
part01test19.output
part01test19.cnf
part01test19.output
part01test19.err
part01test20.diff
part01test20.cnf
32

1 2 3 4 5 6 7 8 9
10
11
12
13
14
15
16
17
18
19
20
getNum([T],T).
getNum([T|Ts],T):- getNum(Ts,Y), T >=Y. getNum([T|Ts],N):- getNum(Ts,N), N > T.
transToSingleList([], []) :- !. transToSingleList([T|Ls], OneL) :-
!,
transToSingleList(T, Single), transToSingleList(Ls, Singles), append(Single , Singles , OneL).
transToSingleList(T, [T]).
collectNumber([], []) :- !.
collectNumber([x|Rest], T):- !, collectNumber(Rest, T). collectNumber([-|Rest], T):- !, collectNumber(Rest, T). collectNumber([end_of_file|Rest], T):- !, collectNumber(Rest, T). collectNumber([N|Rest], [N |T]):- collectNumber(Rest, T).
3.20.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,2,1,-,-,x] [x,3,-,-,-,-,2,2,-,-,x] [x,1,-,-,-,3,2,1,-,-,x] [x,3,-,-,-,2,1,1,3,3,x] [x,x,x,x,x,x,x,x,x,x,x] true
3.20.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,2,1,-,-,x] [x,3,-,-,-,-,2,2,-,-,x] [x,1,-,-,-,3,2,1,-,-,x] [x,3,-,-,-,2,1,1,3,3,x] [x,x,x,x,x,x,x,x,x,x,x] true
3.20.5 stderr
3.21 Source Code
part01test20.output
part01test20.output
part01test20.err
csce322hmwrk04part01.pl
33

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
numplayers(Game, Num):- transToSingleList(Game, F),
collectNumber(F, N), getNum(N, Num).
columnsAndPlayers([First|T]):- length(First , Len),
%% %% %% %% %%
numplayers([First|T], Num), Len mod 2 =:= Num mod 2.
%% 1 is Len mod 2.
mytest01:- readConnectFourFile(‘part01test01.cnf’,_,Game), writeln(game),
printGame(Game),
numplayers(Game, Num).
34

Chapter 4
csce322hmwrk04part02.pl
4.1 part02test01 4.1.1 Diff
8a9,12 > paths
> [2 ,2 ,2]
> [3 ,3 ,3] > true
4.1.2 Input File
[1,6,3,4,2,2,4,2,3,1,3,6,3]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,2,-,-,x]. [x,-,1,1,2,-,-,x]. [x,x,x,x,x,x,x,x].
4.1.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,2,-,-,x] [x,-,1,1,2,-,-,x] [x,x,x,x,x,x,x,x]
4.1.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,2,-,-,x]
part02test01.diff
part02test01.cnf
part02test01.output
part02test01.output
35

[x,-,1,1,2,-,-,x] [x,x,x,x,x,x,x,x] paths
[2 ,2 ,2]
[3 ,3 ,3] true
4.1.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test01.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.2 part02test02 4.2.1 Diff
11a12,14 > paths > [2]
> true
4.2.2 Input File
[8,7,1,1,3,1,6,7,8,2,7,8,4,7]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,3,-,-,-,x]. [x,-,-,2,-,2,-,-,-,x]. [x,1,-,1,3,2,-,-,1,x]. [x,x,x,x,x,x,x,x,x,x].
4.2.3 Submission Output
part02test02.diff
part02test02.cnf
36

game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,3,-,-,-,x] [x,-,-,2,-,2,-,-,-,x] [x,1,-,1,3,2,-,-,1,x] [x,x,x,x,x,x,x,x,x,x]
4.2.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,3,-,-,-,x] [x,-,-,2,-,2,-,-,-,x] [x,1,-,1,3,2,-,-,1,x] [x,x,x,x,x,x,x,x,x,x] paths
[2]
true
4.2.5 stderr
part02test02.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test02.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.3 part02test03 4.3.1 Diff
part02test02.output
37

8a9,30 > paths
> [3 ,5
> [3 ,6
> [4 ,4
> [5 ,3
> [5 ,6
> [5 ,6
> [5 ,7
> [6 ,3
> [6 ,5
> [6 ,5
> [6 ,7
> [6 ,7
> [6 ,8
> [7 ,5
> [7 ,6
> [7 ,6
> [7 ,8
> [8 ,6
> [8 ,7
> [9 ,9
> true
4.3.2
,6] ,5] ,4] ,6] ,3] ,7] ,6] ,5] ,3] ,7] ,5] ,8] ,7] ,6] ,5] ,8] ,6] ,7] ,6] ,9]
Input File
[2,2,7,7,9,7,7,1,1,9]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,2,-,1,-,-,-,-,1,x]. [x,x,x,x,x,x,x,x,x,x,x].
4.3.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,2,-,1,-,-,-,-,1,x] [x,x,x,x,x,x,x,x,x,x,x]
4.3.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,2,-,1,-,-,-,-,1,x]
part02test03.output
part02test03.diff
part02test03.cnf
part02test03.output
38

[x,x,x,x,x,x,x,x,x,x,x] paths
[3 ,5 ,6]
[3 ,6 ,5]
[4 ,4 ,4] [5 ,3 ,6] [5 ,6 ,3] [5 ,6 ,7] [5 ,7 ,6] [6 ,3 ,5] [6 ,5 ,3] [6 ,5 ,7] [6 ,7 ,5] [6 ,7 ,8] [6 ,8 ,7] [7 ,5 ,6] [7 ,6 ,5] [7 ,6 ,8] [7 ,8 ,6] [8 ,6 ,7] [8 ,7 ,6] [9 ,9 ,9] true
4.3.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test03.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.4 part02test04 4.4.1 Diff
8a9,12 > paths
> [5 ,5 ,5]
> [6 ,6 ,6] > true
part02test04.diff
39

4.4.2 Input File
[6,2,6,1,1]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,2,2,-,1,1,x]. [x,x,x,x,x,x,x,x].
4.4.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,2,2,-,1,1,x] [x,x,x,x,x,x,x,x]
4.4.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,2,2,-,1,1,x] [x,x,x,x,x,x,x,x] paths
[5 ,5 ,5]
[6 ,6 ,6]
true
4.4.5 stderr
part02test04.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
part02test04.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
part02test04.cnf
part02test04.output
40

Singleton variables: [Cn]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
:209:
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.5 part02test05 4.5.1 Diff
11a12,14 > paths > [5,5] > true
4.5.2 Input File
[6,4,6,1,2,3,4,5,1,4,4,5,2,4,6]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,1,-,x]. [x,-,2,1,4,3,-,x]. [x,x,x,x,x,x,x,x].
4.5.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,1,-,x] [x,-,2,1,4,3,-,x] [x,x,x,x,x,x,x,x]
4.5.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,1,-,x]
part02test05.diff
part02test05.cnf
part02test05.output
part02test05.output
41

[x,-,2,1,4,3,-,x] [x,x,x,x,x,x,x,x] paths
[5 ,5]
true
4.5.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test05.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.6 part02test06 4.6.1 Diff
10a11,25 > paths
part02test06.diff
> [1 ,2
> [1 ,3
> [2 ,1
> [2 ,3
> [2 ,3
> [2 ,5
> [3 ,1
> [3 ,2
> [3 ,2
> [3 ,5
> [4 ,4
> [5 ,2
> [5 ,3
> true
4.6.2
,3] ,2] ,3] ,1] ,5] ,3] ,2] ,1] ,5] ,2] ,4] ,3] ,2]
Input File
[2,3,4,5,1,4,5,5,1,2,3,2,5,1,5,4,1]. [x,-,-,-,-,-,x].
part02test06.cnf
42

[x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,1,-,x]. [x,x,x,x,x,x,x].
4.6.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,1,-,x] [x,x,x,x,x,x,x]
4.6.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,1,-,x] [x,x,x,x,x,x,x] paths
[1 ,2 ,3]
[1 ,3 ,2]
[2 ,1 ,3]
[2 ,3 ,1]
[2 ,3 ,5]
[2 ,5 ,3]
[3 ,1 ,2]
[3 ,2 ,1]
[3 ,2 ,5]
[3 ,5 ,2]
[4 ,4 ,4]
[5 ,2 ,3]
[5 ,3 ,2]
true
4.6.5 stderr
part02test06.output
part02test06.output
part02test06.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl :209:
Singleton variables: [Rows]
43

Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.7 part02test07 4.7.1 Diff
9a10,13 > paths > [3,4] > [4,3] > true
4.7.2 Input File
[5,4,2,2,3,5,3,6]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,2,1,-,-,1,-,x]. [x,x,x,x,x,x,x,x].
4.7.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,1,-,-,1,-,x] [x,x,x,x,x,x,x,x]
4.7.4 Solution Output
part02test07.diff
part02test07.cnf
game
part02test07.output
part02test07.output
44

[x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,1,-,-,1,-,x] [x,x,x,x,x,x,x,x] paths
[3 ,4] [4 ,3] true
4.7.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test07.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.8 part02test08 4.8.1 Diff
9a10,24
> paths
> [2 ,4 ,5]
> [2 ,5 ,4]
> [3 ,3 ,3]
> [4 ,2 ,5]
> [4 ,5 ,2]
> [4 ,5 ,6]
> [4 ,6 ,5]
> [5 ,2 ,4]
> [5 ,4 ,2]
> [5 ,4 ,6]
> [5 ,6 ,4]
> [6 ,4 ,5]
> [6 ,5 ,4]
> true
part02test08.diff
45

4.8.2 Input File
part02test08.cnf
[6,3,5,6,6,1,6,1,1,4,1,6,2,6,1,4,6,6,4,2]. [x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,2,-,1,-,-,-,x]. [x,x,x,x,x,x,x,x].
4.8.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,-,1,-,-,-,x] [x,x,x,x,x,x,x,x]
4.8.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,-,1,-,-,-,x] [x,x,x,x,x,x,x,x] paths
[2 ,4 ,5]
[2 ,5 ,4]
[3 ,3 ,3]
[4 ,2 ,5]
[4 ,5 ,2]
[4 ,5 ,6]
[4 ,6 ,5]
[5 ,2 ,4]
[5 ,4 ,2]
[5 ,4 ,6]
[5 ,6 ,4]
[6 ,4 ,5]
[6 ,5 ,4]
true
4.8.5 stderr
part02test08.output
part02test08.output
part02test08.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
46

Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.9 part02test09 4.9.1 Diff
7a8,11 > paths
> [2 ,2 ,2]
> [5 ,5 ,5] > true
4.9.2 Input File
part02test09.diff
part02test09.cnf
[8,6,2,3,8,2,6,4,4,1,8,3,5,3,7,5,3,3]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,3,2,-,1,-,4,-,x]. [x,x,x,x,x,x,x,x,x,x].
4.9.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,3,2,-,1,-,4,-,x] [x,x,x,x,x,x,x,x,x,x]
4.9.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x]
part02test09.output
part02test09.output
47

[x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,3,2,-,1,-,4,-,x] [x,x,x,x,x,x,x,x,x,x] paths
[2 ,2 ,2] [5 ,5 ,5] true
4.9.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test09.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.10 part02test10 4.10.1 Diff
10a11,19 > paths
part02test10.diff
> [6 ,7
> [6 ,8
> [7 ,6
> [7 ,8
> [8 ,6
> [8 ,7
> [9 ,9
> true
4.10.2
,8] ,7] ,8] ,6] ,7] ,6] ,9]
Input File
[7,6,8,9,8,9,7,5,9,5,8,1,7]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x].
part02test10.cnf
48

[x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,2,-,-,-,-,-,1,x]. [x,x,x,x,x,x,x,x,x,x,x].
4.10.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,2,-,-,-,-,-,1,x] [x,x,x,x,x,x,x,x,x,x,x]
4.10.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,2,-,-,-,-,-,1,x] [x,x,x,x,x,x,x,x,x,x,x] paths
[6 ,7 ,8]
[6 ,8 ,7]
[7 ,6 ,8]
[7 ,8 ,6]
[8 ,6 ,7]
[8 ,7 ,6]
[9 ,9 ,9]
true
4.10.5 stderr
part02test10.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
part02test10.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn]
part02test10.output
49

Warning: :209:
Warning:
Warning: :209:
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.11 part02test11 4.11.1 Diff
9a10,13 > paths > [3,5] > [5,3] > true
4.11.2 Input File
part02test11.diff
part02test11.cnf
[3,3,9,2,5,6,5,9,5,7,3,2,9,7,4,1,1,6,1]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,2,1,-,1,-,2,1,-,-,x]. [x,x,x,x,x,x,x,x,x,x,x].
4.11.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,2,1,-,1,-,2,1,-,-,x] [x,x,x,x,x,x,x,x,x,x,x]
4.11.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,2,1,-,1,-,2,1,-,-,x]
part02test11.output
part02test11.output
50

[x,x,x,x,x,x,x,x,x,x,x] paths
[3 ,5]
[5 ,3]
true
4.11.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test11.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.12 part02test12 4.12.1 Diff
7a8,12 > paths > [4,5] > [5,4] > [6,6] > true
4.12.2 Input File
[4,6,4,5,2,6,2,5,6,3,2,1]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,4,-,-,1,x]. [x,-,2,1,-,-,3,x]. [x,x,x,x,x,x,x,x].
4.12.3 Submission Output
part02test12.diff
part02test12.cnf
game
part02test12.output
51

[x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,4,-,-,1,x] [x,-,2,1,-,-,3,x] [x,x,x,x,x,x,x,x]
4.12.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,4,-,-,1,x] [x,-,2,1,-,-,3,x] [x,x,x,x,x,x,x,x] paths
[4 ,5]
[5 ,4]
[6 ,6]
true
4.12.5 stderr
part02test12.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test12.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.13 part02test13 4.13.1 Diff
11a12,22 > paths
> [1 ,1 ,1]
> [2 ,3 ,4]
> [2 ,4 ,3]
part02test13.diff
52

> [3 ,2
> [3 ,3
> [3 ,4
> [4 ,2
> [4 ,3
> [4 ,4
> true
4.13.2
,4] ,3] ,2] ,3] ,2] ,4]
Input File
[5,5,2,2,4,5,1,1,2,5,4,2,3]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,2,x]. [x,-,-,-,-,1,x]. [x,1,2,3,3,1,x]. [x,x,x,x,x,x,x].
4.13.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,2,x] [x,-,-,-,-,1,x] [x,1,2,3,3,1,x] [x,x,x,x,x,x,x]
4.13.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,2,x] [x,-,-,-,-,1,x] [x,1,2,3,3,1,x] [x,x,x,x,x,x,x] paths
[1 ,1 ,1]
[2 ,3 ,4]
[2 ,4 ,3]
[3 ,2 ,4]
[3 ,3 ,3]
[3 ,4 ,2]
[4 ,2 ,3]
part02test13.output
part02test13.cnf
part02test13.output
53

[4 ,3 ,2] [4 ,4 ,4] true
4.13.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test13.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.14 part02test14 4.14.1 Diff
7a8,10 > paths > [4]
> true
4.14.2 Input File
[4,4,2,6,4,7,3,7,4,7,5,5]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,1,2,-,-,-,x]. [x,2,2,1,-,1,1,2,-,-,x]. [x,x,x,x,x,x,x,x,x,x,x].
4.14.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,1,2,-,-,-,x]
part02test14.diff
part02test14.cnf
part02test14.output
54

[x,2,2,1,-,1,1,2,-,-,x] [x,x,x,x,x,x,x,x,x,x,x]
4.14.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,1,2,-,-,-,x] [x,2,2,1,-,1,1,2,-,-,x] [x,x,x,x,x,x,x,x,x,x,x] paths
[4]
true
4.14.5 stderr
part02test14.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test14.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.15 part02test15 4.15.1 Diff
9a10,14 > paths > [1,2] > [2,1] > [4,4] > true
4.15.2 Input File
part02test15.diff
part02test15.cnf
[3,1,5,2,1,3,5,1,6,3,3].
55

[x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,3,1,-,2,x]. [x,1,3,2,1,-,2,x]. [x,x,x,x,x,x,x,x].
4.15.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,3,1,-,2,x] [x,1,3,2,1,-,2,x] [x,x,x,x,x,x,x,x]
4.15.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,3,1,-,2,x] [x,1,3,2,1,-,2,x] [x,x,x,x,x,x,x,x] paths
[1 ,2]
[2 ,1]
[4 ,4]
true
4.15.5 stderr
part02test15.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
part02test15.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn]
part02test15.output
56

Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl :209:
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.16 part02test16 4.16.1 Diff
9a10,20 > paths
part02test16.diff
> [1 ,1
> [2 ,2
> [3 ,4
> [3 ,5
> [4 ,3
> [4 ,5
> [5 ,3
> [5 ,4
> [6 ,6
> true
4.16.2
,1] ,2] ,5] ,4] ,5] ,3] ,4] ,3] ,6]
Input File
[7,6,1,1,6,2,6,5]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,3,-,-,-,-,1,-,x]. [x,2,1,-,-,-,4,-,x]. [x,x,x,x,x,x,x,x,x].
4.16.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,3,-,-,-,-,1,-,x] [x,2,1,-,-,-,4,-,x] [x,x,x,x,x,x,x,x,x]
4.16.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x]
part02test16.output
part02test16.cnf
part02test16.output
57

[x,3,-,-,-,-,1,-,x] [x,2,1,-,-,-,4,-,x] [x,x,x,x,x,x,x,x,x] paths
[1 ,1 ,1] [2 ,2 ,2] [3 ,4 ,5] [3 ,5 ,4] [4 ,3 ,5] [4 ,5 ,3] [5 ,3 ,4] [5 ,4 ,3] [6 ,6 ,6] true
4.16.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test16.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.17 part02test17 4.17.1 Diff
9a10,14 > paths > [4,6] > [5,5] > [6,4] > true
4.17.2 Input File
[4 ,3 ,6 ,7]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x].
part02test17.diff
part02test17.cnf
58

[x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,1,-,3,-,-,x]. [x,-,-,2,1,1,2,3,x]. [x,x,x,x,x,x,x,x,x].
4.17.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,1,-,3,-,-,x] [x,-,-,2,1,1,2,3,x] [x,x,x,x,x,x,x,x,x]
4.17.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,1,-,3,-,-,x] [x,-,-,2,1,1,2,3,x] [x,x,x,x,x,x,x,x,x] paths
[4 ,6]
[5 ,5]
[6 ,4]
true
4.17.5 stderr
part02test17.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test17.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
part02test17.output
59

Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.18 part02test18 4.18.1 Diff
8a9,30 > paths
part02test18.diff
> [2 ,2
> [3 ,4
> [3 ,5
> [4 ,3
> [4 ,5
> [5 ,3
> [5 ,4
> [5 ,6
> [5 ,7
> [6 ,5
> [6 ,7
> [6 ,7
> [6 ,9
> [7 ,5
> [7 ,6
> [7 ,6
> [7 ,9
> [8 ,8
> [9 ,6
> [9 ,7
> true
4.18.2
,2] ,5] ,4] ,5] ,3] ,4] ,3] ,7] ,6] ,7] ,5] ,9] ,7] ,6] ,5] ,9] ,6] ,8] ,7] ,6]
Input File
[6,1,8,5,5]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,2,3,-,-,-,-,-,1,-,x]. [x,x,x,x,x,x,x,x,x,x,x].
4.18.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,2,3,-,-,-,-,-,1,-,x] [x,x,x,x,x,x,x,x,x,x,x]
4.18.4 Solution Output
part02test18.output
part02test18.cnf
60

game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,2,3,-,-,-,-,-,1,-,x] [x,x,x,x,x,x,x,x,x,x,x] paths
[2 ,2 ,2]
[3 ,4 ,5]
[3 ,5 ,4]
[4 ,3 ,5]
[4 ,5 ,3]
[5 ,3 ,4]
[5 ,4 ,3]
[5 ,6 ,7]
[5 ,7 ,6]
[6 ,5 ,7]
[6 ,7 ,5]
[6 ,7 ,9]
[6 ,9 ,7]
[7 ,5 ,6]
[7 ,6 ,5]
[7 ,6 ,9]
[7 ,9 ,6]
[8 ,8 ,8]
[9 ,6 ,7]
[9 ,7 ,6]
true
4.18.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test18.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
part02test18.output
61

4.19 part02test19 4.19.1 Diff
8a9,11 > paths > [1,1] > true
4.19.2 Input File
[1,5,7,8,9,3]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,1,-,-,-,-,2,-,-,-,x]. [x,1,2,-,1,-,2,-,-,1,x]. [x,x,x,x,x,x,x,x,x,x,x].
4.19.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,1,-,-,-,-,2,-,-,-,x] [x,1,2,-,1,-,2,-,-,1,x] [x,x,x,x,x,x,x,x,x,x,x]
4.19.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,1,-,-,-,-,2,-,-,-,x] [x,1,2,-,1,-,2,-,-,1,x] [x,x,x,x,x,x,x,x,x,x,x] paths
[1 ,1]
true
4.19.5 stderr
part02test19.diff
part02test19.cnf
Singleton variables: [Cn]
part02test19.output
part02test19.output
part02test19.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl :209:
Singleton variables: [Rows]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
62

Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.20 part02test20 4.20.1 Diff
8a9,18 > paths
part02test20.diff
> [1 ,1
> [5 ,6
> [5 ,8
> [6 ,5
> [6 ,8
> [7 ,7
> [8 ,5
> [8 ,6
> true
4.20.2
,1] ,8] ,6] ,8] ,5] ,7] ,6] ,5]
Input File
[6,1,3,2,1,8]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,2,-,-,-,-,x]. [x,1,-,-,2,-,-,1,-,x]. [x,x,x,x,x,x,x,x,x,x].
4.20.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,2,-,-,-,-,x] [x,1,-,-,2,-,-,1,-,x] [x,x,x,x,x,x,x,x,x,x]
4.20.4 Solution Output
part02test20.output
part02test20.cnf
63

game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,2,-,-,-,-,x] [x,1,-,-,2,-,-,1,-,x] [x,x,x,x,x,x,x,x,x,x] paths
[1 ,1 ,1]
[5 ,6 ,8]
[5 ,8 ,6]
[6 ,5 ,8]
[6 ,8 ,5]
[7 ,7 ,7]
[8 ,5 ,6]
[8 ,6 ,5]
true
4.20.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test20.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.21 part02test21 4.21.1 Diff
7a8,10
> paths
> [7 ,7 ,7] > true
4.21.2 Input File
part02test21.diff
part02test21.cnf
[6,7,3,5,3,3,1,4,2,1,6,2,8].
part02test20.output
64

[x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,4,x]. [x,-,-,-,-,2,-,1,3,x]. [x,x,x,x,x,x,x,x,x,x].
4.21.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,4,x] [x,-,-,-,-,2,-,1,3,x] [x,x,x,x,x,x,x,x,x,x]
4.21.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,4,x] [x,-,-,-,-,2,-,1,3,x] [x,x,x,x,x,x,x,x,x,x] paths
[7 ,7 ,7]
true
4.21.5 stderr
part02test21.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test21.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
part02test21.output
65

4.22 part02test22 4.22.1 Diff
8a9,13 > paths > [6,6] > [7,8] > [8,7] > true
4.22.2 Input File
[2,8,2,8,2,5,2,6,6,1,5,3,7,3,7,4]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,1,-,2,-,1,-,-,x]. [x,-,2,1,2,3,3,-,-,x]. [x,x,x,x,x,x,x,x,x,x].
4.22.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,1,-,2,-,1,-,-,x] [x,-,2,1,2,3,3,-,-,x] [x,x,x,x,x,x,x,x,x,x]
4.22.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,1,-,2,-,1,-,-,x] [x,-,2,1,2,3,3,-,-,x] [x,x,x,x,x,x,x,x,x,x] paths
[6 ,6]
[7 ,8]
[8 ,7]
true
4.22.5 stderr
part02test22.diff
part02test22.cnf
part02test22.output
part02test22.output
part02test22.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
66

Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.23 part02test23 4.23.1 Diff
10a11,13 > paths > [2]
> true
4.23.2 Input File
[5,3,1,2,3,2,6,3,2,4,3,1,4,4]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,2,x]. [x,-,-,-,-,-,3,x]. [x,-,-,-,2,-,3,x]. [x,-,-,1,1,1,2,x]. [x,x,x,x,x,x,x,x].
4.23.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,2,x] [x,-,-,-,-,-,3,x] [x,-,-,-,2,-,3,x] [x,-,-,1,1,1,2,x] [x,x,x,x,x,x,x,x]
4.23.4 Solution Output
part02test23.diff
part02test23.cnf
part02test23.output
67

game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,2,x] [x,-,-,-,-,-,3,x] [x,-,-,-,2,-,3,x] [x,-,-,1,1,1,2,x] [x,x,x,x,x,x,x,x] paths
[2]
true
4.23.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test23.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.24 part02test24 4.24.1 Diff
7a8,12 > paths > [1,4] > [2,2] > [4,1] > true
4.24.2 Input File
[3,1,2,3,6,6,6,4,6,4,1,3,1,5]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x].
part02test24.diff
part02test24.cnf
part02test23.output
68

[x,-,-,-,-,-,-,x]. [x,-,1,-,-,2,-,x]. [x,-,3,1,-,2,4,x]. [x,x,x,x,x,x,x,x].
4.24.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,2,-,x] [x,-,3,1,-,2,4,x] [x,x,x,x,x,x,x,x]
4.24.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,2,-,x] [x,-,3,1,-,2,4,x] [x,x,x,x,x,x,x,x] paths
[1 ,4]
[2 ,2]
[4 ,1]
true
4.24.5 stderr
part02test24.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test24.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
part02test24.output
69

4.25 part02test25 4.25.1 Diff
8a9,18 > paths
part02test25.diff
> [3 ,5
> [3 ,6
> [4 ,4
> [5 ,3
> [5 ,6
> [6 ,3
> [6 ,5
> [7 ,7
> true
4.25.2
,6] ,5] ,4] ,6] ,3] ,5] ,3] ,7]
Input File
[3,4,6,2,6,9,6,2,2,4,9,1,9]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,1,-,-,x]. [x,-,2,-,1,-,-,2,-,-,x]. [x,x,x,x,x,x,x,x,x,x,x].
4.25.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,1,-,-,x] [x,-,2,-,1,-,-,2,-,-,x] [x,x,x,x,x,x,x,x,x,x,x]
4.25.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,1,-,-,x] [x,-,2,-,1,-,-,2,-,-,x] [x,x,x,x,x,x,x,x,x,x,x] paths
[3 ,5 ,6]
[3 ,6 ,5]
[4 ,4 ,4]
[5 ,3 ,6]
[5 ,6 ,3]
[6 ,3 ,5]
part02test25.output
part02test25.cnf
part02test25.output
70

[6 ,5 ,3] [7 ,7 ,7] true
4.25.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test25.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.26 part02test26 4.26.1 Diff
8a9,23 > paths
part02test26.diff
> [1 ,3
> [1 ,4
> [2 ,2
> [3 ,1
> [3 ,4
> [3 ,4
> [3 ,5
> [4 ,1
> [4 ,3
> [4 ,3
> [4 ,5
> [5 ,3
> [5 ,4
> true
4.26.2
,4] ,3] ,2] ,4] ,1] ,5] ,4] ,3] ,1] ,5] ,3] ,4] ,3]
Input File
[5,2,1,1,6,6,6,2,7,6,5,4,3,2,6,6,7]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x].
part02test26.cnf
71

[x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,1,-,-,-,-,-,x]. [x,x,x,x,x,x,x,x,x].
4.26.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,-,x] [x,x,x,x,x,x,x,x,x]
4.26.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,-,x] [x,x,x,x,x,x,x,x,x] paths
[1 ,3 ,4]
[1 ,4 ,3]
[2 ,2 ,2]
[3 ,1 ,4]
[3 ,4 ,1]
[3 ,4 ,5]
[3 ,5 ,4]
[4 ,1 ,3]
[4 ,3 ,1]
[4 ,3 ,5]
[4 ,5 ,3]
[5 ,3 ,4]
[5 ,4 ,3]
true
4.26.5 stderr
part02test26.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
part02test26.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn]
part02test26.output
72

Warning: :209:
Warning:
Warning: :209:
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.27 part02test27 4.27.1 Diff
9a10,25 > paths
part02test27.diff
> [1 ,2
> [1 ,4
> [2 ,1
> [2 ,4
> [2 ,4
> [2 ,5
> [3 ,3
> [4 ,1
> [4 ,2
> [4 ,2
> [4 ,5
> [5 ,2
> [5 ,4
> [8 ,8
> true
4.27.2
,4] ,2] ,4] ,1] ,5] ,4] ,3] ,2] ,1] ,5] ,2] ,4] ,2] ,8]
Input File
[7,7,5,8,7,5,5,8,3,6]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,2,-,-,x]. [x,-,-,1,-,-,4,-,3,x]. [x,x,x,x,x,x,x,x,x,x].
4.27.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,2,-,-,x] [x,-,-,1,-,-,4,-,3,x] [x,x,x,x,x,x,x,x,x,x]
part02test27.output
part02test27.cnf
73

4.27.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,2,-,-,x] [x,-,-,1,-,-,4,-,3,x] [x,x,x,x,x,x,x,x,x,x] paths
[1 ,2 ,4]
[1 ,4 ,2]
[2 ,1 ,4]
[2 ,4 ,1]
[2 ,4 ,5]
[2 ,5 ,4]
[3 ,3 ,3]
[4 ,1 ,2]
[4 ,2 ,1]
[4 ,2 ,5]
[4 ,5 ,2]
[5 ,2 ,4]
[5 ,4 ,2]
[8 ,8 ,8]
true
4.27.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test27.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.28 part02test28 4.28.1 Diff
part02test27.output
74

9a10,12 > paths > [1]
> true
4.28.2 Input File
[2,1,6,5,5,5,1,7,3,4,4,2,4,5,6,3,7,7]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,3,-,-,-,-,-,-,x]. [x,1,2,-,-,-,3,-,x]. [x,1,2,-,-,-,1,-,x]. [x,x,x,x,x,x,x,x,x].
4.28.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,3,-,-,-,-,-,-,x] [x,1,2,-,-,-,3,-,x] [x,1,2,-,-,-,1,-,x] [x,x,x,x,x,x,x,x,x]
4.28.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,3,-,-,-,-,-,-,x] [x,1,2,-,-,-,3,-,x] [x,1,2,-,-,-,1,-,x] [x,x,x,x,x,x,x,x,x] paths
[1]
true
4.28.5 stderr
part02test28.output
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test28.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
part02test28.diff
part02test28.cnf
part02test28.output
75

Warning:
Warning: :209:
Warning:
Warning: :209:
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.29 part02test29 4.29.1 Diff
9a10,26 > paths
part02test29.diff
> [2 ,2
> [3 ,3
> [4 ,5
> [4 ,6
> [5 ,4
> [5 ,6
> [5 ,6
> [5 ,8
> [6 ,4
> [6 ,5
> [6 ,5
> [6 ,8
> [7 ,7
> [8 ,5
> [8 ,6
> true
4.29.2
,2] ,3] ,6] ,5] ,6] ,4] ,8] ,6] ,5] ,4] ,8] ,5] ,7] ,6] ,5]
Input File
[7,4,7,3,7,2,1,2,8,3]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,3,-,-,-,-,-,x]. [x,-,1,2,-,-,-,1,-,x]. [x,x,x,x,x,x,x,x,x,x].
4.29.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x]
part02test29.output
part02test29.cnf
76

[x,-,-,-,-,-,-,-,-,x] [x,-,-,3,-,-,-,-,-,x] [x,-,1,2,-,-,-,1,-,x] [x,x,x,x,x,x,x,x,x,x]
4.29.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,3,-,-,-,-,-,x] [x,-,1,2,-,-,-,1,-,x] [x,x,x,x,x,x,x,x,x,x] paths
[2 ,2 ,2]
[3 ,3 ,3]
[4 ,5 ,6]
[4 ,6 ,5]
[5 ,4 ,6]
[5 ,6 ,4]
[5 ,6 ,8]
[5 ,8 ,6]
[6 ,4 ,5]
[6 ,5 ,4]
[6 ,5 ,8]
[6 ,8 ,5]
[7 ,7 ,7]
[8 ,5 ,6]
[8 ,6 ,5]
true
4.29.5 stderr
part02test29.output
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test29.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
77

4.30 part02test30 4.30.1 Diff
9a10,24 > paths
part02test30.diff
> [1 ,2
> [1 ,4
> [2 ,1
> [2 ,4
> [2 ,4
> [2 ,5
> [4 ,1
> [4 ,2
> [4 ,2
> [4 ,5
> [5 ,2
> [5 ,4
> [6 ,6
> true
4.30.2
,4] ,2] ,4] ,1] ,5] ,4] ,2] ,1] ,5] ,2] ,4] ,2] ,6]
Input File
[5,5,3,5,3,7,4,3,4,3,5,7,6]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,4,-,-,1,-,-,x]. [x,-,-,3,-,-,2,-,-,x]. [x,x,x,x,x,x,x,x,x,x].
4.30.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,4,-,-,1,-,-,x] [x,-,-,3,-,-,2,-,-,x] [x,x,x,x,x,x,x,x,x,x]
4.30.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,4,-,-,1,-,-,x] [x,-,-,3,-,-,2,-,-,x]
part02test30.output
part02test30.cnf
part02test30.output
78

[x,x,x,x,x,x,x,x,x,x] paths
[1 ,2 ,4]
[1 ,4 ,2]
[2 ,1 ,4] [2 ,4 ,1] [2 ,4 ,5] [2 ,5 ,4] [4 ,1 ,2] [4 ,2 ,1] [4 ,2 ,5] [4 ,5 ,2] [5 ,2 ,4] [5 ,4 ,2] [6 ,6 ,6] true
4.30.5 stderr
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
Warning:
Warning: :209:
part02test30.err
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1: Singleton variables: [Cn]
/home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl:1:
Singleton variables: [Cn] /home/grad/Classes/cse322/csce322hmwrk04/fyang/02/csce322hmwrk04part02.pl
Singleton variables: [Rows]
ERROR: Prolog initialisation failed:
ERROR: fewestDrops/2: Undefined procedure: getColumnList/2
4.31 Source Code
1 fewestDrops(Game, T):-
2 delete(Game, end_of_file, TG),
3 getColumnList(TG, Trs),
4 getRowCol(Trs, Rn, Cn),
5
6 reverseAll(Trs, NewGx), 7
8 getRear(1, NewGx, NewG), 9
10 %% winSteps(NewG, Rn, [U, V]). 11
12
13 fewSteps(NewG, Rn, NumStep, _),
csce322hmwrk04part02.pl
79

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
getAllForNum(NewG, Rn, NumStep, T).
fewSteps(NewG, Rn, 0, []):- winSteps(NewG, Rn, []),
!.
fewSteps(NewG, Rn, 1, [U]):- winSteps(NewG, Rn, [U]),
!.
fewSteps(NewG, Rn, 2, [U,V]):- winSteps(NewG, Rn, [U,V]),
!.
fewSteps(NewG, Rn, 3, [U,V,W]):- winSteps(NewG, Rn, [U,V,W]),
!.
fewSteps(NewG, Rn, 4, [U,V,W, X]):- winSteps(NewG, Rn, [U,V,W, X]),
!.
fewSteps(NewG, Rn, 5, [U,V,W, X, Y]):- winSteps(NewG, Rn, [U,V,W, X, Y]), !.
getAllForNum(NewG, Rn, 0, []):- winSteps(NewG, Rn, []).
getAllForNum(NewG, Rn, 1, [U]):- winSteps(NewG, Rn, [U]).
getAllForNum(NewG, Rn, 2, [U,V]):- winSteps(NewG, Rn, [U,V]).
getAllForNum(NewG, Rn, 3, [U,V,W]):- winSteps(NewG, Rn, [U,V,W]).
getAllForNum(NewG, Rn, 4, [U,V,W, X]):- winSteps(NewG, Rn, [U,V,W, X]).
getAllForNum(NewG, Rn, 5, [U,V,W, X, Y]):- winSteps(NewG, Rn, [U,V,W, X, Y]).
mytest2:- mytest21 ,
mytest22 ,
80

74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
mytest23 , mytest24 , mytest25 , mytest26.
mytest26:- readConnectFourFile(‘part02test06.cnf’,_,Game), writeln(game),
printGame(Game), setof(Moves,fewestDrops(Game,Moves),Paths), writeln(paths),
printPaths(Paths).
mytest25:- readConnectFourFile(‘part02test05.cnf’,_,Game), writeln(game),
printGame(Game), setof(Moves,fewestDrops(Game,Moves),Paths), writeln(paths),
printPaths(Paths).
mytest24:- readConnectFourFile(‘part02test04.cnf’,_,Game), writeln(game),
printGame(Game), setof(Moves,fewestDrops(Game,Moves),Paths), writeln(paths),
printPaths(Paths).
mytest23:- readConnectFourFile(‘part02test03.cnf’,_,Game), writeln(game),
printGame(Game), setof(Moves,fewestDrops(Game,Moves),Paths), writeln(paths),
printPaths(Paths).
mytest22:- readConnectFourFile(‘part02test02.cnf’,_,Game), writeln(game),
printGame(Game), setof(Moves,fewestDrops(Game,Moves),Paths), writeln(paths),
printPaths(Paths).
mytest21:- readConnectFourFile(‘part02test01.cnf’,_,Game), writeln(game),
printGame(Game), setof(Moves,fewestDrops(Game,Moves),Paths),
81

134 writeln(paths),
135 printPaths(Paths).
136
137
138
139
140 move(Pos,PreG,NextG) :- getPosition(Pos, PreG, OldCol),
141 length(PreG, Rn), nth1(Rn, PreG, F), length(F, Cn),
142
143
144
145
146
147
148 getRowCol(Game, Rn, Cn):- 149
concatList(OldCol , [1], NewCol), length(NewCol , NowN),
NowN =< Cn, concatStartAndRear(Pos, NewCol, PreG, NextG). length(Game, Rn), nth0(0, Game, F), length(F, Cn). 150 151 moveSteps(Game, []):- winPos(Game, _, _). 152 153 154 moveSteps(Game, [Col|T]):- 155 156 move(Col, Game, NextGame), 157 158 moveSteps(NextGame , T). 159 160 161 162 have1(Game, Rn, Cn):- 163 nth1(Rn, Game, Row), 164 nth1(Cn, Row, 1). 165 166 winPos(Game, R, C):- 167 have1(Game, R, C), 168 R2isR+1, 169 have1(Game, R2, C), 170 R3isR+2, 171 have1(Game, R3, C), 172 R4isR+3, 173 have1(Game, R4, C). 174 175 winPos(Game, R, C):- 176 have1(Game, R, C), 177 C2isC+1, 178 have1(Game, R, C2), 179 C3isC+2, 180 have1(Game, R, C3), 181 C4isC+3, 182 have1(Game, R, C4). 183 184 winPos(Game, R, C):- 185 have1(Game, R, C), 186 R2isR+1, 187 C2isC+1, 188 have1(Game, R2, C2), 189 C3isC+2, 190 R3isR+2, 191 have1(Game, R3, C3), 192 C4isC+3, 193 R4isR+3, 82 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 have1(Game, R4, C4). winPos(Game, R, C):- have1(Game, R, C), R2isR+1, C2isC-1, have1(Game, R2, C2), C3isC-2, R3isR+2, have1(Game, R3, C3), C4isC-3, R4isR+3, have1(Game, R4, C4). winSteps(Game, Rows, moveSteps(Game, winSteps(Game, Rows, between(1, Rows, U), moveSteps(Game, [U]). winSteps(Game, Rows, [U, V]):- between(1, Rows, U), between(1, Rows, V), moveSteps(Game, [U, V]). winSteps(Game, Rows, [U, V, W]):- between(1, Rows, U), between(1, Rows, V), between(1, Rows, W), moveSteps(Game, [U, V, W]). winSteps(Game, Rows, [U, V, W, X]):- between(1, Rows, U), between(1, Rows, V), between(1, Rows, W), between(1, Rows, X), moveSteps(Game, [U, V, W, X]). winSteps(Game, Rows, [U, V, W, X, Y]):- between(1, Rows, U), between(1, Rows, V), between(1, Rows, W), between(1, Rows, X), between(1, Rows, Y), moveSteps(Game, [U, V, W, X, Y]). concatList([],L,L). concatList([X|L1],L2,[X|L3]) :- concatList(L1,L2,L3). []):- []). [U]):- 83 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 getPosition(_,[],' '). getPosition(1,[Y|_],Z) :- Y=Z. getPosition(Pos,[_|W],Z) :- K is Pos-1, getPosition(K,W,Z). getRear(0,L,L2):- L=L2. getRear(Pos,[_|W],L2) :- K is Pos-1, getRear(K,W,L2). getStart(Pos,L,L2) :- getRear(Pos,L,L3), concatList(L2,L3,L). concatStartAndRear(Pos,Item,L1,L2) :- K is Pos-1, getStart(K,L1,L3), concatList(L3,[Item],L4), getRear(Pos,L1,L5), concatList(L4,L5,L2). 84 Chapter 5 csce322hmwrk04part03.pl 5.1 part03test01 5.1.1 Diff 10 a11 > false
5.1.2 Input File
[4,2,3,5,4]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,3,-,-,-,-,x]. [x,1,-,1,-,-,x]. [x,2,-,2,-,-,x]. [x,1,-,3,4,4,x]. [x,x,x,x,x,x,x].
5.1.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,3,-,-,-,-,x] [x,1,-,1,-,-,x] [x,2,-,2,-,-,x] [x,1,-,3,4,4,x] [x,x,x,x,x,x,x]
5.1.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x]
part03test01.diff
part03test01.cnf
part03test01.output
part03test01.output
85

[x,3,-,-,-,-,x] [x,1,-,1,-,-,x] [x,2,-,2,-,-,x] [x,1,-,3,4,4,x] [x,x,x,x,x,x,x] false
5.1.5 stderr
part03test01.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.2 part03test02 5.2.1 Diff
10 a11
> false
part03test02.diff
86

5.2.2 Input File
[7,1,9,2,2,6,6,2,9,5,2,6,1,5,1,9]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,4,-,-,-,-,2,3,x]. [x,4,2,1,-,-,-,-,1,3,x]. [x,x,x,x,x,x,x,x,x,x,x].
5.2.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,4,-,-,-,-,2,3,x] [x,4,2,1,-,-,-,-,1,3,x] [x,x,x,x,x,x,x,x,x,x,x]
5.2.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,4,-,-,-,-,2,3,x] [x,4,2,1,-,-,-,-,1,3,x] [x,x,x,x,x,x,x,x,x,x,x] false
5.2.5 stderr
part03test02.output
part03test02.cnf
part03test02.output
part03test02.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
87

Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.3 part03test03 5.3.1 Diff
9a10
> true
5.3.2 Input File
[3,3,4,7,2,2,3,3,2,2,7,6]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,1,-,2,1,-,-,-,x]. [x,x,x,x,x,x,x,x,x].
5.3.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x]
part03test03.diff
part03test03.cnf
part03test03.output
88

[x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,1,-,2,1,-,-,-,x] [x,x,x,x,x,x,x,x,x]
5.3.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,1,-,2,1,-,-,-,x] [x,x,x,x,x,x,x,x,x] true
5.3.5 stderr
part03test03.output
part03test03.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
89

Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.4 part03test04 5.4.1 Diff
8a9
> true
5.4.2 Input File
part03test04.diff
part03test04.cnf
[6,3,3,5,2,2,6,2,1,2,6,2,4,5,2,5,4,6,6,2]. [x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,1,-,-,-,x]. [x,x,x,x,x,x,x,x].
5.4.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,1,-,-,-,x] [x,x,x,x,x,x,x,x]
5.4.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,1,-,-,-,x] [x,x,x,x,x,x,x,x] true
5.4.5 stderr
part03test04.output
part03test04.output
part03test04.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
90

Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.5 part03test05 5.5.1 Diff
10 a11
> false
5.5.2 Input File
[7,3,2,6,3,5,1,3,1,3,1,4,5,5,2,7,6]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,1,2,-,-,-,-,1,x]. [x,1,1,-,-,2,2,2,x]. [x,1,2,-,-,1,1,2,x]. [x,x,x,x,x,x,x,x,x].
5.5.3 Submission Output
part03test05.diff
part03test05.cnf
91

game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,1,2,-,-,-,-,1,x] [x,1,1,-,-,2,2,2,x] [x,1,2,-,-,1,1,2,x] [x,x,x,x,x,x,x,x,x]
5.5.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,1,2,-,-,-,-,1,x] [x,1,1,-,-,2,2,2,x] [x,1,2,-,-,1,1,2,x] [x,x,x,x,x,x,x,x,x] false
5.5.5 stderr
part03test05.output
part03test05.output
part03test05.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
92

Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.6 part03test06 5.6.1 Diff
11 a12
> false
5.6.2 Input File
[2 ,5 ,6 ,1]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,1,-,-,-,-,-,x]. [x,2,-,-,-,-,-,x]. [x,2,-,-,-,-,-,x]. [x,2,1,1,-,-,-,x]. [x,1,2,1,1,-,2,x]. [x,x,x,x,x,x,x,x].
5.6.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,1,-,-,-,-,-,x] [x,2,-,-,-,-,-,x] [x,2,-,-,-,-,-,x] [x,2,1,1,-,-,-,x] [x,1,2,1,1,-,2,x] [x,x,x,x,x,x,x,x]
5.6.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x]
part03test06.diff
part03test06.cnf
part03test06.output
part03test06.output
93

[x,1,-,-,-,-,-,x] [x,2,-,-,-,-,-,x] [x,2,-,-,-,-,-,x] [x,2,1,1,-,-,-,x] [x,1,2,1,1,-,2,x] [x,x,x,x,x,x,x,x] false
5.6.5 stderr
5.7 part03test07 5.7.1 Diff
8a9
part03test06.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
part03test07.diff
94

> true
5.7.2 Input File
[8,7,4,2,3,7,9,3,8,5]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,1,-,-,x]. [x,x,x,x,x,x,x,x,x,x,x].
5.7.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,1,-,-,x] [x,x,x,x,x,x,x,x,x,x,x]
5.7.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,1,-,-,x] [x,x,x,x,x,x,x,x,x,x,x] true
5.7.5 stderr
part03test07.cnf
part03test07.output
part03test07.output
part03test07.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
95

Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.8 part03test08 5.8.1 Diff
10 a11
> false
5.8.2 Input File
[1,4,4,2,3,2,1]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,3,-,1,-,x]. [x,-,2,1,-,3,2,x]. [x,x,x,x,x,x,x,x].
5.8.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,3,-,1,-,x] [x,-,2,1,-,3,2,x] [x,x,x,x,x,x,x,x]
part03test08.diff
part03test08.cnf
part03test08.output
96

5.8.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,3,-,1,-,x] [x,-,2,1,-,3,2,x] [x,x,x,x,x,x,x,x] false
5.8.5 stderr
part03test08.output
part03test08.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
97

5.9 part03test09 5.9.1 Diff
10 a11
> false
5.9.2 Input File
[6,5,4,7,6,2,5,3,6]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,2,1,-,3,1,x]. [x,-,-,-,2,3,1,-,2,3,x]. [x,x,x,x,x,x,x,x,x,x,x].
5.9.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,2,1,-,3,1,x] [x,-,-,-,2,3,1,-,2,3,x] [x,x,x,x,x,x,x,x,x,x,x]
5.9.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,2,1,-,3,1,x] [x,-,-,-,2,3,1,-,2,3,x] [x,x,x,x,x,x,x,x,x,x,x] false
5.9.5 stderr
part03test09.diff
part03test09.cnf
part03test09.output
part03test09.output
part03test09.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
98

Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.10 part03test10 5.10.1 Diff
11 a12
> false
5.10.2 Input File
[3,1,1,4,2,5,2,2,3,2,3,3,6,1,1]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,2,-,-,2,-,1,x]. [x,1,-,1,2,2,1,x]. [x,x,x,x,x,x,x,x].
part03test10.diff
part03test10.cnf
99

5.10.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,-,-,2,-,1,x] [x,1,-,1,2,2,1,x] [x,x,x,x,x,x,x,x]
5.10.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,-,-,2,-,1,x] [x,1,-,1,2,2,1,x] [x,x,x,x,x,x,x,x] false
5.10.5 stderr
part03test10.output
part03test10.output
part03test10.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
100

Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.11 part03test11 5.11.1 Diff
11 a12 > true
5.11.2 Input File
[2,1,5,4,1,4,3,2,4,3,1,3,5,3]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,1,-,-,x]. [x,-,-,4,2,-,x]. [x,-,-,3,1,2,x]. [x,x,x,x,x,x,x].
5.11.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,1,-,-,x] [x,-,-,4,2,-,x] [x,-,-,3,1,2,x] [x,x,x,x,x,x,x]
5.11.4 Solution Output
part03test11.diff
part03test11.cnf
game
part03test11.output
part03test11.output
101

[x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,1,-,-,x] [x,-,-,4,2,-,x] [x,-,-,3,1,2,x] [x,x,x,x,x,x,x] true
5.11.5 stderr
part03test11.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
102

5.12 part03test12 5.12.1 Diff
11 a12
> false
5.12.2 Input File
part03test12.diff
part03test12.cnf
[5,2,6,3,8,2,3,6,6,5,5,6,8,2,2,8,4,4]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,4,-,-,x]. [x,-,-,-,-,-,3,-,-,x]. [x,-,-,-,-,-,2,-,-,x]. [x,-,2,-,-,-,3,-,4,x]. [x,3,1,-,-,-,1,1,2,x]. [x,x,x,x,x,x,x,x,x,x].
5.12.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,4,-,-,x] [x,-,-,-,-,-,3,-,-,x] [x,-,-,-,-,-,2,-,-,x] [x,-,2,-,-,-,3,-,4,x] [x,3,1,-,-,-,1,1,2,x] [x,x,x,x,x,x,x,x,x,x]
5.12.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,4,-,-,x] [x,-,-,-,-,-,3,-,-,x] [x,-,-,-,-,-,2,-,-,x] [x,-,2,-,-,-,3,-,4,x] [x,3,1,-,-,-,1,1,2,x] [x,x,x,x,x,x,x,x,x,x] false
5.12.5 stderr
part03test12.output
part03test12.output
part03test12.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
103

Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.13 part03test13 5.13.1 Diff
8a9
> false
5.13.2 Input File
[2,4,3,3,5,4,5,4,4,5,1,3,2,3,1]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,1,x]. [x,-,-,-,-,3,x]. [x,-,-,4,2,1,x]. [x,x,x,x,x,x,x].
part03test13.diff
part03test13.cnf
104

5.13.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,1,x] [x,-,-,-,-,3,x] [x,-,-,4,2,1,x] [x,x,x,x,x,x,x]
5.13.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,1,x] [x,-,-,-,-,3,x] [x,-,-,4,2,1,x] [x,x,x,x,x,x,x] false
5.13.5 stderr
part03test13.output
part03test13.output
part03test13.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
105

Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.14 part03test14 5.14.1 Diff
8a9
> false
5.14.2 Input File
[7,6,8,4,9,7]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,1,-,-,x]. [x,-,-,2,-,-,-,2,-,-,x]. [x,4,4,1,3,-,3,2,1,3,x]. [x,x,x,x,x,x,x,x,x,x,x].
5.14.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,1,-,-,x] [x,-,-,2,-,-,-,2,-,-,x] [x,4,4,1,3,-,3,2,1,3,x] [x,x,x,x,x,x,x,x,x,x,x]
5.14.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,1,-,-,x] [x,-,-,2,-,-,-,2,-,-,x] [x,4,4,1,3,-,3,2,1,3,x] [x,x,x,x,x,x,x,x,x,x,x] false
5.14.5 stderr
part03test14.diff
part03test14.cnf
part03test14.output
part03test14.output
106

part03test14.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.15 part03test15 5.15.1 Diff
9a10
> true
5.15.2 Input File
[5,3,4,3,1,2,2,4,4,2]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x].
part03test15.diff
part03test15.cnf
107

[x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,1,-,-,-,-,x]. [x,x,x,x,x,x,x,x].
5.15.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,x] [x,x,x,x,x,x,x,x]
5.15.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,-,-,x] [x,x,x,x,x,x,x,x] true
5.15.5 stderr
part03test15.output
part03test15.output
part03test15.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
108

Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.16 part03test16 5.16.1 Diff
11 a12
> false
5.16.2 Input File
[2,3,1,4,1,2,2,6,6,1,2]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,2,-,-,-,1,-,x]. [x,2,1,-,1,2,1,x]. [x,2,1,-,2,1,2,x]. [x,x,x,x,x,x,x,x].
5.16.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,-,-,-,1,-,x] [x,2,1,-,1,2,1,x] [x,2,1,-,2,1,2,x] [x,x,x,x,x,x,x,x]
5.16.4 Solution Output
part03test16.diff
part03test16.cnf
part03test16.output
109

game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,-,-,-,1,-,x] [x,2,1,-,1,2,1,x] [x,2,1,-,2,1,2,x] [x,x,x,x,x,x,x,x] false
5.16.5 stderr
part03test16.output
part03test16.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
110

5.17 part03test17 5.17.1 Diff
8a9
> false
5.17.2 Input File
[3,4,2,1,3,1,4,3,4]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,2,-,-,-,x]. [x,-,2,-,3,-,x]. [x,-,1,3,1,-,x]. [x,x,x,x,x,x,x].
5.17.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,2,-,-,-,x] [x,-,2,-,3,-,x] [x,-,1,3,1,-,x] [x,x,x,x,x,x,x]
5.17.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,2,-,-,-,x] [x,-,2,-,3,-,x] [x,-,1,3,1,-,x] [x,x,x,x,x,x,x] false
5.17.5 stderr
part03test17.diff
part03test17.cnf
part03test17.output
part03test17.output
part03test17.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
111

Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.18 part03test18 5.18.1 Diff
11 a12
> false
5.18.2 Input File
[2,5,3,2,5]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,1,-,-,-,-,x]. [x,2,3,2,3,3,1,1,x]. [x,3,2,1,1,3,2,2,x]. [x,x,x,x,x,x,x,x,x].
5.18.3 Submission Output
part03test18.diff
part03test18.cnf
game
part03test18.output
112

[x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,1,-,-,-,-,x] [x,2,3,2,3,3,1,1,x] [x,3,2,1,1,3,2,2,x] [x,x,x,x,x,x,x,x,x]
5.18.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,1,-,-,-,-,x] [x,2,3,2,3,3,1,1,x] [x,3,2,1,1,3,2,2,x] [x,x,x,x,x,x,x,x,x] false
5.18.5 stderr
part03test18.output
part03test18.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
113

Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.19 part03test19 5.19.1 Diff
11 a12
> false
5.19.2 Input File
[3,6,5,5,4,4,1,4,3,2,1]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,1,-,-,2,-,x]. [x,-,1,4,3,3,1,x]. [x,2,1,4,2,4,3,x]. [x,x,x,x,x,x,x,x].
5.19.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,2,-,x] [x,-,1,4,3,3,1,x] [x,2,1,4,2,4,3,x] [x,x,x,x,x,x,x,x]
5.19.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x]
part03test19.diff
part03test19.cnf
part03test19.output
part03test19.output
114

[x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,2,-,x] [x,-,1,4,3,3,1,x] [x,2,1,4,2,4,3,x] [x,x,x,x,x,x,x,x] false
5.19.5 stderr
5.20 part03test20 5.20.1 Diff
7a8
part03test19.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
part03test20.diff
115

> false
5.20.2 Input File
[6,1,3,3,4,3,2,1,4,1,6,1]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,1,-,-,-,2,x]. [x,1,2,-,1,-,2,x]. [x,x,x,x,x,x,x,x].
5.20.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,-,2,x] [x,1,2,-,1,-,2,x] [x,x,x,x,x,x,x,x]
5.20.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,1,-,-,-,2,x] [x,1,2,-,1,-,2,x] [x,x,x,x,x,x,x,x] false
5.20.5 stderr
part03test20.cnf
part03test20.output
part03test20.output
part03test20.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23: Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25: Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28: Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39: Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
116

1 2 3 4 5 6 7 8 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:23:
Singleton variables: [Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:25:
Singleton variables: [X,Y]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:28:
Singleton variables: [T]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:30:
Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/03/csce322hmwrk04part03.pl:39:
Singleton variables: [Rn,L]
ERROR: Prolog initialisation failed:
ERROR: hasConsecutiveMat/1: Undefined procedure: collectNumber/2
5.21 Source Code
csce322hmwrk04part03.pl
notStackedTeammates(Game):- delete(Game, end_of_file, TG),
getColumnList(TG, Trs), not(hasConsecutiveMat(Trs)).
getColumnList([], []). getColumnList([W|V], Op) :-
getColumnList(W, [W|V], Op).
getColumnList([], _, []). getColumnList([_|A], Ms, [Op|Ops]) :-
getColumnHelper(Ms, Op, Nn), getColumnList(A, Nn, Ops).
getColumnHelper([], [], []). getColumnHelper([[W|Os]|Tai], [W|V], [Os|Oss]) :-
getColumnHelper(Tai, V, Oss).
hasConsecutive([X,X|Y]):- !. hasConsecutive([X,Y|Z]):- hasConsecutive(Z).
hasConsecutiveMat([X|T]):- collectNumber(X, Y), hasConsecutive(Y), !. hasConsecutiveMat([X|T]):- hasConsecutiveMat(T).
reverseAll([], []).
reverseAll([H|T], [NewH|NewT]):-
117

35 reverse(H, NewHX),
36 delete(NewHX , -, NewH),
37 reverseAll(T, NewT).
38
39 mytest03:-
40 readConnectFourFile(‘part03test01.cnf’,_,Game),
41 %% writeln(game),
42 %% printGame(Game),
43 %% notStackedTeammates(Game).
44 delete(Game, end_of_file, TG),
45 printGame(TG),
46 getColumnList(TG, Trs),
47
48 reverseAll(Trs, NewG),
49
50 printGame(NewG),
51
52 moveSteps(Game, Rn, 4, L).
118

Chapter 6
csce322hmwrk04part04.pl
6.1 part04test01 6.1.1 Diff
6.1.2 Input File
part04test01.diff
part04test01.cnf
[5,2,3,1,4,2,4,1,5,3,3,1,2,2,5,3,2,3,1,5]. [x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x]. [x,-,1,-,-,-,x]. [x,-,1,-,-,-,x]. [x,-,2,-,-,-,x]. [x,-,2,-,-,-,x]. [x,1,2,-,-,-,x]. [x,x,x,x,x,x,x].
6.1.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,1,-,-,-,x] [x,-,1,-,-,-,x] [x,-,2,-,-,-,x] [x,-,2,-,-,-,x] [x,1,2,-,-,-,x] [x,x,x,x,x,x,x] true
6.1.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x]
part04test01.output
part04test01.output
119

[x,-,-,-,-,-,x] [x,-,1,-,-,-,x] [x,-,1,-,-,-,x] [x,-,2,-,-,-,x] [x,-,2,-,-,-,x] [x,1,2,-,-,-,x] [x,x,x,x,x,x,x] true
6.1.5 stderr
6.2 part04test02 6.2.1 Diff
6.2.2 Input File
[7,6,8,3,7,8,3,5]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,2,1,-,-,-,-,2,-,x]. [x,1,1,-,-,-,2,1,-,x]. [x,x,x,x,x,x,x,x,x,x].
6.2.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,2,1,-,-,-,-,2,-,x] [x,1,1,-,-,-,2,1,-,x] [x,x,x,x,x,x,x,x,x,x] false
6.2.4 Solution Output
part04test02.diff
part04test02.cnf
part04test01.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test02.output
120

game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,2,1,-,-,-,-,2,-,x] [x,1,1,-,-,-,2,1,-,x] [x,x,x,x,x,x,x,x,x,x] false
6.2.5 stderr
6.3 part04test03 6.3.1 Diff
6.3.2 Input File
part04test03.diff
part04test03.cnf
[5,5,3,9,7,9,7,2,6,1,2,1,6,6,7,6,1,8,5]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,1,-,3,-,-,-,-,x]. [x,-,-,2,-,3,-,1,-,3,x]. [x,-,1,1,-,2,2,1,3,2,x]. [x,x,x,x,x,x,x,x,x,x,x].
6.3.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,1,-,3,-,-,-,-,x] [x,-,-,2,-,3,-,1,-,3,x] [x,-,1,1,-,2,2,1,3,2,x] [x,x,x,x,x,x,x,x,x,x,x] false
6.3.4 Solution Output
part04test03.output
part04test02.output
part04test02.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
121

game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,1,-,3,-,-,-,-,x] [x,-,-,2,-,3,-,1,-,3,x] [x,-,1,1,-,2,2,1,3,2,x] [x,x,x,x,x,x,x,x,x,x,x] false
6.3.5 stderr
part04test03.output
part04test03.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.4 part04test04 6.4.1 Diff
6.4.2 Input File
[1,2,2,8,8,1,3,4,8]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,1,-,x]. [x,x,x,x,x,x,x,x,x,x].
6.4.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,1,-,x] [x,x,x,x,x,x,x,x,x,x] true
6.4.4 Solution Output
part04test04.diff
part04test04.cnf
part04test04.output
122

game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,1,-,x] [x,x,x,x,x,x,x,x,x,x] true
6.4.5 stderr
6.5 part04test05 6.5.1 Diff
6.5.2 Input File
part04test05.diff
part04test05.cnf
[7,2,6,7,3,4,4,4,5,7,2,3,4,1,7,6,6,7,7]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,4,-,-,1,-,-,x]. [x,-,4,-,-,2,-,3,x]. [x,4,3,3,2,2,1,1,x]. [x,x,x,x,x,x,x,x,x].
6.5.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,4,-,-,1,-,-,x] [x,-,4,-,-,2,-,3,x] [x,4,3,3,2,2,1,1,x]
part04test05.output
part04test04.output
part04test04.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
123

[x,x,x,x,x,x,x,x,x] false
6.5.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,4,-,-,1,-,-,x] [x,-,4,-,-,2,-,3,x] [x,4,3,3,2,2,1,1,x] [x,x,x,x,x,x,x,x,x] false
6.5.5 stderr
part04test05.output
6.6 part04test06 6.6.1 Diff
6.6.2 Input File
part04test06.diff
part04test06.cnf
[6,3,5,4,2,4,3,5,4,3,2,1,1,3,6,3,1,2]. [x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,x]. [x,2,-,-,-,-,-,x]. [x,1,2,1,1,-,2,x]. [x,x,x,x,x,x,x,x].
6.6.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,-,-,-,-,-,x] [x,1,2,1,1,-,2,x] [x,x,x,x,x,x,x,x] false
part04test06.output
part04test05.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
124

6.6.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,2,-,-,-,-,-,x] [x,1,2,1,1,-,2,x] [x,x,x,x,x,x,x,x] false
6.6.5 stderr
6.7 part04test07 6.7.1 Diff
6.7.2 Input File
[3,1,1,4,3,5,3,1]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,1,x]. [x,-,-,-,2,3,x]. [x,x,x,x,x,x,x].
6.7.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,1,x] [x,-,-,-,2,3,x] [x,x,x,x,x,x,x] true
6.7.4 Solution Output
part04test07.diff
part04test07.cnf
game
part04test06.output
part04test06.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test07.output
part04test07.output
125

[x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,1,x] [x,-,-,-,2,3,x] [x,x,x,x,x,x,x] true
6.7.5 stderr
6.8 part04test08 6.8.1 Diff
6.8.2 Input File
[9,5,9,5,9,6,4]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,1,-,-,2,-,-,-,-,1,x]. [x,2,-,-,2,-,1,-,1,2,x]. [x,x,x,x,x,x,x,x,x,x,x].
6.8.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,1,-,-,2,-,-,-,-,1,x] [x,2,-,-,2,-,1,-,1,2,x] [x,x,x,x,x,x,x,x,x,x,x] false
6.8.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x]
part04test08.diff
part04test08.cnf
part04test07.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test08.output
part04test08.output
126

[x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,1,-,-,2,-,-,-,-,1,x] [x,2,-,-,2,-,1,-,1,2,x] [x,x,x,x,x,x,x,x,x,x,x] false
6.8.5 stderr
6.9 part04test09 6.9.1 Diff
6.9.2 Input File
[4,6,1,1,2,3,4]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,1,-,-,x]. [x,x,x,x,x,x,x,x].
6.9.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,1,-,-,x] [x,x,x,x,x,x,x,x] true
6.9.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x]
part04test09.diff
part04test09.cnf
part04test08.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test09.output
part04test09.output
127

[x,-,-,-,-,-,-,x] [x,-,-,-,1,-,-,x] [x,x,x,x,x,x,x,x] true
6.9.5 stderr
6.10 part04test10 6.10.1 Diff
6.10.2 Input File
[1,2,4,2,6,4,5,3,6,7,1,3,7]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,1,-,-,-,x]. [x,-,-,-,2,-,-,-,x]. [x,-,-,-,1,-,4,3,x]. [x,-,-,4,3,1,2,2,x]. [x,x,x,x,x,x,x,x,x].
6.10.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,1,-,-,-,x] [x,-,-,-,2,-,-,-,x] [x,-,-,-,1,-,4,3,x] [x,-,-,4,3,1,2,2,x] [x,x,x,x,x,x,x,x,x] false
6.10.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,1,-,-,-,x] [x,-,-,-,2,-,-,-,x]
part04test10.diff
part04test10.cnf
part04test09.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test10.output
part04test10.output
128

[x,-,-,-,1,-,4,3,x] [x,-,-,4,3,1,2,2,x] [x,x,x,x,x,x,x,x,x] false
6.10.5 stderr
6.11 part04test11 6.11.1 Diff
6.11.2 Input File
[1,5,4,1,5,1,2,4,3,5,9,5,8,4,7]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,2,-,-,-,x]. [x,-,-,-,-,-,3,-,-,-,x]. [x,-,-,2,-,-,3,-,-,-,x]. [x,1,1,1,3,-,1,2,-,-,x]. [x,x,x,x,x,x,x,x,x,x,x].
6.11.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,2,-,-,-,x] [x,-,-,-,-,-,3,-,-,-,x] [x,-,-,2,-,-,3,-,-,-,x] [x,1,1,1,3,-,1,2,-,-,x] [x,x,x,x,x,x,x,x,x,x,x] true
6.11.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,2,-,-,-,x] [x,-,-,-,-,-,3,-,-,-,x] [x,-,-,2,-,-,3,-,-,-,x] [x,1,1,1,3,-,1,2,-,-,x] [x,x,x,x,x,x,x,x,x,x,x] true
part04test11.diff
part04test11.cnf
part04test10.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test11.output
part04test11.output
129

6.11.5 stderr
part04test11.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.12 part04test12 6.12.1 Diff
6.12.2 Input File
[6,4,5,5,4]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,2,1,-,-,-,2,-,x]. [x,2,1,-,-,-,1,-,x]. [x,2,1,-,-,-,1,2,x]. [x,x,x,x,x,x,x,x,x].
6.12.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,2,1,-,-,-,2,-,x] [x,2,1,-,-,-,1,-,x] [x,2,1,-,-,-,1,2,x] [x,x,x,x,x,x,x,x,x] true
6.12.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x]
part04test12.diff
part04test12.cnf
part04test12.output
part04test12.output
130

[x,2,1,-,-,-,2,-,x] [x,2,1,-,-,-,1,-,x] [x,2,1,-,-,-,1,2,x] [x,x,x,x,x,x,x,x,x] true
6.12.5 stderr
game
part04test12.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.13 part04test13 6.13.1 Diff
6.13.2 Input File
[2,5,4,7,3,7,7,3,7,2,3,5,1,7,3,2]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,2,-,-,-,-,-,-,3,-,x]. [x,1,-,2,-,-,-,-,1,3,x]. [x,x,x,x,x,x,x,x,x,x,x].
6.13.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,2,-,-,-,-,-,-,3,-,x] [x,1,-,2,-,-,-,-,1,3,x] [x,x,x,x,x,x,x,x,x,x,x] false
6.13.4 Solution Output
part04test13.diff
part04test13.cnf
part04test13.output
part04test13.output
131

[x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,2,-,-,-,-,-,-,3,-,x] [x,1,-,2,-,-,-,-,1,3,x] [x,x,x,x,x,x,x,x,x,x,x] false
6.13.5 stderr
6.14 part04test14 6.14.1 Diff
6.14.2 Input File
[4,3,1,5,2]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,4,-,2,-,x]. [x,3,-,-,1,-,3,-,x]. [x,1,-,1,4,-,2,2,x]. [x,x,x,x,x,x,x,x,x].
6.14.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,4,-,2,-,x] [x,3,-,-,1,-,3,-,x] [x,1,-,1,4,-,2,2,x] [x,x,x,x,x,x,x,x,x] false
6.14.4 Solution Output
part04test14.diff
part04test14.cnf
part04test13.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test14.output
132

game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,4,-,2,-,x] [x,3,-,-,1,-,3,-,x] [x,1,-,1,4,-,2,2,x] [x,x,x,x,x,x,x,x,x] false
6.14.5 stderr
part04test14.output
part04test14.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.15 part04test15 6.15.1 Diff
11 c11
< true --- > false
6.15.2 Input File
[4,1,4,2,2,5,2,3,5,3,5,5,5,1]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,1,-,-,x]. [x,-,2,4,-,1,x]. [x,4,1,3,3,2,x]. [x,x,x,x,x,x,x].
6.15.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,1,-,-,x] [x,-,2,4,-,1,x]
part04test15.diff
part04test15.cnf
part04test15.output
133

[x,4,1,3,3,2,x] [x,x,x,x,x,x,x] true
6.15.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,1,-,-,x] [x,-,2,4,-,1,x] [x,4,1,3,3,2,x] [x,x,x,x,x,x,x] false
6.15.5 stderr
part04test15.output
6.16 part04test16 6.16.1 Diff
6.16.2 Input File
[3,3,2,7,2,4,4,4,3,7,5,5,3,4,7,3]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,2,-,-,-,-,1,-,-,x]. [x,x,x,x,x,x,x,x,x,x].
6.16.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,2,-,-,-,-,1,-,-,x] [x,x,x,x,x,x,x,x,x,x] true
part04test16.diff
part04test16.cnf
part04test15.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test16.output
134

6.16.4 Solution Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,2,-,-,-,-,1,-,-,x] [x,x,x,x,x,x,x,x,x,x] true
6.16.5 stderr
part04test16.output
part04test16.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.17 part04test17 6.17.1 Diff
6.17.2 Input File
[4,5,3,4,5,2]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,1,-,x]. [x,-,-,-,2,1,x]. [x,2,1,-,1,2,x]. [x,x,x,x,x,x,x].
6.17.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,1,-,x] [x,-,-,-,2,1,x] [x,2,1,-,1,2,x] [x,x,x,x,x,x,x] false
6.17.4 Solution Output
part04test17.diff
part04test17.cnf
part04test17.output
135

game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,1,-,x] [x,-,-,-,2,1,x] [x,2,1,-,1,2,x] [x,x,x,x,x,x,x] false
6.17.5 stderr
part04test17.output
part04test17.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.18 part04test18 6.18.1 Diff
9c9
< true --- > false
6.18.2 Input File
[5,5,2,3,8,1,7,8,4,5,5,6,6,7,6,8,3]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,3,-,-,-,-,-,x]. [x,3,4,1,-,3,-,-,-,x]. [x,1,2,2,4,1,-,-,2,x]. [x,x,x,x,x,x,x,x,x,x].
6.18.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,3,-,-,-,-,-,x] [x,3,4,1,-,3,-,-,-,x] [x,1,2,2,4,1,-,-,2,x] [x,x,x,x,x,x,x,x,x,x] true
6.18.4 Solution Output
part04test18.diff
part04test18.cnf
part04test18.output
136

game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,3,-,-,-,-,-,x] [x,3,4,1,-,3,-,-,-,x] [x,1,2,2,4,1,-,-,2,x] [x,x,x,x,x,x,x,x,x,x] false
6.18.5 stderr
6.19 part04test19 6.19.1 Diff
6.19.2 Input File
part04test19.diff
part04test19.cnf
[7,5,3,4,7,3,6,1,1,5,6,2,6,6,2,2,4,3,1,2]. [x,-,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,-,x].
[x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,2,-,-,-,-,-,-,x]. [x,2,-,-,-,-,1,1,x]. [x,x,x,x,x,x,x,x,x].
6.19.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,2,-,-,-,-,-,-,x] [x,2,-,-,-,-,1,1,x] [x,x,x,x,x,x,x,x,x] true
part04test19.output
part04test18.output
part04test18.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
137

6.19.4 Solution Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,2,-,-,-,-,-,-,x] [x,2,-,-,-,-,1,1,x] [x,x,x,x,x,x,x,x,x] true
6.19.5 stderr
part04test19.output
part04test19.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.20 part04test20 6.20.1 Diff
6.20.2 Input File
[8,2,1,5,8,7,7,3]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,2,-,-,x]. [x,2,3,1,-,-,-,3,-,1,x]. [x,x,x,x,x,x,x,x,x,x,x].
6.20.3 Submission Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,2,-,-,x] [x,2,3,1,-,-,-,3,-,1,x] [x,x,x,x,x,x,x,x,x,x,x] true
6.20.4 Solution Output
part04test20.diff
part04test20.cnf
part04test20.output
138

game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,2,-,-,x] [x,2,3,1,-,-,-,3,-,1,x] [x,x,x,x,x,x,x,x,x,x,x] true
6.20.5 stderr
part04test20.output
part04test20.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.21 part04test21 6.21.1 Diff
6.21.2 Input File
[8 ,6 ,5 ,8]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,x]. [x,1,2,1,-,-,-,-,-,x]. [x,x,x,x,x,x,x,x,x,x].
6.21.3 Submission Output
game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,1,2,1,-,-,-,-,-,x] [x,x,x,x,x,x,x,x,x,x] true
6.21.4 Solution Output
part04test21.diff
part04test21.cnf
part04test21.output
139

game [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,x] [x,1,2,1,-,-,-,-,-,x] [x,x,x,x,x,x,x,x,x,x] true
6.21.5 stderr
6.22 part04test22 6.22.1 Diff
6.22.2 Input File
[1,2,4,3,3,7,3,1,7,2,5,4,4,2,5,3]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,x]. [x,-,3,-,2,-,1,-,x]. [x,x,x,x,x,x,x,x,x].
6.22.3 Submission Output
game [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,3,-,2,-,1,-,x] [x,x,x,x,x,x,x,x,x] true
6.22.4 Solution Output
game [x,-,-,-,-,-,-,-,x]
part04test22.diff
part04test22.cnf
part04test21.output
part04test21.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test22.output
part04test22.output
140

[x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,x] [x,-,3,-,2,-,1,-,x] [x,x,x,x,x,x,x,x,x] true
6.22.5 stderr
6.23 part04test23 6.23.1 Diff
6.23.2 Input File
[1,2,4,3,5,2,3,3,2,1,1,3]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,2,-,1,x]. [x,-,-,2,-,1,x]. [x,-,-,2,1,1,x]. [x,x,x,x,x,x,x].
6.23.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,2,-,1,x] [x,-,-,2,-,1,x] [x,-,-,2,1,1,x] [x,x,x,x,x,x,x] false
6.23.4 Solution Output
game [x,-,-,-,-,-,x]
part04test23.diff
part04test23.cnf
part04test22.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test23.output
part04test23.output
141

[x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,2,-,1,x] [x,-,-,2,-,1,x] [x,-,-,2,1,1,x] [x,x,x,x,x,x,x] false
6.23.5 stderr
6.24 part04test24 6.24.1 Diff
6.24.2 Input File
[3,5,5,1,2,4,2,2,1,1,1,1,1,4,5,4]. [x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,1,2,-,-,-,x]. [x,x,x,x,x,x,x].
6.24.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,1,2,-,-,-,x] [x,x,x,x,x,x,x] true
part04test24.diff
part04test24.cnf
part04test23.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
part04test24.output
142

6.24.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,1,2,-,-,-,x] [x,x,x,x,x,x,x] true
6.24.5 stderr
part04test24.output
part04test24.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.25 part04test25 6.25.1 Diff
12 c12
< true --- > false
6.25.2 Input File
[1,2,1,5,4,4,6,5,3]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,3,x]. [x,-,-,2,-,-,1,x]. [x,2,-,1,1,3,2,x]. [x,x,x,x,x,x,x,x].
6.25.3 Submission Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x]
part04test25.diff
part04test25.cnf
part04test25.output
143

[x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,3,x] [x,-,-,2,-,-,1,x] [x,2,-,1,1,3,2,x] [x,x,x,x,x,x,x,x] true
6.25.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,3,x] [x,-,-,2,-,-,1,x] [x,2,-,1,1,3,2,x] [x,x,x,x,x,x,x,x] false
6.25.5 stderr
part04test25.output
part04test25.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.26 part04test26 6.26.1 Diff
6.26.2 Input File
[3,3,6,4,2,4,3,1,3,4,6,6,3,5,3]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,x]. [x,1,-,-,-,-,-,x]. [x,2,-,2,-,1,-,x]. [x,1,2,1,1,2,-,x]. [x,x,x,x,x,x,x,x].
6.26.3 Submission Output
part04test26.diff
part04test26.cnf
144

game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,1,-,-,-,-,-,x] [x,2,-,2,-,1,-,x] [x,1,2,1,1,2,-,x] [x,x,x,x,x,x,x,x] false
6.26.4 Solution Output
game [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,x] [x,1,-,-,-,-,-,x] [x,2,-,2,-,1,-,x] [x,1,2,1,1,2,-,x] [x,x,x,x,x,x,x,x] false
6.26.5 stderr
part04test26.output
part04test26.output
part04test26.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.27 part04test27 6.27.1 Diff
9c9
< true --- > false
6.27.2 Input File
part04test27.diff
part04test27.cnf
[1,5,2,1,1,2,5,4,5,2,2,2,3,4,2,4,1,4,4]. [x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x]. [x,-,-,-,4,-,x]. [x,-,-,3,1,2,x]. [x,x,x,x,x,x,x].
145

6.27.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,4,-,x] [x,-,-,3,1,2,x] [x,x,x,x,x,x,x] true
6.27.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,4,-,x] [x,-,-,3,1,2,x] [x,x,x,x,x,x,x] false
6.27.5 stderr
part04test27.output
6.28 part04test28 6.28.1 Diff
6.28.2 Input File
[5,2,9,2,1,9,4,2,7,8,5,2,6,7,7,7,1]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,-,-,-,-,-,-,-,-,x]. [x,-,2,2,-,-,3,-,-,-,x]. [x,-,1,2,-,-,1,3,1,-,x]. [x,x,x,x,x,x,x,x,x,x,x].
6.28.3 Submission Output
part04test28.diff
part04test28.cnf
part04test27.output
part04test27.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
146

game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,2,2,-,-,3,-,-,-,x] [x,-,1,2,-,-,1,3,1,-,x] [x,x,x,x,x,x,x,x,x,x,x] false
6.28.4 Solution Output
game [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,-,-,-,-,-,-,-,-,x] [x,-,2,2,-,-,3,-,-,-,x] [x,-,1,2,-,-,1,3,1,-,x] [x,x,x,x,x,x,x,x,x,x,x] false
6.28.5 stderr
part04test28.output
part04test28.output
part04test28.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.29 part04test29 6.29.1 Diff
6.29.2 Input File
[1,1,4,4,4,2,1,3,3,3,1,1,1,5,3]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,2,x]. [x,-,-,-,-,4,x]. [x,3,-,1,-,2,x]. [x,3,-,4,-,1,x]. [x,x,x,x,x,x,x].
6.29.3 Submission Output
game [x,-,-,-,-,-,x]
part04test29.diff
part04test29.cnf
part04test29.output
147

[x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,2,x] [x,-,-,-,-,4,x] [x,3,-,1,-,2,x] [x,3,-,4,-,1,x] [x,x,x,x,x,x,x] true
6.29.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,2,x] [x,-,-,-,-,4,x] [x,3,-,1,-,2,x] [x,3,-,4,-,1,x] [x,x,x,x,x,x,x] true
6.29.5 stderr
part04test29.output
part04test29.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.30 part04test30 6.30.1 Diff
11 c11
< true --- > false
6.30.2 Input File
[3,3,4,2,3,2,2,4,2,2,3,3,5,4,5,2]. [x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x].
[x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,-,-,-,-,-,x]. [x,2,-,1,-,1,x]. [x,3,4,3,2,4,x]. [x,x,x,x,x,x,x].
part04test30.diff
part04test30.cnf
148

1 2 3 4 5 6 7 8 9
10 11 12 13 14
6.30.3 Submission Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,2,-,1,-,1,x] [x,3,4,3,2,4,x] [x,x,x,x,x,x,x] true
6.30.4 Solution Output
game [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,-,-,-,-,-,x] [x,2,-,1,-,1,x] [x,3,4,3,2,4,x] [x,x,x,x,x,x,x] false
6.30.5 stderr
part04test30.output
part04test30.output
part04test30.err
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
Warning: /home/grad/Classes/cse322/csce322hmwrk04/fyang/04/csce322hmwrk04part04.pl:35: Singleton variables: [R1,C1]
6.31 Source Code
has1(Game, Rn, Cn):- nth0(Rn, Game, Row),
nth0(Cn, Row, 1).
getElement(Game, R1, C1, Ele):- nth0(R1, Game, Row),
nth0(C1, Row, Ele), not(Ele = x), not(Ele = -).
getDiagonal(Game, R1, C1):-
csce322hmwrk04part04.pl
149

15
16 length(Game, Len), 17
18 between(0, Len, R1),
19 nth0(0, Game, F),
20 length(F, Colnum),
21 between(0, Colnum, C1),
22 isDiagonal(R1, C1, R2, C2),
23 getElement(Game, R1, C1, Ele),
24 getElement(Game, R2, C2, Ele).
25 26
27 isDiagonal(R1, C1,
28 R2isR1+
29 C2isC1+
30
31 isDiagonal(R1, C1,
32 R2isR1+
33 C2isC1-
34
35 hasDiagnao(Game):-
36 getDiagonal(Game, R1, C1),
37 !.
38 39
40 notDiagonalTeammates(Game):-
41 not(hasDiagnao(Game)).
R2, C2):- 1,
1.
R2, C2):- 1,
1.
150