程序代写代做代考 prolog Component

Component
Points
csce322hw04pt01.pl
Test Cases
Total csce322hw04pt02.pl Test Cases
Total
csce322hw04pt03.pl
Test Cases Total
30¡Á1 30
30¡Á1 30
40¡Á1 40
Total
100%
1

Contents
1 Metadata 3
1.1 SubmittedFiles…………………………………………….. 3
1.2 webgraderRuns…………………………………………….. 3
1.3 diffs …………………………………………………. 3
2 webgrader Run 5
3 csce322hw04pt01.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 …………………………………………….. 6
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………………………………………………. 7
3.3.1 Diff ………………………………………………. 7
3.3.2 InputFile……………………………………………. 7
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……………………………………………. 8
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……………………………………….. 9
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 ………………………………………… 10 3.6.5 stderr …………………………………………….. 10
3.7 part01test07………………………………………………. 11 3.7.1 Diff ………………………………………………. 11 3.7.2 InputFile……………………………………………. 11 3.7.3 SubmissionOutput……………………………………….. 11
2

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

3.17.4SolutionOutput ………………………………………… 19
3.17.5stderr …………………………………………….. 19 3.18part01test18………………………………………………. 19 3.18.1Diff ………………………………………………. 19 3.18.2InputFile……………………………………………. 19 3.18.3 SubmissionOutput……………………………………….. 20 3.18.4SolutionOutput ………………………………………… 20 3.18.5stderr …………………………………………….. 20 3.19part01test19………………………………………………. 20 3.19.1Diff ………………………………………………. 20 3.19.2InputFile……………………………………………. 20 3.19.3 SubmissionOutput……………………………………….. 21 3.19.4SolutionOutput ………………………………………… 21 3.19.5stderr …………………………………………….. 21 3.20part01test20………………………………………………. 21 3.20.1Diff ………………………………………………. 21 3.20.2InputFile……………………………………………. 21 3.20.3 SubmissionOutput……………………………………….. 21 3.20.4SolutionOutput ………………………………………… 22 3.20.5stderr …………………………………………….. 22 3.21part01test21………………………………………………. 22 3.21.1Diff ………………………………………………. 22 3.21.2InputFile……………………………………………. 22 3.21.3 SubmissionOutput……………………………………….. 22 3.21.4SolutionOutput ………………………………………… 22 3.21.5stderr …………………………………………….. 22 3.22part01test22………………………………………………. 23 3.22.1Diff ………………………………………………. 23 3.22.2InputFile……………………………………………. 23 3.22.3 SubmissionOutput……………………………………….. 23 3.22.4SolutionOutput ………………………………………… 23 3.22.5stderr …………………………………………….. 23 3.23part01test23………………………………………………. 23 3.23.1Diff ………………………………………………. 23 3.23.2InputFile……………………………………………. 23 3.23.3 SubmissionOutput……………………………………….. 24 3.23.4SolutionOutput ………………………………………… 24 3.23.5stderr …………………………………………….. 24 3.24part01test24………………………………………………. 24 3.24.1Diff ………………………………………………. 24 3.24.2InputFile……………………………………………. 24 3.24.3 SubmissionOutput……………………………………….. 25 3.24.4SolutionOutput ………………………………………… 25 3.24.5stderr …………………………………………….. 25 3.25part01test25………………………………………………. 25 3.25.1Diff ………………………………………………. 25 3.25.2InputFile……………………………………………. 25 3.25.3 SubmissionOutput……………………………………….. 25 3.25.4SolutionOutput ………………………………………… 26 3.25.5stderr …………………………………………….. 26 3.26part01test26………………………………………………. 26 3.26.1Diff ………………………………………………. 26 3.26.2InputFile……………………………………………. 26 3.26.3 SubmissionOutput……………………………………….. 26 3.26.4SolutionOutput ………………………………………… 26 3.26.5stderr …………………………………………….. 26 3.27part01test27………………………………………………. 27 3.27.1Diff ………………………………………………. 27 3.27.2InputFile……………………………………………. 27 3.27.3 SubmissionOutput……………………………………….. 27
4

3.27.4SolutionOutput ………………………………………… 27
3.27.5stderr …………………………………………….. 27 3.28part01test28………………………………………………. 27 3.28.1Diff ………………………………………………. 27 3.28.2InputFile……………………………………………. 27 3.28.3 SubmissionOutput……………………………………….. 28 3.28.4SolutionOutput ………………………………………… 28 3.28.5stderr …………………………………………….. 28 3.29part01test29………………………………………………. 28 3.29.1Diff ………………………………………………. 28 3.29.2InputFile……………………………………………. 28 3.29.3 SubmissionOutput……………………………………….. 29 3.29.4SolutionOutput ………………………………………… 29 3.29.5stderr …………………………………………….. 29 3.30part01test30………………………………………………. 29 3.30.1Diff ………………………………………………. 29 3.30.2InputFile……………………………………………. 29 3.30.3 SubmissionOutput……………………………………….. 29 3.30.4SolutionOutput ………………………………………… 30 3.30.5stderr …………………………………………….. 30 3.31SourceCode………………………………………………. 30
4 csce322hw04pt02.pl 31
4.1 part02test01………………………………………………. 31 4.1.1 Diff ………………………………………………. 31 4.1.2 InputFile……………………………………………. 31 4.1.3 SubmissionOutput……………………………………….. 31 4.1.4 SolutionOutput ………………………………………… 31 4.1.5 stderr …………………………………………….. 32
4.2 part02test02………………………………………………. 32 4.2.1 Diff ………………………………………………. 32 4.2.2 InputFile……………………………………………. 32 4.2.3 SubmissionOutput……………………………………….. 32 4.2.4 SolutionOutput ………………………………………… 32 4.2.5 stderr …………………………………………….. 32
4.3 part02test03………………………………………………. 33 4.3.1 Diff ………………………………………………. 33 4.3.2 InputFile……………………………………………. 33 4.3.3 SubmissionOutput……………………………………….. 33 4.3.4 SolutionOutput ………………………………………… 33 4.3.5 stderr …………………………………………….. 33
4.4 part02test04………………………………………………. 33 4.4.1 Diff ………………………………………………. 33 4.4.2 InputFile……………………………………………. 34 4.4.3 SubmissionOutput……………………………………….. 34 4.4.4 SolutionOutput ………………………………………… 34 4.4.5 stderr …………………………………………….. 34
4.5 part02test05………………………………………………. 34 4.5.1 Diff ………………………………………………. 34 4.5.2 InputFile……………………………………………. 34 4.5.3 SubmissionOutput……………………………………….. 35 4.5.4 SolutionOutput ………………………………………… 35 4.5.5 stderr …………………………………………….. 35
4.6 part02test06………………………………………………. 35 4.6.1 Diff ………………………………………………. 35 4.6.2 InputFile……………………………………………. 35 4.6.3 SubmissionOutput……………………………………….. 36 4.6.4 SolutionOutput ………………………………………… 36 4.6.5 stderr …………………………………………….. 36
4.7 part02test07………………………………………………. 36
5

4.7.1 Diff ………………………………………………. 36 4.7.2 InputFile……………………………………………. 36 4.7.3 SubmissionOutput……………………………………….. 36 4.7.4 SolutionOutput ………………………………………… 37 4.7.5 stderr …………………………………………….. 37
4.8 part02test08………………………………………………. 37 4.8.1 Diff ………………………………………………. 37 4.8.2 InputFile……………………………………………. 37 4.8.3 SubmissionOutput……………………………………….. 37 4.8.4 SolutionOutput ………………………………………… 38 4.8.5 stderr …………………………………………….. 38
4.9 part02test09………………………………………………. 38 4.9.1 Diff ………………………………………………. 38 4.9.2 InputFile……………………………………………. 38 4.9.3 SubmissionOutput……………………………………….. 38 4.9.4 SolutionOutput ………………………………………… 38 4.9.5 stderr …………………………………………….. 39
4.10part02test10………………………………………………. 39 4.10.1Diff ………………………………………………. 39 4.10.2InputFile……………………………………………. 39 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 …………………………………………….. 40
4.12part02test12………………………………………………. 41 4.12.1Diff ………………………………………………. 41 4.12.2InputFile……………………………………………. 41 4.12.3 SubmissionOutput……………………………………….. 41 4.12.4SolutionOutput ………………………………………… 41 4.12.5stderr …………………………………………….. 41
4.13part02test13………………………………………………. 41 4.13.1Diff ………………………………………………. 41 4.13.2InputFile……………………………………………. 42 4.13.3 SubmissionOutput……………………………………….. 42 4.13.4SolutionOutput ………………………………………… 42 4.13.5stderr …………………………………………….. 42
4.14part02test14………………………………………………. 42 4.14.1Diff ………………………………………………. 42 4.14.2InputFile……………………………………………. 42 4.14.3 SubmissionOutput……………………………………….. 43 4.14.4SolutionOutput ………………………………………… 43 4.14.5stderr …………………………………………….. 43
4.15part02test15………………………………………………. 43 4.15.1Diff ………………………………………………. 43 4.15.2InputFile……………………………………………. 43 4.15.3 SubmissionOutput……………………………………….. 44 4.15.4SolutionOutput ………………………………………… 44 4.15.5stderr …………………………………………….. 44
4.16part02test16………………………………………………. 44 4.16.1Diff ………………………………………………. 44 4.16.2InputFile……………………………………………. 44 4.16.3 SubmissionOutput……………………………………….. 44 4.16.4SolutionOutput ………………………………………… 45 4.16.5stderr …………………………………………….. 45
4.17part02test17………………………………………………. 45 6

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

4.27.1Diff ………………………………………………. 54 4.27.2InputFile……………………………………………. 54 4.27.3 SubmissionOutput……………………………………….. 54 4.27.4SolutionOutput ………………………………………… 54 4.27.5stderr …………………………………………….. 55
4.28part02test28………………………………………………. 55 4.28.1Diff ………………………………………………. 55 4.28.2InputFile……………………………………………. 55 4.28.3 SubmissionOutput……………………………………….. 55 4.28.4SolutionOutput ………………………………………… 55 4.28.5stderr …………………………………………….. 55
4.29part02test29………………………………………………. 56 4.29.1Diff ………………………………………………. 56 4.29.2InputFile……………………………………………. 56 4.29.3 SubmissionOutput……………………………………….. 56 4.29.4SolutionOutput ………………………………………… 56 4.29.5stderr …………………………………………….. 56
4.30part02test30………………………………………………. 57 4.30.1Diff ………………………………………………. 57 4.30.2InputFile……………………………………………. 57 4.30.3 SubmissionOutput……………………………………….. 57 4.30.4SolutionOutput ………………………………………… 57 4.30.5stderr …………………………………………….. 57
4.31SourceCode………………………………………………. 57
5 csce322hw04pt03.pl 59
5.1 part03test01………………………………………………. 59 5.1.1 Diff ………………………………………………. 59 5.1.2 InputFile……………………………………………. 59 5.1.3 SubmissionOutput……………………………………….. 59 5.1.4 SolutionOutput ………………………………………… 60 5.1.5 stderr …………………………………………….. 60
5.2 part03test02………………………………………………. 60 5.2.1 Diff ………………………………………………. 60 5.2.2 InputFile……………………………………………. 60 5.2.3 SubmissionOutput……………………………………….. 60 5.2.4 SolutionOutput ………………………………………… 61 5.2.5 stderr …………………………………………….. 61
5.3 part03test03………………………………………………. 61 5.3.1 Diff ………………………………………………. 61 5.3.2 InputFile……………………………………………. 61 5.3.3 SubmissionOutput……………………………………….. 62 5.3.4 SolutionOutput ………………………………………… 62 5.3.5 stderr …………………………………………….. 62
5.4 part03test04………………………………………………. 62 5.4.1 Diff ………………………………………………. 62 5.4.2 InputFile……………………………………………. 63 5.4.3 SubmissionOutput……………………………………….. 63 5.4.4 SolutionOutput ………………………………………… 63 5.4.5 stderr …………………………………………….. 63
5.5 part03test05………………………………………………. 64 5.5.1 Diff ………………………………………………. 64 5.5.2 InputFile……………………………………………. 64 5.5.3 SubmissionOutput……………………………………….. 64 5.5.4 SolutionOutput ………………………………………… 64 5.5.5 stderr …………………………………………….. 64
5.6 part03test06………………………………………………. 65 5.6.1 Diff ………………………………………………. 65 5.6.2 InputFile……………………………………………. 65 5.6.3 SubmissionOutput……………………………………….. 65
8

5.6.4 SolutionOutput ………………………………………… 65
5.6.5 stderr …………………………………………….. 66
5.7 part03test07………………………………………………. 66 5.7.1 Diff ………………………………………………. 66 5.7.2 InputFile……………………………………………. 66 5.7.3 SubmissionOutput……………………………………….. 66 5.7.4 SolutionOutput ………………………………………… 67 5.7.5 stderr …………………………………………….. 67
5.8 part03test08………………………………………………. 67 5.8.1 Diff ………………………………………………. 67 5.8.2 InputFile……………………………………………. 67 5.8.3 SubmissionOutput……………………………………….. 68 5.8.4 SolutionOutput ………………………………………… 68 5.8.5 stderr …………………………………………….. 68
5.9 part03test09………………………………………………. 68 5.9.1 Diff ………………………………………………. 68 5.9.2 InputFile……………………………………………. 69 5.9.3 SubmissionOutput……………………………………….. 69 5.9.4 SolutionOutput ………………………………………… 69 5.9.5 stderr …………………………………………….. 69
5.10part03test10………………………………………………. 70 5.10.1Diff ………………………………………………. 70 5.10.2InputFile……………………………………………. 70 5.10.3 SubmissionOutput……………………………………….. 70 5.10.4SolutionOutput ………………………………………… 70 5.10.5stderr …………………………………………….. 71 5.11part03test11………………………………………………. 71 5.11.1Diff ………………………………………………. 71 5.11.2InputFile……………………………………………. 71 5.11.3 SubmissionOutput……………………………………….. 71 5.11.4SolutionOutput ………………………………………… 72 5.11.5stderr …………………………………………….. 72 5.12part03test12………………………………………………. 72 5.12.1Diff ………………………………………………. 72 5.12.2InputFile……………………………………………. 72 5.12.3 SubmissionOutput……………………………………….. 73 5.12.4SolutionOutput ………………………………………… 73 5.12.5stderr …………………………………………….. 73 5.13part03test13………………………………………………. 73 5.13.1Diff ………………………………………………. 73 5.13.2InputFile……………………………………………. 73 5.13.3 SubmissionOutput……………………………………….. 74 5.13.4SolutionOutput ………………………………………… 74 5.13.5stderr …………………………………………….. 74 5.14part03test14………………………………………………. 74 5.14.1Diff ………………………………………………. 74 5.14.2InputFile……………………………………………. 75 5.14.3 SubmissionOutput……………………………………….. 75 5.14.4SolutionOutput ………………………………………… 75 5.14.5stderr …………………………………………….. 76 5.15part03test15………………………………………………. 76 5.15.1Diff ………………………………………………. 76 5.15.2InputFile……………………………………………. 76 5.15.3 SubmissionOutput……………………………………….. 76 5.15.4SolutionOutput ………………………………………… 77 5.15.5stderr …………………………………………….. 77 5.16part03test16………………………………………………. 77 5.16.1Diff ………………………………………………. 77 5.16.2InputFile……………………………………………. 77 5.16.3 SubmissionOutput……………………………………….. 77
9

5.16.4SolutionOutput ………………………………………… 78
5.16.5stderr …………………………………………….. 78 5.17part03test17………………………………………………. 78 5.17.1Diff ………………………………………………. 78 5.17.2InputFile……………………………………………. 78 5.17.3 SubmissionOutput……………………………………….. 79 5.17.4SolutionOutput ………………………………………… 79 5.17.5stderr …………………………………………….. 79 5.18part03test18………………………………………………. 79 5.18.1Diff ………………………………………………. 79 5.18.2InputFile……………………………………………. 80 5.18.3 SubmissionOutput……………………………………….. 80 5.18.4SolutionOutput ………………………………………… 80 5.18.5stderr …………………………………………….. 80 5.19part03test19………………………………………………. 80 5.19.1Diff ………………………………………………. 80 5.19.2InputFile……………………………………………. 81 5.19.3 SubmissionOutput……………………………………….. 81 5.19.4SolutionOutput ………………………………………… 81 5.19.5stderr …………………………………………….. 82 5.20part03test20………………………………………………. 82 5.20.1Diff ………………………………………………. 82 5.20.2InputFile……………………………………………. 82 5.20.3 SubmissionOutput……………………………………….. 82 5.20.4SolutionOutput ………………………………………… 83 5.20.5stderr …………………………………………….. 83 5.21part03test21………………………………………………. 83 5.21.1Diff ………………………………………………. 83 5.21.2InputFile……………………………………………. 83 5.21.3 SubmissionOutput……………………………………….. 83 5.21.4SolutionOutput ………………………………………… 84 5.21.5stderr …………………………………………….. 84 5.22part03test22………………………………………………. 84 5.22.1Diff ………………………………………………. 84 5.22.2InputFile……………………………………………. 84 5.22.3 SubmissionOutput……………………………………….. 85 5.22.4SolutionOutput ………………………………………… 85 5.22.5stderr …………………………………………….. 85 5.23part03test23………………………………………………. 85 5.23.1Diff ………………………………………………. 85 5.23.2InputFile……………………………………………. 86 5.23.3 SubmissionOutput……………………………………….. 86 5.23.4SolutionOutput ………………………………………… 86 5.23.5stderr …………………………………………….. 86 5.24part03test24………………………………………………. 86 5.24.1Diff ………………………………………………. 86 5.24.2InputFile……………………………………………. 87 5.24.3 SubmissionOutput……………………………………….. 87 5.24.4SolutionOutput ………………………………………… 87 5.24.5stderr …………………………………………….. 88 5.25part03test25………………………………………………. 88 5.25.1Diff ………………………………………………. 88 5.25.2InputFile……………………………………………. 88 5.25.3 SubmissionOutput……………………………………….. 88 5.25.4SolutionOutput ………………………………………… 88 5.25.5stderr …………………………………………….. 89 5.26part03test26………………………………………………. 89 5.26.1Diff ………………………………………………. 89 5.26.2InputFile……………………………………………. 89 5.26.3 SubmissionOutput……………………………………….. 89
10

5.26.4SolutionOutput ………………………………………… 90
5.26.5stderr …………………………………………….. 90 5.27part03test27………………………………………………. 90 5.27.1Diff ………………………………………………. 90 5.27.2InputFile……………………………………………. 90 5.27.3 SubmissionOutput……………………………………….. 91 5.27.4SolutionOutput ………………………………………… 91 5.27.5stderr …………………………………………….. 91 5.28part03test28………………………………………………. 91 5.28.1Diff ………………………………………………. 91 5.28.2InputFile……………………………………………. 91 5.28.3 SubmissionOutput……………………………………….. 92 5.28.4SolutionOutput ………………………………………… 92 5.28.5stderr …………………………………………….. 92 5.29part03test29………………………………………………. 92 5.29.1Diff ………………………………………………. 92 5.29.2InputFile……………………………………………. 92 5.29.3 SubmissionOutput……………………………………….. 93 5.29.4SolutionOutput ………………………………………… 93 5.29.5stderr …………………………………………….. 93 5.30part03test30………………………………………………. 93 5.30.1Diff ………………………………………………. 93 5.30.2InputFile……………………………………………. 94 5.30.3 SubmissionOutput……………………………………….. 94 5.30.4SolutionOutput ………………………………………… 94 5.30.5stderr …………………………………………….. 94 5.31part03test31………………………………………………. 94 5.31.1Diff ………………………………………………. 94 5.31.2InputFile……………………………………………. 95 5.31.3 SubmissionOutput……………………………………….. 95 5.31.4SolutionOutput ………………………………………… 95 5.31.5stderr …………………………………………….. 96 5.32part03test32………………………………………………. 96 5.32.1Diff ………………………………………………. 96 5.32.2InputFile……………………………………………. 96 5.32.3 SubmissionOutput……………………………………….. 96 5.32.4SolutionOutput ………………………………………… 96 5.32.5stderr …………………………………………….. 97 5.33part03test33………………………………………………. 97 5.33.1Diff ………………………………………………. 97 5.33.2InputFile……………………………………………. 97 5.33.3 SubmissionOutput……………………………………….. 97 5.33.4SolutionOutput ………………………………………… 98 5.33.5stderr …………………………………………….. 98 5.34part03test34………………………………………………. 98 5.34.1Diff ………………………………………………. 98 5.34.2InputFile……………………………………………. 98 5.34.3 SubmissionOutput……………………………………….. 98 5.34.4SolutionOutput ………………………………………… 99 5.34.5stderr …………………………………………….. 99 5.35part03test35………………………………………………. 99 5.35.1Diff ………………………………………………. 99 5.35.2InputFile……………………………………………. 99 5.35.3 SubmissionOutput……………………………………….. 100 5.35.4 SolutionOutput ………………………………………… 100 5.35.5stderr …………………………………………….. 100 5.36part03test36………………………………………………. 100 5.36.1Diff ………………………………………………. 100 5.36.2InputFile……………………………………………. 101 5.36.3 SubmissionOutput……………………………………….. 101
11

5.36.4 SolutionOutput ………………………………………… 101
5.36.5stderr …………………………………………….. 101 5.37part03test37………………………………………………. 101 5.37.1Diff ………………………………………………. 101 5.37.2InputFile……………………………………………. 102 5.37.3 SubmissionOutput……………………………………….. 102 5.37.4 SolutionOutput ………………………………………… 102 5.37.5stderr …………………………………………….. 102 5.38part03test38………………………………………………. 103 5.38.1Diff ………………………………………………. 103 5.38.2InputFile……………………………………………. 103 5.38.3 SubmissionOutput……………………………………….. 103 5.38.4 SolutionOutput ………………………………………… 103 5.38.5stderr …………………………………………….. 104 5.39part03test39………………………………………………. 104 5.39.1Diff ………………………………………………. 104 5.39.2InputFile……………………………………………. 104 5.39.3 SubmissionOutput……………………………………….. 104 5.39.4 SolutionOutput ………………………………………… 105 5.39.5stderr …………………………………………….. 105 5.40part03test40………………………………………………. 105 5.40.1Diff ………………………………………………. 105 5.40.2InputFile……………………………………………. 105 5.40.3 SubmissionOutput……………………………………….. 105 5.40.4 SolutionOutput ………………………………………… 106 5.40.5stderr …………………………………………….. 106 5.41SourceCode………………………………………………. 106
6 csce322hw04pt04.pl 107
6.1 part04test01………………………………………………. 107 6.1.1 Diff ………………………………………………. 107 6.1.2 InputFile……………………………………………. 107 6.1.3 SubmissionOutput……………………………………….. 107 6.1.4 SolutionOutput ………………………………………… 107 6.1.5 stderr …………………………………………….. 108
6.2 part04test02………………………………………………. 108 6.2.1 Diff ………………………………………………. 108 6.2.2 InputFile……………………………………………. 108 6.2.3 SubmissionOutput……………………………………….. 108 6.2.4 SolutionOutput ………………………………………… 108 6.2.5 stderr …………………………………………….. 108
6.3 part04test03………………………………………………. 109 6.3.1 Diff ………………………………………………. 109 6.3.2 InputFile……………………………………………. 109 6.3.3 SubmissionOutput……………………………………….. 109 6.3.4 SolutionOutput ………………………………………… 109 6.3.5 stderr …………………………………………….. 109
6.4 part04test04………………………………………………. 109 6.4.1 Diff ………………………………………………. 109 6.4.2 InputFile……………………………………………. 110 6.4.3 SubmissionOutput……………………………………….. 110 6.4.4 SolutionOutput ………………………………………… 110 6.4.5 stderr …………………………………………….. 110
6.5 part04test05………………………………………………. 110 6.5.1 Diff ………………………………………………. 110 6.5.2 InputFile……………………………………………. 111 6.5.3 SubmissionOutput……………………………………….. 111 6.5.4 SolutionOutput ………………………………………… 111 6.5.5 stderr …………………………………………….. 111
6.6 part04test06………………………………………………. 111
12

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

1 2 3 4 5
1 2
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
11/26/2016 17:01:29 hxia: csce322hw04pt01.pl 11/26/2016 17:01:34 hxia: csce322hw04pt02.pl 11/26/2016 17:01:40 hxia: csce322hw04pt03.pl 11/26/2016 17:01:46 hxia: helpers.pl – OK 11/26/2016 17:02:13 hxia: csce322hw04pt04.pl
– OK – OK – OK
– OK
Chapter 1 Metadata
1.1 Submitted Files
1.2 webgrader Runs
2016 -11 -26 T17 :02:50 -0600 2016 -11 -26 T17 :03:15 -0600
1.3 diffs
webgrader.time
70.121.227.30 hxia 0004 70.121.227.30 hxia 0004
submission.diffs
csce322hw0004/hxia/02/part02test01.diff csce322hw0004/hxia/02/part02test02.diff csce322hw0004/hxia/02/part02test03.diff csce322hw0004/hxia/02/part02test04.diff csce322hw0004/hxia/02/part02test05.diff csce322hw0004/hxia/02/part02test06.diff csce322hw0004/hxia/02/part02test07.diff csce322hw0004/hxia/02/part02test08.diff csce322hw0004/hxia/02/part02test09.diff csce322hw0004/hxia/02/part02test10.diff csce322hw0004/hxia/02/part02test11.diff csce322hw0004/hxia/02/part02test12.diff csce322hw0004/hxia/02/part02test13.diff csce322hw0004/hxia/02/part02test14.diff csce322hw0004/hxia/02/part02test15.diff csce322hw0004/hxia/02/part02test16.diff csce322hw0004/hxia/02/part02test17.diff csce322hw0004/hxia/02/part02test18.diff csce322hw0004/hxia/02/part02test19.diff csce322hw0004/hxia/02/part02test20.diff csce322hw0004/hxia/02/part02test21.diff csce322hw0004/hxia/02/part02test22.diff csce322hw0004/hxia/02/part02test23.diff csce322hw0004/hxia/02/part02test24.diff csce322hw0004/hxia/02/part02test25.diff
handin.time
14

26 csce322hw0004/hxia/02/part02test26.diff 27 csce322hw0004/hxia/02/part02test27.diff 28 csce322hw0004/hxia/02/part02test28.diff 29 csce322hw0004/hxia/02/part02test29.diff 30 csce322hw0004/hxia/02/part02test30.diff 31 csce322hw0004/hxia/03/part03test01.diff 32 csce322hw0004/hxia/03/part03test02.diff 33 csce322hw0004/hxia/03/part03test03.diff 34 csce322hw0004/hxia/03/part03test04.diff 35 csce322hw0004/hxia/03/part03test05.diff 36 csce322hw0004/hxia/03/part03test06.diff 37 csce322hw0004/hxia/03/part03test07.diff 38 csce322hw0004/hxia/03/part03test08.diff 39 csce322hw0004/hxia/03/part03test09.diff 40 csce322hw0004/hxia/03/part03test10.diff 41 csce322hw0004/hxia/03/part03test11.diff 42 csce322hw0004/hxia/03/part03test12.diff 43 csce322hw0004/hxia/03/part03test13.diff 44 csce322hw0004/hxia/03/part03test14.diff 45 csce322hw0004/hxia/03/part03test15.diff 46 csce322hw0004/hxia/03/part03test16.diff 47 csce322hw0004/hxia/03/part03test17.diff 48 csce322hw0004/hxia/03/part03test18.diff 49 csce322hw0004/hxia/03/part03test19.diff 50 csce322hw0004/hxia/03/part03test20.diff 51 csce322hw0004/hxia/03/part03test21.diff 52 csce322hw0004/hxia/03/part03test22.diff 53 csce322hw0004/hxia/03/part03test23.diff 54 csce322hw0004/hxia/03/part03test24.diff 55 csce322hw0004/hxia/03/part03test25.diff 56 csce322hw0004/hxia/03/part03test26.diff 57 csce322hw0004/hxia/03/part03test27.diff 58 csce322hw0004/hxia/03/part03test28.diff 59 csce322hw0004/hxia/03/part03test29.diff 60 csce322hw0004/hxia/03/part03test30.diff 61 csce322hw0004/hxia/03/part03test31.diff 62 csce322hw0004/hxia/03/part03test32.diff 63 csce322hw0004/hxia/03/part03test33.diff 64 csce322hw0004/hxia/03/part03test34.diff 65 csce322hw0004/hxia/03/part03test35.diff 66 csce322hw0004/hxia/03/part03test36.diff 67 csce322hw0004/hxia/03/part03test37.diff 68 csce322hw0004/hxia/03/part03test38.diff 69 csce322hw0004/hxia/03/part03test39.diff 70 csce322hw0004/hxia/03/part03test40.diff 71 csce322hw0004/hxia/04/part04test01.diff 72 csce322hw0004/hxia/04/part04test02.diff 73 csce322hw0004/hxia/04/part04test04.diff 74 csce322hw0004/hxia/04/part04test05.diff 75 csce322hw0004/hxia/04/part04test07.diff 76 csce322hw0004/hxia/04/part04test10.diff 77 csce322hw0004/hxia/04/part04test12.diff 78 csce322hw0004/hxia/04/part04test13.diff 79 csce322hw0004/hxia/04/part04test14.diff 80 csce322hw0004/hxia/04/part04test15.diff
15

Chapter 2 webgrader Run
webgrader Report Generated Successfully
16

Chapter 3
csce322hw04pt01.pl
3.1 part01test01 3.1.1 Diff
3.1.2 Input File
[6,5,14,6,3,5,6,13]. [2,1,3,2,4,4,2,2]. [2,-,4,-]. [4,-,2,-]. [-,2,3,4].
[3 ,4 ,1 ,2]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,1,-1]. [-1,-1,-1]. [1 ,1 ,1]. [1,-1,1].
3.1.3 Submission Output
game [2,-,4,-] [4,-,2,-] [-,2,3,4] [3,4,1,2] false
3.1.4 Solution Output
game [2,-,4,-] [4,-,2,-] [-,2,3,4] [3,4,1,2] false
3.1.5 stderr
part01test01.diff
part01test01.gts
part01test01.output
part01test01.output
17

3.2 part01test02 3.2.1 Diff
3.2.2 Input File
[5,3,15,7,10,8,4,3]. [1,1,4,4,1,1,4,2]. [1,-,4,3]. [3,4,-,1]. [-,-,3,-]. [-,-,1,4]. [1,1,-1,-1]. [1,-1,1,1]. [-1,1,-1,1]. [1,1,-1].
[1,-1,-1]. [-1,1,-1]. [1,-1,1].
3.2.3 Submission Output
game [1,-,4,3] [3,4,-,1] [-,-,3,-] [-,-,1,4] false
3.2.4 Solution Output
game [1,-,4,3] [3,4,-,1] [-,-,3,-] [-,-,1,4] false
3.2.5 stderr
3.3 part01test03 3.3.1 Diff
part01test02.diff
part01test02.gts
3.3.2 Input File
part01test01.err
part01test02.output
part01test02.output
part01test02.err
part01test03.diff
18

[4,6,8,6,1,16]. [3,3,3,2,4,2]. [-,4,2,3]. [3,-,4,1].
[2 ,1 ,3 ,4]. [-,-,1,-]. [1,-1,1,-1]. [-1,-1,-1,1]. [1,1,-1,-1]. [1,-1,1]. [-1,1,-1]. [-1,1,1]. [-1,-1,1].
3.3.3 Submission Output
game [-,4,2,3] [3,-,4,1] [2,1,3,4] [-,-,1,-] false
3.3.4 Solution Output
game [-,4,2,3] [3,-,4,1] [2,1,3,4] [-,-,1,-] false
3.3.5 stderr
3.4 part01test04 3.4.1 Diff
3.4.2 Input File
[7,12,12,13,14,8,4,9,16,5]. [3,3,3,3,2,3,3,1,4,3]. [4,-,-,-].
[2,3,4,-].
[1,-,3,4]. [-,-,-,-]. [-1,1,1,-1]. [-1,-1,-1,1]. [1,1,-1,-1]. [-1,1,1]. [1,1,-1].
part01test03.output
part01test03.output
part01test03.err
part01test04.diff
part01test04.gts
part01test03.gts
19

[1 ,1 ,1]. [1,-1,1].
3.4.3 Submission Output
game [4,-,-,-] [2,3,4,-] [1,-,3,4] [-,-,-,-] false
3.4.4 Solution Output
game [4,-,-,-] [2,3,4,-] [1,-,3,4] [-,-,-,-] false
3.4.5 stderr
3.5 part01test05 3.5.1 Diff
3.5.2 Input File
[8,12,5,6,12,11,10,13,6,3]. [1,3,4,2,1,1,1,1,1,3]. [2,-,1,-].
[1,-,-,4].
[-,2,-,1]. [3,-,-,2]. [-1,-1,1,1]. [1,-1,1,-1]. [-1,-1,1,1]. [1,-1,1]. [1,-1,1]. [-1,1,-1]. [-1,1,-1].
3.5.3 Submission Output
game [2,-,1,-] [1,-,-,4] [-,2,-,1] [3,-,-,2] false
part01test04.output
part01test04.output
part01test04.err
part01test05.diff
part01test05.gts
part01test05.output
20

3.5.4 Solution Output
game [2,-,1,-] [1,-,-,4] [-,2,-,1] [3,-,-,2] false
3.5.5 stderr
3.6 part01test06 3.6.1 Diff
3.6.2 Input File
[8 ,15 ,9 ,1 ,4 ,13 ,15 ,16]. [4,4,2,1,4,2,1,2]. [-,2,-,-].
[4 ,1 ,3 ,2].
[2,3,1,-]. [-,-,2,-]. [1,-1,-1,1]. [-1,1,-1,1]. [-1,1,1,-1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1]. [1,-1,1].
3.6.3 Submission Output
game [-,2,-,-] [4,1,3,2] [2,3,1,-] [-,-,2,-] false
3.6.4 Solution Output
game [-,2,-,-] [4,1,3,2] [2,3,1,-] [-,-,2,-] false
3.6.5 stderr
part01test05.err
part01test06.diff
part01test06.gts
part01test05.output
part01test06.output
part01test06.output
21

3.7 part01test07 3.7.1 Diff
3.7.2 Input File
[4,4,5,3,14,11,3,9,5,4]. [3,4,3,1,3,4,3,2,2,4]. [3,-,-,1].
[1,2,4,-].
[-,3,-,4]. [-,1,3,2]. [-1,-1,1,1]. [1,1,-1,1]. [1,-1,1,-1]. [1,-1,-1]. [1,1,-1]. [1,-1,1]. [-1,1,-1].
3.7.3 Submission Output
game [3,-,-,1] [1,2,4,-] [-,3,-,4] [-,1,3,2] false
3.7.4 Solution Output
game [3,-,-,1] [1,2,4,-] [-,3,-,4] [-,1,3,2] false
3.7.5 stderr
3.8 part01test08 3.8.1 Diff
part01test07.diff
part01test07.gts
3.8.2 Input File
part01test06.err
part01test07.output
part01test07.output
part01test07.err
part01test08.diff
22

[3 ,15 ,9 ,2]. [2 ,2 ,2 ,3]. [3,1,-,4]. [-,2,3,1]. [-,3,4,-]. [2 ,4 ,1 ,3]. [1,1,1,-1]. [-1,1,1,1]. [1,1,-1,1]. [-1,1,1]. [-1,1,-1]. [1,1,-1]. [1,-1,1].
3.8.3 Submission Output
game [3,1,-,4] [-,2,3,1] [-,3,4,-] [2,4,1,3] true
3.8.4 Solution Output
game [3,1,-,4] [-,2,3,1] [-,3,4,-] [2,4,1,3] true
3.8.5 stderr
3.9 part01test09 3.9.1 Diff
3.9.2 Input File
[11 ,14 ,6 ,1]. [4 ,2 ,4 ,3]. [-,3,2,1]. [2,-,4,-]. [3,4,-,2]. [1 ,2 ,3 ,4]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,-1,1,1]. [-1,-1,-1]. [-1,1,-1].
part01test08.output
part01test08.output
part01test08.err
part01test09.diff
part01test09.gts
part01test08.gts
23

[1,-1,1]. [1 ,1 ,1].
3.9.3 Submission Output
game [-,3,2,1] [2,-,4,-] [3,4,-,2] [1,2,3,4] true
3.9.4 Solution Output
game [-,3,2,1] [2,-,4,-] [3,4,-,2] [1,2,3,4] true
3.9.5 stderr
3.10 part01test10 3.10.1 Diff
3.10.2 Input File
[12,3,1,10,7,9,13,1]. [2,2,2,3,4,3,2,1]. [-,3,-,-].
[4,2,-,1].
[-,-,2,4]. [2,4,-,3]. [1,-1,-1,-1]. [-1,-1,-1,1]. [-1,1,-1,-1]. [1,1,-1]. [-1,1,-1]. [-1,1,1]. [1,-1,1].
3.10.3 Submission Output
game [-,3,-,-] [4,2,-,1] [-,-,2,4] [2,4,-,3] false
part01test09.output
part01test09.output
part01test09.err
part01test10.diff
part01test10.gts
part01test10.output
24

3.10.4 Solution Output
game [-,3,-,-] [4,2,-,1] [-,-,2,4] [2,4,-,3] false
3.10.5 stderr
3.11 part01test11 3.11.1 Diff
3.11.2 Input File
[11 ,3 ,6 ,10 ,16 ,9 ,2 ,12 ,11]. [3,1,1,3,4,4,4,3,3]. [4,3,-,2].
[-,-,-,3].
[-,4,-,1]. [3,1,-,-]. [-1,-1,1,1]. [1,1,-1,-1]. [1,-1,-1,1]. [-1,-1,1]. [1,1,-1]. [1,-1,-1]. [-1,1,1].
3.11.3 Submission Output
game [4,3,-,2] [-,-,-,3] [-,4,-,1] [3,1,-,-] false
3.11.4 Solution Output
game [4,3,-,2] [-,-,-,3] [-,4,-,1] [3,1,-,-] false
3.11.5 stderr
part01test10.err
part01test11.diff
part01test11.gts
part01test10.output
part01test11.output
part01test11.output
25

3.12 part01test12 3.12.1 Diff
3.12.2 Input File
[11,4,15,16,4,6,1,10,2,3,2]. [4,4,3,3,4,3,2,3,3,4,1]. [-,2,4,3].
[-,-,-,1].
[-,1,-,-]. [-,4,1,-]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [1,1,-1]. [-1,-1,-1]. [-1,1,1]. [1,-1,1].
3.12.3 Submission Output
game [-,2,4,3] [-,-,-,1] [-,1,-,-] [-,4,1,-] false
3.12.4 Solution Output
game [-,2,4,3] [-,-,-,1] [-,1,-,-] [-,4,1,-] false
3.12.5 stderr
3.13 part01test13 3.13.1 Diff
part01test12.diff
part01test12.gts
3.13.2 Input File
part01test11.err
part01test12.output
part01test12.output
part01test12.err
part01test13.diff
26

[7,8,15,6,3,1]. [2,4,3,1,1,2]. [-,4,3,2]. [2,-,1,4]. [-,-,2,-]. [3,-,4,1]. [1,-1,-1,1]. [1,-1,1,-1]. [-1,1,1,-1]. [1,-1,-1]. [1,-1,1]. [-1,1,1]. [-1,1,-1].
3.13.3 Submission Output
game [-,4,3,2] [2,-,1,4] [-,-,2,-] [3,-,4,1] false
3.13.4 Solution Output
game [-,4,3,2] [2,-,1,4] [-,-,2,-] [3,-,4,1] false
3.13.5 stderr
3.14 part01test14 3.14.1 Diff
3.14.2 Input File
[7,6,2,5,2,13,5,8,14,11]. [2,4,3,1,2,1,3,3,1,2]. [4,-,1,-].
[-,-,3,-].
[3,-,-,1]. [1,-,2,3]. [-1,-1,1,1]. [1,1,1,-1]. [-1,1,-1,1]. [-1,-1,1]. [-1,1,1].
part01test13.output
part01test13.output
part01test13.err
part01test14.diff
part01test14.gts
part01test13.gts
27

[-1,1,-1]. [1,-1,1].
3.14.3 Submission Output
game [4,-,1,-] [-,-,3,-] [3,-,-,1] [1,-,2,3] false
3.14.4 Solution Output
game [4,-,1,-] [-,-,3,-] [3,-,-,1] [1,-,2,3] false
3.14.5 stderr
3.15 part01test15 3.15.1 Diff
3.15.2 Input File
[4 ,13 ,10 ,6 ,3 ,1]. [1,3,3,2,1,1]. [-,1,4,-]. [2,-,-,1]. [-,2,1,3]. [-,3,2,4]. [-1,1,-1,-1]. [1,-1,-1,1]. [-1,1,1,1]. [-1,1,-1]. [1,-1,-1]. [-1,-1,1]. [1,-1,1].
3.15.3 Submission Output
game [-,1,4,-] [2,-,-,1] [-,2,1,3] [-,3,2,4] false
part01test14.output
part01test14.output
part01test14.err
part01test15.diff
part01test15.gts
part01test15.output
28

3.15.4 Solution Output
game [-,1,4,-] [2,-,-,1] [-,2,1,3] [-,3,2,4] false
3.15.5 stderr
3.16 part01test16 3.16.1 Diff
3.16.2 Input File
[15 ,14 ,3 ,12 ,1 ,3]. [1,4,4,3,4,3]. [-,2,3,1]. [1,3,2,-]. [-,4,1,-]. [3,1,-,2]. [-1,1,-1,1]. [1,1,-1,-1]. [1,-1,1,-1]. [-1,1,-1]. [1,-1,1]. [1,-1,1]. [-1,1,-1].
3.16.3 Submission Output
game [-,2,3,1] [1,3,2,-] [-,4,1,-] [3,1,-,2] false
3.16.4 Solution Output
game [-,2,3,1] [1,3,2,-] [-,4,1,-] [3,1,-,2] false
3.16.5 stderr
part01test15.err
part01test16.diff
part01test16.gts
part01test15.output
part01test16.output
part01test16.output
29

3.17 part01test17 3.17.1 Diff
3.17.2 Input File
[14 ,6 ,6 ,6]. [4 ,2 ,4 ,2]. [3 ,2 ,4 ,1]. [4,-,2,-]. [2 ,3 ,1 ,4]. [1 ,4 ,3 ,2]. [1,-1,-1,1]. [-1,1,-1,1]. [-1,1,1,-1]. [-1,1,-1]. [-1,1,1]. [1,-1,1]. [1,-1,-1].
3.17.3 Submission Output
game [3,2,4,1] [4,-,2,-] [2,3,1,4] [1,4,3,2] true
3.17.4 Solution Output
game [3,2,4,1] [4,-,2,-] [2,3,1,4] [1,4,3,2] true
3.17.5 stderr
3.18 part01test18 3.18.1 Diff
part01test17.diff
part01test17.gts
3.18.2 Input File
part01test16.err
part01test17.output
part01test17.output
part01test17.err
part01test18.diff
30

[7 ,11 ,1 ,6 ,13 ,1]. [1,4,3,2,3,4]. [-,1,4,-]. [4,-,2,1]. [1,-,-,2].
[3 ,2 ,1 ,4]. [1,1,-1,-1]. [-1,1,1,1]. [1,-1,-1,1]. [-1,1,-1]. [-1,-1,-1]. [1,-1,-1]. [-1,-1,1].
3.18.3 Submission Output
game [-,1,4,-] [4,-,2,1] [1,-,-,2] [3,2,1,4] false
3.18.4 Solution Output
game [-,1,4,-] [4,-,2,1] [1,-,-,2] [3,2,1,4] false
3.18.5 stderr
3.19 part01test19 3.19.1 Diff
3.19.2 Input File
[9 ,3 ,16 ,9 ,4]. [3,1,2,2,1]. [4,3,-,2].
[2 ,1 ,4 ,3]. [-,4,2,1]. [-,2,3,-]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,-1,1,1]. [-1,-1,1]. [-1,1,-1].
part01test18.output
part01test18.output
part01test18.err
part01test19.diff
part01test19.gts
part01test18.gts
31

[1,-1,-1]. [1 ,1 ,1].
3.19.3 Submission Output
game [4,3,-,2] [2,1,4,3] [-,4,2,1] [-,2,3,-] true
3.19.4 Solution Output
game [4,3,-,2] [2,1,4,3] [-,4,2,1] [-,2,3,-] true
3.19.5 stderr
3.20 part01test20 3.20.1 Diff
3.20.2 Input File
[1 ,16 ,7 ,12 ,16 ,7]. [4,2,2,2,4,1]. [-,2,1,3].
[3 ,1 ,2 ,4]. [1,-,4,2]. [2,4,-,-]. [-1,-1,1,1]. [-1,1,1,-1]. [1,1,-1,-1]. [-1,-1,1]. [-1,1,1]. [1,1,-1]. [1,-1,-1].
3.20.3 Submission Output
game [-,2,1,3] [3,1,2,4] [1,-,4,2] [2,4,-,-] true
part01test19.output
part01test19.output
part01test19.err
part01test20.diff
part01test20.gts
part01test20.output
32

3.20.4 Solution Output
game [-,2,1,3] [3,1,2,4] [1,-,4,2] [2,4,-,-] true
3.20.5 stderr
3.21 part01test21 3.21.1 Diff
3.21.2 Input File
[8,4,8,10,4,8,2,9,9]. [4,4,2,3,4,1,3,3,2]. [4,1,-,3].
[-,3,-,4].
[1 ,4 ,3 ,2]. [-,-,4,1]. [-1,1,-1,1]. [-1,1,1,-1]. [1,-1,1,-1]. [-1,1,1]. [1,-1,1]. [1,-1,-1]. [-1,1,-1].
3.21.3 Submission Output
game [4,1,-,3] [-,3,-,4] [1,4,3,2] [-,-,4,1] false
3.21.4 Solution Output
game [4,1,-,3] [-,3,-,4] [1,4,3,2] [-,-,4,1] false
3.21.5 stderr
part01test20.err
part01test21.diff
part01test21.gts
part01test20.output
part01test21.output
part01test21.output
33

3.22 part01test22 3.22.1 Diff
3.22.2 Input File
[15,5,8,12,1,1,8,3,1,6]. [4,4,2,4,4,2,2,1,1,1]. [-,-,1,2].
[1,-,3,4].
[-,3,4,-]. [4,-,-,3]. [-1,-1,1,1]. [1,1,1,-1]. [1,-1,-1,1]. [1,-1,1].
[1 ,1 ,1]. [1,1,-1]. [-1,1,1].
3.22.3 Submission Output
game [-,-,1,2] [1,-,3,4] [-,3,4,-] [4,-,-,3] false
3.22.4 Solution Output
game [-,-,1,2] [1,-,3,4] [-,3,4,-] [4,-,-,3] false
3.22.5 stderr
3.23 part01test23 3.23.1 Diff
part01test22.diff
part01test22.gts
3.23.2 Input File
part01test21.err
part01test22.output
part01test22.output
part01test22.err
part01test23.diff
34

[3 ,6 ,16 ,11 ,3]. [3,1,1,3,1]. [1 ,4 ,3 ,2]. [3,-,1,4]. [-,1,-,3]. [2,3,4,-]. [1,-1,-1,1]. [1,-1,1,-1]. [-1,1,1,-1]. [1,-1,-1]. [-1,-1,1]. [-1,1,1]. [1,1,-1].
3.23.3 Submission Output
game [1,4,3,2] [3,-,1,4] [-,1,-,3] [2,3,4,-] true
3.23.4 Solution Output
game [1,4,3,2] [3,-,1,4] [-,1,-,3] [2,3,4,-] true
3.23.5 stderr
3.24 part01test24 3.24.1 Diff
3.24.2 Input File
[4,2,6,1,6,9,10,3,10,7]. [4,1,4,1,3,3,3,3,1,3]. [-,3,-,2].
[-,-,-,4].
[-,-,2,1]. [-,2,4,3]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,-1,1,1]. [-1,-1,1]. [-1,1,1].
part01test23.output
part01test23.output
part01test23.err
part01test24.diff
part01test24.gts
part01test23.gts
35

[1,-1,-1]. [1,1,-1].
3.24.3 Submission Output
game [-,3,-,2] [-,-,-,4] [-,-,2,1] [-,2,4,3] false
3.24.4 Solution Output
game [-,3,-,2] [-,-,-,4] [-,-,2,1] [-,2,4,3] false
3.24.5 stderr
3.25 part01test25 3.25.1 Diff
3.25.2 Input File
[7 ,7 ,4 ,2]. [1 ,2 ,4 ,3]. [2 ,1 ,3 ,4]. [-,3,1,2]. [1,-,2,3]. [-,2,4,1]. [1,1,-1,-1]. [-1,1,1,1]. [1,-1,1,-1]. [-1,1,1]. [-1,-1,1]. [1,-1,1]. [-1,1,-1].
3.25.3 Submission Output
game [2,1,3,4] [-,3,1,2] [1,-,2,3] [-,2,4,1] true
part01test24.output
part01test24.output
part01test24.err
part01test25.diff
part01test25.gts
part01test25.output
36

3.25.4 Solution Output
game [2,1,3,4] [-,3,1,2] [1,-,2,3] [-,2,4,1] true
3.25.5 stderr
3.26 part01test26 3.26.1 Diff
3.26.2 Input File
[6 ,1 ,5 ,4 ,15 ,14]. [1,1,2,3,2,4]. [-,-,1,2]. [2,-,4,-]. [1,3,2,-]. [-,2,3,1]. [-1,-1,1,1]. [-1,1,-1,1]. [1,-1,1,-1]. [1,-1,1]. [-1,1,-1]. [1,-1,1]. [-1,1,-1].
3.26.3 Submission Output
game [-,-,1,2] [2,-,4,-] [1,3,2,-] [-,2,3,1] false
3.26.4 Solution Output
game [-,-,1,2] [2,-,4,-] [1,3,2,-] [-,2,3,1] false
3.26.5 stderr
part01test25.err
part01test26.diff
part01test26.gts
part01test25.output
part01test26.output
part01test26.output
37

3.27 part01test27 3.27.1 Diff
3.27.2 Input File
[3 ,14 ,4 ,3 ,11]. [4,3,1,3,2]. [3 ,2 ,4 ,1]. [1,4,3,-]. [-,3,-,4]. [-,1,2,3]. [-1,1,-1,1]. [1,-1,-1,1]. [1,-1,1,-1]. [-1,1,-1]. [1,-1,-1]. [1,-1,1]. [-1,1,1].
3.27.3 Submission Output
game [3,2,4,1] [1,4,3,-] [-,3,-,4] [-,1,2,3] true
3.27.4 Solution Output
game [3,2,4,1] [1,4,3,-] [-,3,-,4] [-,1,2,3] true
3.27.5 stderr
3.28 part01test28 3.28.1 Diff
part01test27.diff
part01test27.gts
3.28.2 Input File
part01test26.err
part01test27.output
part01test27.output
part01test27.err
part01test28.diff
38

[6,3,4,12,8,15,8]. [2,4,3,2,1,3,3]. [1 ,4 ,2 ,3]. [2,-,4,1]. [-,1,3,-]. [-,-,-,4]. [1,-1,1,-1]. [1,-1,-1,1]. [-1,1,-1,1]. [1,-1,1]. [1,1,-1]. [-1,1,-1]. [-1,-1,1].
3.28.3 Submission Output
game [1,4,2,3] [2,-,4,1] [-,1,3,-] [-,-,-,4] false
3.28.4 Solution Output
game [1,4,2,3] [2,-,4,1] [-,1,3,-] [-,-,-,4] false
3.28.5 stderr
3.29 part01test29 3.29.1 Diff
3.29.2 Input File
[2,1,15,1,11,2,13,10,5]. [1,2,1,1,1,3,2,4,4]. [-,-,4,-].
[-,4,-,1].
[1,2,-,-]. [4 ,3 ,1 ,2]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,1,-1]. [1,-1,-1].
part01test28.output
part01test28.output
part01test28.err
part01test29.diff
part01test29.gts
part01test28.gts
39

[1 ,1 ,1]. [-1,-1,1].
3.29.3 Submission Output
game [-,-,4,-] [-,4,-,1] [1,2,-,-] [4,3,1,2] false
3.29.4 Solution Output
game [-,-,4,-] [-,4,-,1] [1,2,-,-] [4,3,1,2] false
3.29.5 stderr
3.30 part01test30 3.30.1 Diff
3.30.2 Input File
[4,4,7,4,8,13,14,16,9,15]. [4,2,3,1,3,2,3,1,4,2]. [4,2,-,-].
[3,1,2,-].
[2,-,4,-]. [-,-,3,-]. [-1,-1,1,1]. [-1,1,1,-1]. [-1,1,-1,1]. [-1,-1,1]. [-1,1,1]. [1,1,-1]. [1,-1,-1].
3.30.3 Submission Output
game [4,2,-,-] [3,1,2,-] [2,-,4,-] [-,-,3,-] false
part01test29.output
part01test29.output
part01test29.err
part01test30.diff
part01test30.gts
part01test30.output
40

1 2 3 4 5 6 7 8 9
10
ispace(X, Y, Game):- nth0(X, Game, R), nth0(Y, R, -).
3.30.4 Solution Output
game [4,2,-,-] [3,1,2,-] [2,-,4,-] [-,-,3,-] false
3.30.5 stderr
3.31 Source Code
part01test30.err
csce322hw04pt01.pl
getRowAndCol(Game, NumRow, NumCol):- length(Game, nth0(0, Game, FR), length(FR, NumCol).
getNumSpace(Game, Len):- findall([X, Y], ispace(X,
percentageSpaces(Game):-
getNumSpace(Game, Len), A is Len * 100,
NumRow),
Y, Game), Out), length(Out, Len).
part01test30.output
getRowAndCol(Game, NumRow, NumCol), Total is NumRow * NumCol, B is Total * 25, A =< B. 41 Chapter 4 csce322hw04pt02.pl 4.1 part02test01 4.1.1 Diff 5a6 > false
4.1.2 Input File
[1 ,6 ,8 ,14 ,16]. [4,3,2,3,3]. [-,2,3,4]. [3,-,2,-].
[2 ,1 ,4 ,3]. [4,-,1,-]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [1 ,1 ,1]. [1,-1,-1]. [-1,1,-1]. [-1,-1,1].
4.1.3 Submission Output
game [-,2,3,4] [3,-,2,-] [2,1,4,3] [4,-,1,-]
4.1.4 Solution Output
game [-,2,3,4] [3,-,2,-] [2,1,4,3] [4,-,1,-] false
part02test01.diff
part02test01.gts
part02test01.output
part02test01.output
42

4.1.5 stderr
part02test01.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.2 part02test02 4.2.1 Diff
5a6
> true
4.2.2 Input File
[16 ,2 ,13 ,11 ,16 ,3 ,16 ,10]. [3,1,1,2,4,4,4,2]. [3,2,4,-].
[-,1,-,2].
[-,4,-,3]. [1,3,2,-]. [1,-1,-1,1]. [-1,1,-1,1]. [-1,-1,1,1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1]. [1,-1,1].
4.2.3 Submission Output
game [3,2,4,-] [-,1,-,2] [-,4,-,3] [1,3,2,-]
4.2.4 Solution Output
game [3,2,4,-] [-,1,-,2] [-,4,-,3] [1,3,2,-] true
4.2.5 stderr
part02test02.diff
part02test02.gts
part02test02.output
part02test02.output
part02test02.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
43

4.3 part02test03 4.3.1 Diff
5a6
> true
4.3.2 Input File
[14 ,12 ,3 ,6 ,3 ,16 ,15]. [2,1,2,2,3,2,4].
[2 ,1 ,3 ,4]. [4,-,1,-]. [-,4,2,-]. [1,2,-,-]. [1,1,-1,-1]. [-1,1,1,-1]. [-1,-1,1,1]. [-1,1,1].
[-1,-1,1]. [1,-1,-1]. [1,1,-1].
4.3.3 Submission Output
game [2,1,3,4] [4,-,1,-] [-,4,2,-] [1,2,-,-]
4.3.4 Solution Output
game [2,1,3,4] [4,-,1,-] [-,4,2,-] [1,2,-,-] true
4.3.5 stderr
part02test03.diff
part02test03.gts
part02test03.output
part02test03.output
part02test03.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.4 part02test04 4.4.1 Diff
5a6
> false
part02test04.diff
44

4.4.2 Input File
[5,5,12,12,14,16,10,2,2,4]. [3,4,1,1,1,3,3,3,4,3]. [1,-,3,4].
[-,4,-,-].
[4 ,3 ,1 ,2]. [-,1,-,-]. [1,1,-1,-1]. [1,-1,-1,1]. [-1,-1,1,1]. [1 ,1 ,1]. [1,-1,-1]. [-1,-1,1]. [-1,1,-1].
4.4.3 Submission Output
game [1,-,3,4] [-,4,-,-] [4,3,1,2] [-,1,-,-]
4.4.4 Solution Output
game [1,-,3,4] [-,4,-,-] [4,3,1,2] [-,1,-,-] false
4.4.5 stderr
part02test04.output
part02test04.output
part02test04.err
part02test04.gts
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.5 part02test05 4.5.1 Diff
5a6
> true
4.5.2 Input File
[8 ,9 ,2 ,1]. [4 ,4 ,4 ,3]. [-,2,-,4].
part02test05.diff
part02test05.gts
45

[-,4,3,2].
[4 ,3 ,2 ,1]. [2,-,4,3]. [-1,1,1,-1]. [1,-1,-1,-1]. [-1,-1,1,1]. [-1,-1,1]. [1,-1,-1]. [-1,-1,-1]. [-1,1,-1].
4.5.3 Submission Output
game [-,2,-,4] [-,4,3,2] [4,3,2,1] [2,-,4,3]
4.5.4 Solution Output
game [-,2,-,4] [-,4,3,2] [4,3,2,1] [2,-,4,3] true
4.5.5 stderr
part02test05.output
part02test05.output
part02test05.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.6 part02test06 4.6.1 Diff
5a6
> true
4.6.2 Input File
[8 ,3 ,12 ,8 ,4]. [3,3,4,4,4]. [4 ,1 ,2 ,3].
[2 ,3 ,4 ,1]. [-,2,1,4]. [-,-,-,2]. [-1,1,1,-1]. [1,-1,-1,1]. [-1,1,1,-1]. [-1,1,1].
part02test06.diff
part02test06.gts
46

[1,1,-1]. [-1,-1,1]. [1,-1,-1].
4.6.3 Submission Output
game [4,1,2,3] [2,3,4,1] [-,2,1,4] [-,-,-,2]
4.6.4 Solution Output
game [4,1,2,3] [2,3,4,1] [-,2,1,4] [-,-,-,2] true
4.6.5 stderr
part02test06.output
part02test06.output
part02test06.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.7 part02test07 4.7.1 Diff
5a6
> true
4.7.2 Input File
[10 ,5 ,10 ,3 ,10 ,16 ,1 ,12 ,3]. [1,3,1,3,2,3,1,2,3]. [-,-,1,4].
[4,1,-,2].
[-,3,4,1]. [1,4,-,-]. [1,-1,1,-1]. [-1,1,1,-1]. [-1,1,-1,1]. [-1,-1,1]. [-1,1,-1]. [1,1,-1]. [1,-1,1].
4.7.3 Submission Output
part02test07.diff
part02test07.gts
47

game [-,-,1,4] [4,1,-,2] [-,3,4,1] [1,4,-,-]
4.7.4 Solution Output
game [-,-,1,4] [4,1,-,2] [-,3,4,1] [1,4,-,-] true
4.7.5 stderr
part02test07.output
part02test07.err
4.8 part02test08 4.8.1 Diff
5a6
> true
4.8.2 Input File
[3 ,12 ,16 ,10 ,14 ,16 ,6 ,2 ,11]. [2,2,4,1,3,3,2,1,4].
[4 ,3 ,2 ,1].
[-,-,-,-].
[-,4,-,3]. [3,1,-,-]. [-1,-1,1,1]. [1,1,-1,-1]. [1,-1,1,-1]. [-1,-1,-1]. [1 ,1 ,1]. [1,-1,1]. [-1,1,-1].
4.8.3 Submission Output
game [4,3,2,1] [-,-,-,-] [-,4,-,3] [3,1,-,-]
part02test08.diff
part02test08.gts
part02test07.output
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
part02test08.output
48

4.8.4 Solution Output
game [4,3,2,1] [-,-,-,-] [-,4,-,3] [3,1,-,-] true
4.8.5 stderr
part02test08.output
part02test08.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.9 part02test09 4.9.1 Diff
5a6
> false
4.9.2 Input File
[15,9,11,6,15,5,4,7]. [1,2,3,2,3,2,4,4]. [1,-,-,2].
[2,-,3,1].
[3,-,-,-]. [-,1,2,3]. [1,1,-1,-1]. [1,-1,-1,1]. [1,-1,1,-1]. [1,1,-1]. [1,-1,-1]. [-1,-1,1]. [-1,1,1].
4.9.3 Submission Output
game [1,-,-,2] [2,-,3,1] [3,-,-,-] [-,1,2,3]
4.9.4 Solution Output
game [1,-,-,2] [2,-,3,1]
part02test09.diff
part02test09.gts
part02test09.output
part02test09.output
49

[3,-,-,-] [-,1,2,3] false
4.9.5 stderr
4.10 part02test10 4.10.1 Diff
5a6
> true
4.10.2 Input File
[16 ,16 ,2 ,13 ,1]. [4,2,4,2,4]. [-,1,4,-]. [-,4,1,3].
[1 ,2 ,3 ,4]. [4,3,2,-]. [-1,1,-1,1]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,1,-1]. [1,-1,1].
[1 ,1 ,1]. [-1,-1,-1].
4.10.3 Submission Output
game [-,1,4,-] [-,4,1,3] [1,2,3,4] [4,3,2,-]
4.10.4 Solution Output
game [-,1,4,-] [-,4,1,3] [1,2,3,4] [4,3,2,-] true
4.10.5 stderr
part02test10.diff
part02test10.gts
part02test09.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
part02test10.output
part02test10.output
50

part02test10.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.11 part02test11 4.11.1 Diff
5a6
> false
4.11.2 Input File
[16 ,9 ,10 ,10 ,16 ,11 ,2]. [4,2,1,1,3,1,4]. [3,1,-,4].
[-,4,-,3].
[1,3,-,2]. [4,2,3,-]. [-1,1,-1,-1]. [-1,-1,1,-1]. [1,-1,-1,-1]. [-1,1,1]. [1,-1,1]. [1,1,-1]. [-1,1,-1].
4.11.3 Submission Output
game [3,1,-,4] [-,4,-,3] [1,3,-,2] [4,2,3,-]
4.11.4 Solution Output
game [3,1,-,4] [-,4,-,3] [1,3,-,2] [4,2,3,-] false
4.11.5 stderr
part02test11.diff
part02test11.gts
part02test11.output
part02test11.output
part02test11.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
51

4.12 part02test12 4.12.1 Diff
5a6
> true
4.12.2 Input File
[14 ,11 ,5 ,4 ,10 ,13 ,9 ,15]. [1,4,2,3,4,2,4,4]. [3,-,-,-].
[4,2,-,-].
[2,4,-,-]. [-,3,4,2]. [1,1,1,-1]. [-1,1,-1,1]. [-1,-1,1,-1]. [-1,1,1]. [-1,1,-1]. [1,-1,1]. [1,1,-1].
4.12.3 Submission Output
game [3,-,-,-] [4,2,-,-] [2,4,-,-] [-,3,4,2]
4.12.4 Solution Output
game [3,-,-,-] [4,2,-,-] [2,4,-,-] [-,3,4,2] true
4.12.5 stderr
part02test12.diff
part02test12.gts
part02test12.output
part02test12.output
part02test12.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.13 part02test13 4.13.1 Diff
5a6
> true
part02test13.diff
52

4.13.2 Input File
[1,13,7,1,10,5,8]. [1,2,1,2,2,1,4]. [-,-,3,-]. [3,4,-,1]. [1,-,4,3]. [4,-,1,2]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,1,1]. [1,-1,-1]. [1,1,-1]. [-1,-1,1].
4.13.3 Submission Output
game [-,-,3,-] [3,4,-,1] [1,-,4,3] [4,-,1,2]
4.13.4 Solution Output
game [-,-,3,-] [3,4,-,1] [1,-,4,3] [4,-,1,2] true
4.13.5 stderr
part02test13.output
part02test13.output
part02test13.err
part02test13.gts
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.14 part02test14 4.14.1 Diff
5a6
> false
4.14.2 Input File
[7 ,7 ,10 ,10 ,15 ,14 ,5]. [1,1,3,3,1,4,2]. [1,-,3,4].
part02test14.diff
part02test14.gts
53

[4,3,-,-]. [2,-,4,-]. [3 ,4 ,2 ,1]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [1 ,1 ,1]. [-1,-1,1]. [-1,1,-1]. [1,-1,-1].
4.14.3 Submission Output
game [1,-,3,4] [4,3,-,-] [2,-,4,-] [3,4,2,1]
4.14.4 Solution Output
game [1,-,3,4] [4,3,-,-] [2,-,4,-] [3,4,2,1] false
4.14.5 stderr
part02test14.output
part02test14.output
part02test14.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.15 part02test15 4.15.1 Diff
5a6
> false
4.15.2 Input File
[13,3,14,5,5,5,1]. [4,2,3,1,2,2,3]. [-,-,3,-]. [1,3,2,-]. [-,2,1,3].
[3 ,1 ,4 ,2]. [-1,-1,-1,1]. [1,-1,-1,-1]. [-1,-1,1,-1]. [1,-1,-1].
part02test15.diff
part02test15.gts
54

[1,-1,1]. [-1,-1,1]. [-1,1,-1].
4.15.3 Submission Output
game [-,-,3,-] [1,3,2,-] [-,2,1,3] [3,1,4,2]
4.15.4 Solution Output
game [-,-,3,-] [1,3,2,-] [-,2,1,3] [3,1,4,2] false
4.15.5 stderr
part02test15.output
part02test15.output
part02test15.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.16 part02test16 4.16.1 Diff
5a6
> false
4.16.2 Input File
[13 ,6 ,14 ,15 ,11 ,1 ,3]. [4,4,2,2,4,3,1]. [-,2,4,-]. [1,-,3,-]. [-,3,-,-].
[4 ,1 ,2 ,3]. [-1,1,-1,1]. [1,-1,-1,1]. [1,-1,1,-1]. [-1,1,-1]. [1,-1,-1]. [1,-1,1]. [-1,1,1].
4.16.3 Submission Output
part02test16.diff
part02test16.gts
55

game [-,2,4,-] [1,-,3,-] [-,3,-,-] [4,1,2,3]
4.16.4 Solution Output
game [-,2,4,-] [1,-,3,-] [-,3,-,-] [4,1,2,3] false
4.16.5 stderr
part02test16.output
part02test16.err
4.17 part02test17 4.17.1 Diff
5a6
> true
4.17.2 Input File
[16,7,9,3,3,3]. [3,4,1,3,2,2]. [2,3,-,1].
[4 ,1 ,2 ,3]. [-,-,1,2]. [1,2,3,-]. [1,-1,-1,1]. [-1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1]. [-1,1,1]. [1,-1,1].
[1 ,1 ,1].
4.17.3 Submission Output
game [2,3,-,1] [4,1,2,3] [-,-,1,2] [1,2,3,-]
part02test17.diff
part02test17.gts
part02test16.output
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
part02test17.output
56

4.17.4 Solution Output
game [2,3,-,1] [4,1,2,3] [-,-,1,2] [1,2,3,-] true
4.17.5 stderr
part02test17.output
part02test17.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.18 part02test18 4.18.1 Diff
5a6
> true
4.18.2 Input File
[9 ,11 ,2 ,10 ,16 ,8 ,11]. [1,4,2,3,1,4,1]. [4,2,-,1]. [-,1,-,2]. [2,4,-,3]. [1,-,2,-]. [-1,-1,1,1]. [-1,1,-1,1]. [-1,-1,1,1]. [-1,1,-1]. [-1,1,-1].
[1,-1,1]. [1,-1,1].
4.18.3 Submission Output
game [4,2,-,1] [-,1,-,2] [2,4,-,3] [1,-,2,-]
4.18.4 Solution Output
game [4,2,-,1] [-,1,-,2]
part02test18.diff
part02test18.gts
part02test18.output
part02test18.output
57

[2,4,-,3] [1,-,2,-] true
4.18.5 stderr
4.19 part02test19 4.19.1 Diff
5a6
> true
4.19.2 Input File
[11 ,13 ,5 ,12 ,6 ,11 ,5 ,11 ,16]. [2,4,2,2,1,2,3,3,3]. [2,-,3,-].
[1,-,2,4].
[3,1,-,2]. [4,2,-,-]. [-1,-1,-1,1]. [1,-1,1,-1]. [1,1,-1,1]. [1,-1,-1]. [1,-1,1]. [-1,1,-1]. [-1,-1,1].
4.19.3 Submission Output
game [2,-,3,-] [1,-,2,4] [3,1,-,2] [4,2,-,-]
4.19.4 Solution Output
game [2,-,3,-] [1,-,2,4] [3,1,-,2] [4,2,-,-] true
4.19.5 stderr
part02test19.diff
part02test19.gts
part02test18.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
part02test19.output
part02test19.output
58

part02test19.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: ERROR:
Prolog initialisation failed:
columnsAndSpaces/1: Undefined procedure: getNumSpace/2
part02test20.diff
part02test20.gts
part02test20
4.20.2 Input File
[6,13,15,5,13,8,10,1,9]. [2,2,2,2,3,1,2,1,4]. [-,-,-,-].
[3,-,-,2].
[4,3,2,-]. [1,-,3,4]. [1,-1,1,-1]. [1,1,-1,-1]. [-1,-1,1,1]. [1,-1,1]. [-1,1,-1]. [-1,-1,-1]. [1 ,1 ,1].
4.20.3 Submission Output
game [-,-,-,-] [3,-,-,2] [4,3,2,-] [1,-,3,4]
4.20.4 Solution Output
game [-,-,-,-] [3,-,-,2] [4,3,2,-] [1,-,3,4] true
4.20.5 stderr
4.20
4.20.1 Diff
5a6
> true
part02test20.output
part02test20.output
part02test20.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
59

4.21 part02test21 4.21.1 Diff
5a6
> false
4.21.2 Input File
[13 ,6 ,1 ,15 ,2 ,12 ,14 ,12]. [2,4,1,2,4,2,3,3]. [-,3,1,-].
[-,-,2,-].
[4,2,3,-]. [3,1,-,2]. [-1,1,1,-1]. [1,-1,1,-1]. [-1,-1,1,1]. [1,-1,1]. [1,-1,1]. [-1,1,-1]. [-1,1,-1].
4.21.3 Submission Output
game [-,3,1,-] [-,-,2,-] [4,2,3,-] [3,1,-,2]
4.21.4 Solution Output
game [-,3,1,-] [-,-,2,-] [4,2,3,-] [3,1,-,2] false
4.21.5 stderr
part02test21.diff
part02test21.gts
part02test21.output
part02test21.output
part02test21.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.22 part02test22 4.22.1 Diff
5a6
> false
part02test22.diff
60

4.22.2 Input File
[5,4,6,7,4,4,13]. [3,1,3,1,2,2,2]. [2,-,3,-]. [1,-,4,2]. [3,-,2,4]. [-,2,1,3]. [-1,-1,1,1]. [1,-1,-1,1]. [1,1,-1,-1]. [1,-1,-1]. [1,1,-1]. [-1,1,1]. [-1,-1,1].
4.22.3 Submission Output
game [2,-,3,-] [1,-,4,2] [3,-,2,4] [-,2,1,3]
4.22.4 Solution Output
game [2,-,3,-] [1,-,4,2] [3,-,2,4] [-,2,1,3] false
4.22.5 stderr
part02test22.output
part02test22.output
part02test22.err
part02test22.gts
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.23 part02test23 4.23.1 Diff
5a6
> false
4.23.2 Input File
[8,3,9,14,10,2,6]. [3,3,4,4,2,1,1]. [3,2,-,1].
part02test23.diff
part02test23.gts
61

[-,-,-,-]. [-,3,1,2]. [2,-,3,4]. [-1,1,-1,1]. [1,-1,-1,-1]. [-1,-1,1,1]. [-1,1,-1]. [1,-1,1]. [-1,-1,1]. [-1,1,1].
4.23.3 Submission Output
game [3,2,-,1] [-,-,-,-] [-,3,1,2] [2,-,3,4]
4.23.4 Solution Output
game [3,2,-,1] [-,-,-,-] [-,3,1,2] [2,-,3,4] false
4.23.5 stderr
part02test23.output
part02test23.output
part02test23.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.24 part02test24 4.24.1 Diff
5a6
> true
4.24.2 Input File
[4 ,12 ,13 ,13 ,14 ,10 ,6 ,14 ,15 ,2]. [4,1,3,4,1,3,4,2,2,1]. [4,3,2,-].
[-,-,-,-].
[2,4,1,-]. [-,1,-,2]. [-1,-1,1,1]. [1,1,-1,-1]. [1,-1,1,-1]. [-1,-1,-1].
part02test24.diff
part02test24.gts
62

[1 ,1 ,1]. [1,-1,1]. [-1,1,-1].
4.24.3 Submission Output
game [4,3,2,-] [-,-,-,-] [2,4,1,-] [-,1,-,2]
4.24.4 Solution Output
game [4,3,2,-] [-,-,-,-] [2,4,1,-] [-,1,-,2] true
4.24.5 stderr
part02test24.output
part02test24.output
part02test24.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.25 part02test25 4.25.1 Diff
5a6
> false
4.25.2 Input File
[3,2,1,11,7,7,11]. [3,1,1,4,1,3,1]. [-,1,3,2]. [-,3,1,4]. [-,-,-,1].
[1 ,2 ,4 ,3]. [-1,1,-1,1]. [1,1,1,-1]. [-1,-1,1,1]. [-1,1,-1]. [1,-1,1]. [1,-1,-1]. [1,1,-1].
4.25.3 Submission Output
part02test25.diff
part02test25.gts
63

game [-,1,3,2] [-,3,1,4] [-,-,-,1] [1,2,4,3]
4.25.4 Solution Output
game [-,1,3,2] [-,3,1,4] [-,-,-,1] [1,2,4,3] false
4.25.5 stderr
part02test25.output
part02test25.err
4.26 part02test26 4.26.1 Diff
5a6
> true
4.26.2 Input File
[11 ,4 ,2 ,10 ,3 ,15]. [2,1,1,2,3,2].
[3 ,1 ,2 ,4]. [-,2,-,3]. [-,4,-,-]. [-,3,4,1]. [1,1,-1,-1]. [-1,1,1,-1]. [1,-1,1,-1]. [-1,1,1]. [-1,-1,1]. [1,-1,-1]. [1,1,-1].
4.26.3 Submission Output
game [3,1,2,4] [-,2,-,3] [-,4,-,-] [-,3,4,1]
part02test26.diff
part02test26.gts
part02test25.output
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
part02test26.output
64

4.26.4 Solution Output
game [3,1,2,4] [-,2,-,3] [-,4,-,-] [-,3,4,1] true
4.26.5 stderr
part02test26.output
part02test26.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.27 part02test27 4.27.1 Diff
5a6
> false
4.27.2 Input File
[1 ,5 ,5 ,14]. [4 ,4 ,1 ,3]. [-,-,3,4]. [3,4,1,-]. [4 ,3 ,2 ,1]. [2 ,1 ,4 ,3]. [1,1,-1,-1]. [1,-1,1,-1]. [-1,-1,1,1]. [1 ,1 ,1]. [1,-1,1]. [-1,-1,-1]. [-1,1,-1].
4.27.3 Submission Output
game [-,-,3,4] [3,4,1,-] [4,3,2,1] [2,1,4,3]
4.27.4 Solution Output
game [-,-,3,4] [3,4,1,-]
part02test27.diff
part02test27.gts
part02test27.output
part02test27.output
65

[4,3,2,1] [2,1,4,3] false
4.27.5 stderr
4.28 part02test28 4.28.1 Diff
5a6
> false
4.28.2 Input File
[15,12,7,1,16,1,1,9,3]. [1,1,4,2,1,3,4,1,2]. [-,2,-,4].
[4 ,1 ,2 ,3].
[-,-,4,-]. [1,4,-,-]. [1,-1,1,-1]. [-1,1,1,-1]. [-1,1,-1,1]. [-1,-1,1]. [-1,1,1]. [1,1,-1]. [1,-1,-1].
4.28.3 Submission Output
game [-,2,-,4] [4,1,2,3] [-,-,4,-] [1,4,-,-]
4.28.4 Solution Output
game [-,2,-,4] [4,1,2,3] [-,-,4,-] [1,4,-,-] false
4.28.5 stderr
part02test28.diff
part02test28.gts
part02test27.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
part02test28.output
part02test28.output
66

part02test28.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.29 part02test29 4.29.1 Diff
5a6
> false
4.29.2 Input File
[15 ,11 ,7 ,6 ,5 ,14 ,11 ,15 ,15 ,9]. [4,1,3,1,3,1,4,4,2,2]. [2,-,-,1].
[1,-,3,-].
[3,-,-,-]. [4 ,1 ,2 ,3]. [-1,1,-1,1]. [1,-1,-1,1]. [1,-1,1,-1]. [1,1,-1]. [1,-1,-1]. [-1,-1,1]. [-1,1,1].
4.29.3 Submission Output
game [2,-,-,1] [1,-,3,-] [3,-,-,-] [4,1,2,3]
4.29.4 Solution Output
game [2,-,-,1] [1,-,3,-] [3,-,-,-] [4,1,2,3] false
4.29.5 stderr
part02test29.diff
part02test29.gts
part02test29.output
part02test29.output
part02test29.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
67

4.30 part02test30 4.30.1 Diff
5a6
> true
4.30.2 Input File
[12 ,12 ,4 ,6 ,8 ,9 ,16 ,16]. [2,4,3,4,1,3,3,4]. [3,4,-,1].
[2,-,4,3].
[1 ,2 ,3 ,4]. [-,-,-,-]. [-1,-1,1,1]. [-1,1,-1,1]. [1,1,-1,-1]. [1,-1,-1]. [-1,1,-1]. [1 ,1 ,1]. [-1,-1,1].
4.30.3 Submission Output
game [3,4,-,1] [2,-,4,3] [1,2,3,4] [-,-,-,-]
4.30.4 Solution Output
game [3,4,-,1] [2,-,4,3] [1,2,3,4] [-,-,-,-] true
4.30.5 stderr
part02test30.diff
part02test30.gts
part02test30.output
part02test30.output
part02test30.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:1: Singleton variables: [NumCol]
ERROR: Prolog initialisation failed:
ERROR: columnsAndSpaces/1: Undefined procedure: getNumSpace/2
4.31 Source Code
1 columnsAndSpaces(Game):- 2 getNumSpace(Game, Len), 3
csce322hw04pt02.pl
68

4 getRowAndCol(Game, _, NumCol), 5
6 A is Len mod 2,
7
8 B is Len mod 2,
9
10 A=B.
69

Chapter 5
csce322hw04pt03.pl
5.1 part03test01 5.1.1 Diff
7,11c7 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 10-4
5.1.2 Input File
[10].
[1].
[2 ,4 ,3 ,1]. [3,1,-,2]. [4 ,2 ,1 ,3]. [1 ,3 ,2 ,4]. [1,-1,1,1]. [1,1,-1,1]. [-1,1,1,1]. [1,-1,-1]. [-1,1,-1]. [-1,-1,1]. [1,-1,1].
5.1.3 Submission Output
game [2,4,3,1] [3,1,-,2] [4,2,1,3] [1,3,2,4] sequence 1-1
2-2
3-3
4-4
part03test01.diff
part03test01.gts
part03test01.output
70

16 -5 true
5.1.4 Solution Output
game [2,4,3,1] [3,1,-,2] [4,2,1,3] [1,3,2,4] sequence 10 -4
true
5.1.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.2 part03test02 5.2.1 Diff
7,11c7,9 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 4-1 > 5-1 > 13-2
5.2.2 Input File
[4 ,13 ,5].
[1 ,2 ,2]. [3,-,4,-]. [2 ,4 ,1 ,3]. [4 ,3 ,2 ,1]. [-,2,3,4]. [-1,1,-1,1]. [1,-1,1,-1]. [-1,-1,1,1]. [-1,1,-1]. [1,-1,1]. [-1,-1,-1]. [1 ,1 ,1].
5.2.3 Submission Output
game [3,-,4,-]
part03test02.diff
part03test01.output
part03test01.err
part03test02.gts
part03test02.output
71

[2,4,1,3] [4,3,2,1] [-,2,3,4] sequence 1-1
2-2 3-3 4-4 16 -5 true
5.2.4 Solution Output
game [3,-,4,-] [2,4,1,3] [4,3,2,1] [-,2,3,4] sequence 4-1
5-1
13 -2
true
5.2.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.3 part03test03 5.3.1 Diff
7,11c7,8 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 12-4 > 14-1
5.3.2 Input File
[14 ,12].
[3 ,3].
[2 ,1 ,3 ,4]. [4,3,2,-]. [3 ,4 ,1 ,2]. [1,2,-,3]. [1,1,-1,-1]. [-1,1,-1,1]. [-1,-1,1,1]. [-1,1,1].
part03test03.diff
part03test02.output
part03test02.err
part03test03.gts
72

[-1,-1,-1]. [1,-1,1]. [1,1,-1].
5.3.3 Submission Output
game [2,1,3,4] [4,3,2,-] [3,4,1,2] [1,2,-,3] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.3.4 Solution Output
game [2,1,3,4] [4,3,2,-] [3,4,1,2] [1,2,-,3] sequence 12 -4
14 -1
true
5.3.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.4 part03test04 5.4.1 Diff
7,11c7,14 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 2-4 > 4-1 > 9-4 > 10-1 > 11-3 > 12-2 > 14-3 > 15-1
part03test04.diff
part03test03.output
part03test03.output
part03test03.err
73

5.4.2 Input File
part03test04.gts
[2 ,15 ,12 ,9 ,11 ,14 ,10 ,4]. [1,1,3,4,2,2,1,1]. [3,1,-,2].
[-,2,-,-].
[2,4,-,-]. [-,3,-,4]. [1,1,-1,1]. [-1,1,1,-1]. [-1,-1,-1,1]. [-1,1,-1]. [-1,-1,1]. [1,-1,-1]. [1,-1,1].
5.4.3 Submission Output
game [3,1,-,2] [-,2,-,-] [2,4,-,-] [-,3,-,4] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.4.4 Solution Output
game [3,1,-,2] [-,2,-,-] [2,4,-,-] [-,3,-,4] sequence 2-4
4-1
9-4
10 -1
11 -3
12 -2
14 -3
15 -1
true
5.4.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
part03test04.output
part03test04.output
part03test04.err
74

5.5 part03test05 5.5.1 Diff
7,11c7 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 5-3
5.5.2 Input File
[5].
[1]. [1,-,4,2]. [2 ,4 ,1 ,3]. [3 ,1 ,2 ,4]. [4 ,2 ,3 ,1]. [1,1,-1,1]. [1,-1,1,1]. [1,1,1,-1]. [1,1,-1]. [1,-1,1]. [-1,1,1]. [-1,1,-1].
5.5.3 Submission Output
game [1,-,4,2] [2,4,1,3] [3,1,2,4] [4,2,3,1] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.5.4 Solution Output
game [1,-,4,2] [2,4,1,3] [3,1,2,4] [4,2,3,1] sequence 5-3
true
5.5.5 stderr
part03test05.diff
part03test05.gts
part03test05.output
part03test05.output
75

part03test05.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7: Singleton variables: [Game,Vertical,Horizontal]
5.6 part03test06 5.6.1 Diff
7,11c7,11 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 1-4 > 2-1 > 9-2 > 11-4 > 12-1
5.6.2 Input File
[1 ,9 ,12 ,2 ,11]. [1,2,2,2,2]. [-,3,-,1]. [-,2,3,4]. [3,1,-,2]. [2,4,-,3]. [-1,-1,1,1]. [1,-1,1,-1]. [-1,1,-1,1]. [-1,-1,-1].
[1 ,1 ,1]. [-1,1,-1]. [1,-1,1].
5.6.3 Submission Output
game [-,3,-,1] [-,2,3,4] [3,1,-,2] [2,4,-,3] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.6.4 Solution Output
part03test06.diff
game
part03test06.gts
part03test06.output
part03test06.output
76

[-,3,-,1] [-,2,3,4] [3,1,-,2] [2,4,-,3] sequence 1-4
2-1 9-2 11 -4 12 -1 true
5.6.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.7 part03test07 5.7.1 Diff
7,11c7,12 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 3-2 > 6-4 > 8-3 > 10-1 > 11-3 > 13-3
5.7.2 Input File
[11 ,6 ,13 ,3 ,10 ,8]. [2,2,1,4,4,4]. [1,2,4,-]. [3,-,-,2]. [-,1,-,4]. [4,-,2,1]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [1,1,-1]. [1,-1,1]. [-1,1,1]. [-1,-1,-1].
5.7.3 Submission Output
game [1,2,4,-]
part03test07.diff
part03test06.err
part03test07.gts
part03test07.output
77

[3,-,-,2] [-,1,-,4] [4,-,2,1] sequence 1-1
2-2 3-3 4-4 16 -5 true
5.7.4 Solution Output
game [1,2,4,-] [3,-,-,2] [-,1,-,4] [4,-,2,1] sequence 3-2
6-4
8-3
10 -1
11 -3
13 -3
true
5.7.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.8 part03test08 5.8.1 Diff
7,11c7,12 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 5-2 > 9-1 > 12-4 > 13-4 > 14-2 > 16-1
5.8.2 Input File
[12 ,16 ,12 ,5 ,13 ,5 ,14 ,9]. [1,1,1,3,4,4,2,2]. [3,-,-,-].
part03test08.diff
part03test07.output
part03test07.err
part03test08.gts
78

[1,4,3,-]. [4 ,1 ,2 ,3]. [2,3,-,-]. [-1,1,1,-1]. [1,-1,-1,1]. [-1,1,1,-1]. [-1,-1,1]. [1,-1,-1]. [-1,1,1]. [1,1,-1].
5.8.3 Submission Output
game [3,-,-,-] [1,4,3,-] [4,1,2,3] [2,3,-,-] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.8.4 Solution Output
game [3,-,-,-] [1,4,3,-] [4,1,2,3] [2,3,-,-] sequence 5-2
9-1
12 -4
13 -4
14 -2
16 -1
true
5.8.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.9 part03test09 5.9.1 Diff
7d6
< 1-1 9,11c8,10 < 3-3 part03test09.diff part03test08.output part03test08.output part03test08.err 79 < 4-4 < 16-5 --- > 6-3 > 7-2 > 15-3
5.9.2 Input File
[2 ,6 ,2 ,15 ,7]. [4,1,2,3,4]. [1 ,4 ,3 ,2]. [-,-,4,1]. [4,-,1,-].
[3 ,1 ,2 ,4]. [1,-1,1,-1]. [1,-1,-1,1]. [-1,-1,1,1]. [1,-1,-1]. [1,1,-1]. [-1,-1,1]. [-1,1,1].
5.9.3 Submission Output
game [1,4,3,2] [-,-,4,1] [4,-,1,-] [3,1,2,4] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.9.4 Solution Output
game [1,4,3,2] [-,-,4,1] [4,-,1,-] [3,1,2,4] sequence 2-2
6-3
7-2
15 -3
true
5.9.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
part03test09.gts
part03test09.output
part03test09.output
part03test09.err
80

5.10 part03test10 5.10.1 Diff
8,11c8,11 < 2-2 < 3-3 < 4-4 < 16-5 --- > 6-2 > 7-4 > 14-1 > 15-3
5.10.2 Input File
[7 ,15 ,1 ,14 ,6]. [4,1,3,3,1]. [-,3,4,2]. [4,-,3,-]. [2,-,1,-].
[3 ,1 ,2 ,4]. [1,-1,-1,-1]. [-1,1,-1,1]. [1,-1,1,1]. [1,1,-1]. [-1,1,-1]. [1,-1,1]. [-1,1,1].
5.10.3 Submission Output
game [-,3,4,2] [4,-,3,-] [2,-,1,-] [3,1,2,4] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.10.4 Solution Output
game [-,3,4,2] [4,-,3,-] [2,-,1,-] [3,1,2,4] sequence 1-1
part03test10.diff
part03test10.gts
part03test10.output
part03test10.output
81

6-2 7-4 14 -1 15 -3 true
5.10.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.11 part03test11 5.11.1 Diff
7,11c7,10 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 2-1 > 4-2 > 7-1 > 9-1
5.11.2 Input File
[2,4,4,7,2,9,2]. [3,2,3,2,2,4,1]. [3,2,-,4]. [-,4,2,3]. [4,-,3,2]. [-,3,4,1]. [-1,1,1,-1]. [1,-1,1,-1]. [-1,1,1,-1]. [-1,-1,1]. [1,-1,1]. [-1,1,-1]. [1,1,-1].
5.11.3 Submission Output
game [3,2,-,4] [-,4,2,3] [4,-,3,2] [-,3,4,1] sequence 1-1
2-2
3-3
4-4
part03test11.diff
part03test10.err
part03test11.gts
part03test11.output
82

16 -5 true
5.11.4 Solution Output
game [3,2,-,4] [-,4,2,3] [4,-,3,2] [-,3,4,1] sequence 2-1
4-2
7-1
9-1
true
5.11.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.12 part03test12 5.12.1 Diff
7,11c7,11 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 4-2 > 12-1 > 13-3 > 15-2 > 16-4
5.12.2 Input File
[12 ,16 ,15 ,4 ,13]. [1,3,1,4,4]. [1,4,2,-].
[3 ,2 ,4 ,1]. [4,1,3,-]. [-,3,-,-]. [1,-1,1,-1]. [1,-1,-1,1]. [-1,1,-1,1]. [1,-1,1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1].
part03test12.diff
part03test11.output
part03test11.err
part03test12.gts
83

5.12.3 Submission Output
5.13 part03test13 5.13.1 Diff
7,8d6
< 1-1 < 2-2 10,11c8,12 < 4-4 < 16-5 --- > 7-4 > 8-1 > 10-2 > 14-1 > 16-4
5.13.2 Input File
part03test13.diff
part03test12.output
game [1,4,2,-] [3,2,4,1] [4,1,3,-] [-,3,-,-] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.12.4 Solution Output
game [1,4,2,-] [3,2,4,1] [4,1,3,-] [-,3,-,-] sequence 4-2
12 -1
13 -3
15 -2
16 -4
true
5.12.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
part03test12.output
part03test12.err
84

part03test13.gts
[14 ,10 ,3 ,7 ,16 ,8]. [2,1,2,4,3,3].
[1 ,2 ,4 ,3]. [4,3,-,-]. [-,-,1,2]. [2,-,3,-]. [1,1,-1,-1]. [-1,1,-1,1]. [-1,-1,1,1]. [1,1,-1]. [-1,-1,-1]. [1,-1,1]. [-1,1,1].
5.13.3 Submission Output
game [1,2,4,3] [4,3,-,-] [-,-,1,2] [2,-,3,-] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.13.4 Solution Output
game [1,2,4,3] [4,3,-,-] [-,-,1,2] [2,-,3,-] sequence 3-3
7-4
8-1
10 -2
14 -1
16 -4
true
5.13.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.14 part03test14 5.14.1 Diff
part03test13.output
part03test13.output
part03test13.err
85

7,11c7,12 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 3-4 > 6-2 > 8-1 > 11-2 > 12-3 > 15-1
5.14.2 Input File
[12 ,3 ,15 ,8 ,6 ,11]. [2,2,4,3,1,4].
[3 ,4 ,1 ,2]. [1,-,4,3]. [-,3,-,-]. [2,-,-,4]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,-1,1,1]. [1,-1,1]. [1,1,-1]. [-1,-1,-1]. [-1,1,1].
5.14.3 Submission Output
game [3,4,1,2] [1,-,4,3] [-,3,-,-] [2,-,-,4] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.14.4 Solution Output
game [3,4,1,2] [1,-,4,3] [-,3,-,-] [2,-,-,4] sequence 3-4
6-2
part03test14.gts
part03test14.diff
part03test14.output
part03test14.output
86

8-1 11 -2 12 -3 15 -1 true
5.14.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.15 part03test15 5.15.1 Diff
7,8d6
< 1-1 < 2-2 10 ,11 c8 < 4-4 < 16-5 --- > 9-2
5.15.2 Input File
[9 ,3].
[3 ,2]. [1,3,-,4]. [4 ,2 ,3 ,1]. [-,1,4,2]. [2 ,4 ,1 ,3]. [1,-1,1,-1]. [-1,-1,1,1]. [-1,1,-1,1]. [1,-1,1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1].
5.15.3 Submission Output
game [1,3,-,4] [4,2,3,1] [-,1,4,2] [2,4,1,3] sequence 1-1
2-2
3-3
4-4
16 -5
true
part03test15.diff
part03test14.err
part03test15.gts
part03test15.output
87

5.15.4 Solution Output
5.16 part03test16 5.16.1 Diff
7,11c7,10 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 7-1 > 12-1 > 13-4 > 15-2
5.16.2 Input File
[15 ,12 ,7 ,13]. [1 ,4 ,2 ,4]. [1,3,2,-].
[4 ,2 ,3 ,1]. [3,-,4,-]. [2,4,-,3]. [1,-1,1,-1]. [-1,-1,1,1]. [-1,1,-1,1]. [1,-1,1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1].
5.16.3 Submission Output
game [1,3,2,-] [4,2,3,1]
part03test16.diff
part03test15.output
game [1,3,-,4] [4,2,3,1] [-,1,4,2] [2,4,1,3] sequence 3-3
9-2
true
5.15.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
part03test15.err
part03test16.gts
part03test16.output
88

[3,-,4,-] [2,4,-,3] sequence 1-1
2-2 3-3 4-4 16 -5 true
5.16.4 Solution Output
game [1,3,2,-] [4,2,3,1] [3,-,4,-] [2,4,-,3] sequence 7-1
12 -1
13 -4
15 -2
true
5.16.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.17 part03test17 5.17.1 Diff
7,11c7,12 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 3-2 > 5-3 > 6-2 > 8-4 > 12-2 > 13-2
5.17.2 Input File
[5 ,12 ,6 ,3 ,8 ,13]. [2,2,2,1,3,2]. [4,-,1,-]. [1,-,4,3]. [-,1,3,4]. [3,-,-,1].
part03test17.diff
part03test16.output
part03test16.err
part03test17.gts
89

[-1,-1,1,1]. [1,-1,-1,1]. [1,1,-1,-1]. [-1,-1,1]. [1,1,-1]. [-1,1,1]. [1,-1,-1].
5.17.3 Submission Output
game [4,-,1,-] [1,-,4,3] [-,1,3,4] [3,-,-,1] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.17.4 Solution Output
game [4,-,1,-] [1,-,4,3] [-,1,3,4] [3,-,-,1] sequence 3-2
5-3
6-2
8-4
12 -2
13 -2
true
5.17.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.18 part03test18 5.18.1 Diff
7,11c7,8 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- part03test18.diff part03test17.output part03test17.output part03test17.err 90 > 9-4 > 12-1
5.18.2 Input File
[9 ,12].
[3 ,2]. [2,3,-,1]. [4 ,1 ,2 ,3]. [1 ,2 ,3 ,4]. [3,4,-,2]. [1,-1,-1,1]. [-1,1,1,1]. [1,1,-1,-1]. [1,1,-1]. [-1,1,1].
[1 ,1 ,1]. [1,-1,1].
5.18.3 Submission Output
game [2,3,-,1] [4,1,2,3] [1,2,3,4] [3,4,-,2] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.18.4 Solution Output
game [2,3,-,1] [4,1,2,3] [1,2,3,4] [3,4,-,2] sequence 9-4
12 -1
true
5.18.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.19 part03test19 5.19.1 Diff
part03test18.gts
part03test18.output
part03test18.output
part03test18.err
91

7,11c7,12 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 5-4 > 7-3 > 9-1 > 11-2 > 13-3 > 14-2
5.19.2 Input File
[5 ,14 ,9 ,11 ,13 ,7]. [3,2,4,3,1,2]. [2,-,-,-]. [3,1,4,-]. [4,-,-,1].
[1 ,2 ,3 ,4]. [1,-1,1,-1]. [1,1,-1,-1]. [-1,-1,1,1]. [1,-1,1]. [-1,1,-1]. [-1,-1,-1]. [1 ,1 ,1].
5.19.3 Submission Output
game [2,-,-,-] [3,1,4,-] [4,-,-,1] [1,2,3,4] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.19.4 Solution Output
game [2,-,-,-] [3,1,4,-] [4,-,-,1] [1,2,3,4] sequence 5-4
7-3
part03test19.gts
part03test19.diff
part03test19.output
part03test19.output
92

9-1 11 -2 13 -3 14 -2 true
5.19.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.20 part03test20 5.20.1 Diff
7,11c7 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 10-3
5.20.2 Input File
[10].
[2].
[3 ,4 ,2 ,1]. [1,2,-,4]. [2 ,1 ,4 ,3]. [4 ,3 ,1 ,2]. [-1,-1,1,1]. [1,-1,1,-1]. [1,1,-1,-1]. [1,-1,-1]. [1 ,1 ,1]. [-1,1,-1]. [-1,-1,1].
5.20.3 Submission Output
game [3,4,2,1] [1,2,-,4] [2,1,4,3] [4,3,1,2] sequence 1-1
2-2
3-3
4-4
16 -5
true
part03test20.diff
part03test19.err
part03test20.gts
part03test20.output
93

5.20.4 Solution Output
5.21 part03test21 5.21.1 Diff
7,11c7,10 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 3-1 > 5-1 > 10-2 > 12-1
5.21.2 Input File
[5 ,3 ,12 ,3 ,10 ,3 ,12]. [2,3,1,4,3,3,3]. [2,-,4,3]. [4,3,-,1]. [-,2,3,4]. [3,4,-,2]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,1,-1]. [-1,-1,-1].
[1 ,1 ,1]. [1,-1,1].
5.21.3 Submission Output
game [2,-,4,3] [4,3,-,1] [-,2,3,4]
part03test21.diff
part03test20.output
game [3,4,2,1] [1,2,-,4] [2,1,4,3] [4,3,1,2] sequence 10 -3
true
5.20.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
part03test20.err
part03test21.gts
part03test21.output
94

[3,4,-,2] sequence 1-1
2-2
3-3 4-4 16 -5 true
5.21.4 Solution Output
game [2,-,4,3] [4,3,-,1] [-,2,3,4] [3,4,-,2] sequence 3-1
5-1
10 -2
12 -1
true
5.21.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.22 part03test22 5.22.1 Diff
7,11c7,11 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 1-2 > 5-4 > 6-1 > 8-2 > 16-4
5.22.2 Input File
[5,6,8,6,1,16,5]. [4,3,3,2,4,2,2]. [-,-,1,3]. [3,-,4,2].
[4 ,3 ,2 ,1]. [1,-,3,-]. [1,-1,1,-1]. [1,1,-1,-1].
part03test22.diff
part03test21.output
part03test21.err
part03test22.gts
95

[-1,-1,1,1]. [1,-1,1]. [-1,1,-1]. [-1,-1,-1]. [1 ,1 ,1].
5.22.3 Submission Output
game [-,-,1,3] [3,-,4,2] [4,3,2,1] [1,-,3,-] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.22.4 Solution Output
game [-,-,1,3] [3,-,4,2] [4,3,2,1] [1,-,3,-] sequence 1-2
5-4
6-1
8-2
16 -4
true
5.22.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.23 part03test23 5.23.1 Diff
7,11c7,8 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 8-4 > 12-2
part03test23.diff
part03test22.output
part03test22.output
part03test22.err
96

5.23.2 Input File
5.24 part03test24 5.24.1 Diff
7,9d6 < 1-1 part03test24.diff part03test23.gts [8 ,12]. [3 ,3]. [4 ,3 ,1 ,2]. [1 ,2 ,3 ,4]. [2 ,1 ,4 ,3]. [3,-,-,1]. [-1,-1,1,1]. [1,-1,1,-1]. [1,1,-1,-1]. [-1,-1,1]. [1 ,1 ,1]. [-1,1,-1]. [1,-1,-1]. 5.23.3 Submission Output game [4,3,1,2] [1,2,3,4] [2,1,4,3] [3,-,-,1] sequence 1-1 2-2 3-3 4-4 16 -5 true 5.23.4 Solution Output game [4,3,1,2] [1,2,3,4] [2,1,4,3] [3,-,-,1] sequence 8-4 12 -2 true 5.23.5 stderr Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7: Singleton variables: [Game,Vertical,Horizontal] part03test23.output part03test23.output part03test23.err 97 < 2-2 < 3-3 11c8,12 < 16-5 --- > 7-1
> 8-3
> 12-2 > 15-3 > 16-1
5.24.2 Input File
[8 ,12 ,7 ,12 ,4 ,15 ,16 ,4]. [1,4,1,2,2,2,2,4].
[3 ,4 ,1 ,2].
[1 ,2 ,3 ,4].
[2,-,4,-]. [-,-,-,-]. [-1,-1,1,1]. [1,-1,1,-1]. [1,1,-1,-1]. [1,-1,1].
[1 ,1 ,1]. [-1,1,-1]. [-1,-1,-1].
5.24.3 Submission Output
game [3,4,1,2] [1,2,3,4] [2,-,4,-] [-,-,-,-] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.24.4 Solution Output
game [3,4,1,2] [1,2,3,4] [2,-,4,-] [-,-,-,-] sequence 4-4
7-1
8-3
12 -2
15 -3
16 -1
true
part03test24.gts
part03test24.output
part03test24.output
98

5.24.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.25 part03test25 5.25.1 Diff
7,9d6 < 1-1 < 2-2 < 3-3 11c8,9 < 16-5 --- > 12-3 > 16-2
5.25.2 Input File
[12 ,4 ,16]. [2 ,4 ,2].
[3 ,4 ,2 ,1]. [1 ,2 ,4 ,3]. [2 ,3 ,1 ,4]. [-,1,-,-]. [-1,-1,1,1]. [1,1,-1,1]. [1,-1,1,-1]. [1,-1,-1]. [1,1,-1]. [1,-1,1]. [-1,1,-1].
5.25.3 Submission Output
game [3,4,2,1] [1,2,4,3] [2,3,1,4] [-,1,-,-] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.25.4 Solution Output
game [3,4,2,1]
part03test25.diff
part03test24.err
part03test25.gts
part03test25.output
part03test25.output
99

[1,2,4,3] [2,3,1,4] [-,1,-,-] sequence 4-4
12 -3 16 -2 true
5.25.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.26 part03test26 5.26.1 Diff
7,11c7,11 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 1-3 > 6-2 > 9-2 > 13-1 > 16-4
5.26.2 Input File
[16 ,1 ,13 ,6 ,16 ,9]. [2,4,2,3,1,2]. [-,4,-,-]. [1,-,4,3].
[4 ,3 ,1 ,2]. [2,1,3,-]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,-1,1,1]. [1,-1,-1]. [1,1,-1]. [-1,-1,1]. [-1,1,1].
5.26.3 Submission Output
game [-,4,-,-] [1,-,4,3] [4,3,1,2] [2,1,3,-] sequence
part03test26.diff
part03test25.err
part03test26.gts
part03test26.output
100

1-1 2-2 3-3 4-4 16 -5 true
5.26.4 Solution Output
game [-,4,-,-] [1,-,4,3] [4,3,1,2] [2,1,3,-] sequence 1-3
6-2
9-2
13 -1
16 -4
true
5.26.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.27 part03test27 5.27.1 Diff
7,11c7 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 9-1
5.27.2 Input File
[9].
[4]. [4,2,-,3]. [3 ,1 ,2 ,4]. [2 ,4 ,3 ,1]. [1 ,3 ,4 ,2]. [-1,-1,1,1]. [-1,1,1,-1]. [-1,-1,1,1]. [-1,-1,1]. [-1,1,1]. [1,-1,-1]. [1,1,-1].
part03test27.diff
part03test26.output
part03test26.err
part03test27.gts
101

5.27.3 Submission Output
5.28 part03test28 5.28.1 Diff
7,11c7 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 9-3
5.28.2 Input File
[9].
[2]. [4,1,-,2]. [3 ,2 ,4 ,1]. [1 ,3 ,2 ,4]. [2 ,4 ,1 ,3]. [-1,1,1,-1]. [-1,1,-1,1].
part03test28.diff
part03test27.output
game [4,2,-,3] [3,1,2,4] [2,4,3,1] [1,3,4,2] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.27.4 Solution Output
game [4,2,-,3] [3,1,2,4] [2,4,3,1] [1,3,4,2] sequence 9-1
true
5.27.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
part03test27.output
part03test27.err
part03test28.gts
102

[1,1,-1,-1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1]. [1,-1,1].
5.28.3 Submission Output
game [4,1,-,2] [3,2,4,1] [1,3,2,4] [2,4,1,3] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.28.4 Solution Output
game [4,1,-,2] [3,2,4,1] [1,3,2,4] [2,4,1,3] sequence 9-3
true
5.28.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.29 part03test29 5.29.1 Diff
7,9d6 < 1-1 < 2-2 < 3-3 11 c8 < 16-5 --- > 11-4
5.29.2 Input File
[11 ,4]. [3 ,3].
part03test29.diff
part03test28.output
part03test28.output
part03test28.err
part03test29.gts
103

[3 ,4 ,2 ,1]. [1 ,2 ,3 ,4]. [2,1,-,3]. [-,3,1,2]. [-1,-1,1,1]. [1,-1,1,-1]. [1,1,-1,-1]. [1,-1,-1]. [1 ,1 ,1]. [-1,1,-1]. [-1,-1,1].
5.29.3 Submission Output
game [3,4,2,1] [1,2,3,4] [2,1,-,3] [-,3,1,2] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.29.4 Solution Output
game [3,4,2,1] [1,2,3,4] [2,1,-,3] [-,3,1,2] sequence 4-4
11 -4
true
5.29.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.30 part03test30 5.30.1 Diff
7,11c7,8 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- part03test30.diff part03test29.output part03test29.output part03test29.err 104 > 6-3 > 9-2
5.30.2 Input File
[9 ,6].
[3 ,1]. [4,1,-,3]. [2,-,1,4]. [1 ,4 ,3 ,2]. [3 ,2 ,4 ,1]. [-1,1,-1,1]. [-1,1,1,-1]. [1,-1,1,-1]. [-1,1,1]. [1,-1,1]. [1,-1,-1]. [-1,1,-1].
5.30.3 Submission Output
game [4,1,-,3] [2,-,1,4] [1,4,3,2] [3,2,4,1] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.30.4 Solution Output
game [4,1,-,3] [2,-,1,4] [1,4,3,2] [3,2,4,1] sequence 6-3
9-2
true
5.30.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.31 part03test31 5.31.1 Diff
part03test30.gts
part03test30.output
part03test30.output
part03test30.err
105

7,11c7,10 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 2-3 > 7-3 > 11-4 > 12-2
5.31.2 Input File
[12 ,7 ,11 ,2]. [4 ,3 ,3 ,3]. [1 ,4 ,3 ,2]. [-,2,1,4]. [2,-,-,1]. [4,1,-,3]. [1,-1,-1,1]. [-1,1,1,-1]. [1,-1,-1,1]. [1,-1,-1]. [-1,-1,1]. [1,1,-1]. [-1,1,1].
5.31.3 Submission Output
game [1,4,3,2] [-,2,1,4] [2,-,-,1] [4,1,-,3] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.31.4 Solution Output
game [1,4,3,2] [-,2,1,4] [2,-,-,1] [4,1,-,3] sequence 2-3
7-3
11 -4
12 -2
true
part03test31.gts
part03test31.diff
part03test31.output
part03test31.output
106

5.31.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.32 part03test32 5.32.1 Diff
7,11c7 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 10-2
5.32.2 Input File
[10].
[2].
[2 ,1 ,4 ,3]. [4,3,-,1].
[3 ,2 ,1 ,4].
[1 ,4 ,3 ,2]. [1,1,-1,-1]. [-1,-1,-1,1]. [-1,1,1,-1]. [-1,1,-1]. [-1,-1,-1]. [-1,-1,1]. [1,-1,-1].
5.32.3 Submission Output
game [2,1,4,3] [4,3,-,1] [3,2,1,4] [1,4,3,2] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.32.4 Solution Output
game [2,1,4,3] [4,3,-,1]
part03test32.diff
part03test31.err
part03test32.gts
part03test32.output
part03test32.output
107

[3,2,1,4] [1,4,3,2] sequence 10 -2
true
5.32.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.33 part03test33 5.33.1 Diff
7,11c7,9 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 1-4 > 12-2 > 13-2
5.33.2 Input File
[1 ,13 ,12]. [1 ,1 ,1]. [-,3,1,-]. [2 ,1 ,3 ,4]. [3 ,2 ,4 ,1]. [1,4,-,3]. [-1,-1,1,1]. [1,1,1,-1]. [-1,1,-1,1]. [-1,-1,1]. [-1,1,1]. [-1,1,-1]. [1,-1,1].
5.33.3 Submission Output
game [-,3,1,-] [2,1,3,4] [3,2,4,1] [1,4,-,3] sequence 1-1
2-2
3-3
4-4
16 -5
true
part03test33.diff
part03test32.err
part03test33.gts
part03test33.output
108

5.33.4 Solution Output
5.34 part03test34 5.34.1 Diff
7,11c7,12 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 1-2 > 6-4 > 8-3 > 11-3 > 14-1 > 16-2
5.34.2 Input File
[11 ,1 ,11 ,14 ,8 ,6 ,16]. [4,4,2,3,3,2,3]. [-,1,4,3]. [3,-,2,-]. [1,2,-,4]. [4,-,1,-]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,1,-1]. [1,-1,-1].
[1 ,1 ,1]. [-1,-1,1].
5.34.3 Submission Output
part03test34.diff
part03test33.output
game [-,3,1,-] [2,1,3,4] [3,2,4,1] [1,4,-,3] sequence 1-4
12 -2
13 -2
true
5.33.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
part03test33.err
part03test34.gts
109

5.35 part03test35 5.35.1 Diff
7,11c7 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 5-3
5.35.2 Input File
[5].
[4]. [2,-,1,4]. [1 ,4 ,2 ,3]. [4 ,2 ,3 ,1].
part03test35.diff
part03test34.output
game [-,1,4,3] [3,-,2,-] [1,2,-,4] [4,-,1,-] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.34.4 Solution Output
game [-,1,4,3] [3,-,2,-] [1,2,-,4] [4,-,1,-] sequence 1-2
6-4
8-3
11 -3
14 -1
16 -2
true
5.34.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
part03test34.output
part03test34.err
part03test35.gts
110

[3 ,1 ,4 ,2]. [-1,1,1,-1]. [1,-1,1,-1]. [-1,-1,1,1]. [1,-1,1]. [1,-1,1]. [-1,1,-1]. [-1,1,-1].
5.35.3 Submission Output
game [2,-,1,4] [1,4,2,3] [4,2,3,1] [3,1,4,2] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.35.4 Solution Output
game [2,-,1,4] [1,4,2,3] [4,2,3,1] [3,1,4,2] sequence 5-3
true
5.35.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.36 part03test36 5.36.1 Diff
7,11c7,10 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 2-4 > 4-1 > 5-2 > 12-2
part03test36.diff
part03test35.output
part03test35.output
part03test35.err
111

5.36.2 Input File
part03test36.gts
[4 ,4 ,2 ,5 ,12]. [1,2,2,3,2]. [3,-,4,1]. [-,1,3,2].
[2 ,3 ,1 ,4]. [-,4,-,3]. [1,-1,-1,1]. [-1,1,-1,1]. [-1,1,1,-1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1]. [1,-1,1].
5.36.3 Submission Output
game [3,-,4,1] [-,1,3,2] [2,3,1,4] [-,4,-,3] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.36.4 Solution Output
game [3,-,4,1] [-,1,3,2] [2,3,1,4] [-,4,-,3] sequence 2-4
4-1
5-2
12 -2
true
5.36.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.37 part03test37 5.37.1 Diff
part03test36.output
part03test36.output
part03test36.err
112

part03test37.diff
7,11c7 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 2-3
5.37.2 Input File
[2].
[2].
[4 ,2 ,3 ,1]. [-,1,4,2]. [2 ,4 ,1 ,3]. [1 ,3 ,2 ,4]. [-1,-1,1,1]. [-1,1,-1,1]. [-1,-1,1,1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1]. [1,-1,1].
5.37.3 Submission Output
game [4,2,3,1] [-,1,4,2] [2,4,1,3] [1,3,2,4] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.37.4 Solution Output
game [4,2,3,1] [-,1,4,2] [2,4,1,3] [1,3,2,4] sequence 2-3
true
5.37.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
part03test37.gts
part03test37.output
part03test37.output
part03test37.err
113

5.38 part03test38 5.38.1 Diff
7,11c7,13 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 1-3 > 3-2 > 6-4 > 8-3 > 9-1 > 11-4 > 15-3
5.38.2 Input File
[9,6,3,6,8,1,15,11]. [2,3,4,4,3,4,2,1]. [-,2,-,4]. [1,-,3,2]. [-,1,-,-]. [4,-,2,1]. [-1,1,1,-1]. [1,-1,1,1]. [1,1,-1,-1]. [-1,-1,1]. [1,-1,-1]. [-1,1,-1]. [-1,-1,-1].
5.38.3 Submission Output
game [-,2,-,4] [1,-,3,2] [-,1,-,-] [4,-,2,1] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.38.4 Solution Output
game [-,2,-,4] [1,-,3,2]
part03test38.diff
part03test38.gts
part03test38.output
part03test38.output
114

[-,1,-,-] [4,-,2,1] sequence 1-3
3-2 6-4 8-3 9-1 11 -4 15 -3 true
5.38.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.39 part03test39 5.39.1 Diff
7,11c7,8 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 1-3 > 8-3
5.39.2 Input File
[1 ,8 ,8].
[3 ,3 ,1]. [-,2,1,4]. [1 ,4 ,3 ,2]. [2 ,1 ,4 ,3]. [4,-,2,1]. [-1,1,1,-1]. [1,-1,1,1]. [1,1,-1,-1]. [-1,-1,1]. [1,-1,-1]. [-1,1,-1]. [-1,-1,-1].
5.39.3 Submission Output
game [-,2,1,4] [1,4,3,2] [2,1,4,3] [4,-,2,1] sequence
part03test39.diff
part03test38.err
part03test39.gts
part03test39.output
115

1-1 2-2 3-3 4-4 16 -5 true
5.39.4 Solution Output
game [-,2,1,4] [1,4,3,2] [2,1,4,3] [4,-,2,1] sequence 1-3
8-3
true
5.39.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.40 part03test40 5.40.1 Diff
7,11c7,8 < 1-1 < 2-2 < 3-3 < 4-4 < 16-5 --- > 8-3 > 11-2
5.40.2 Input File
[8 ,11].
[4 ,1].
[4 ,2 ,3 ,1]. [3 ,1 ,4 ,2]. [1,4,-,3]. [2,-,1,4]. [-1,-1,1,1]. [-1,1,-1,1]. [1,-1,-1,1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1]. [1,-1,1].
5.40.3 Submission Output
part03test40.diff
part03test39.output
part03test39.err
part03test40.gts
116

part03test40.output
game [4,2,3,1] [3,1,4,2] [1,4,-,3] [2,-,1,4] sequence 1-1
2-2
3-3
4-4
16 -5
true
5.40.4 Solution Output
game [4,2,3,1] [3,1,4,2] [1,4,-,3] [2,-,1,4] sequence 8-3
11 -2
true
5.40.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:7:
Singleton variables: [Game,Vertical,Horizontal]
5.41 Source Code
csce322hw04pt03.pl
1
2 %% with_output_to(atom(A), write(1+1)).
3 %% split_string(“1-1”, “-“, “”, L).
4 %% number_codes(11, “11”).
5
6
7 solveGame(Game,Vertical,Horizontal,[1-1,2-2,3-3,4-4,16-5]).
part03test40.output
part03test40.err
117

Chapter 6
csce322hw04pt04.pl
6.1 part04test01 6.1.1 Diff
6c6
< true --- > false
6.1.2 Input File
[1].
[2].
[1 ,3 ,4 ,1]. [4 ,1 ,3 ,2]. [3 ,2 ,1 ,4]. [1 ,4 ,2 ,3]. [1,-1,-1,1]. [-1,1,-1,1]. [-1,1,1,-1]. [1,1,-1]. [-1,1,-1]. [-1,-1,1]. [1,-1,1].
6.1.3 Submission Output
game [1,3,4,1] [4,1,3,2] [3,2,1,4] [1,4,2,3] true
6.1.4 Solution Output
game [1,3,4,1] [4,1,3,2] [3,2,1,4]
part04test01.diff
part04test01.gts
part04test01.output
part04test01.output
118

[1,4,2,3] false
6.1.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
6.2 part04test02 6.2.1 Diff
6c6
< true --- > false
6.2.2 Input File
[1].
[4].
[4 ,2 ,3 ,4]. [3 ,4 ,2 ,1]. [2 ,1 ,4 ,3]. [4 ,3 ,1 ,2]. [1,1,-1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [1 ,1 ,1]. [1,-1,-1]. [-1,1,-1]. [-1,-1,1].
6.2.3 Submission Output
game [4,2,3,4] [3,4,2,1] [2,1,4,3] [4,3,1,2] true
6.2.4 Solution Output
game [4,2,3,4] [3,4,2,1] [2,1,4,3] [4,3,1,2] false
6.2.5 stderr
part04test02.diff
part04test02.gts
part04test01.err
part04test02.output
part04test02.output
119

part04test02.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1: Singleton variables: [Game,Vertical,Horizontal]
6.3 part04test03 6.3.1 Diff
6.3.2 Input File
[2].
[4].
[4 ,2 ,1 ,3]. [1 ,3 ,4 ,2]. [3 ,1 ,2 ,4]. [2 ,4 ,3 ,1]. [-1,1,1,-1]. [1,-1,-1,1]. [-1,1,1,-1]. [-1,-1,1]. [1,1,-1]. [-1,1,1]. [1,-1,-1].
6.3.3 Submission Output
game [4,2,1,3] [1,3,4,2] [3,1,2,4] [2,4,3,1] true
6.3.4 Solution Output
game [4,2,1,3] [1,3,4,2] [3,1,2,4] [2,4,3,1] true
6.3.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
6.4 part04test04 6.4.1 Diff
part04test03.diff
part04test03.gts
part04test03.output
part04test03.output
part04test03.err
120

6.5 part04test05 6.5.1 Diff
6c6
< true --- > false
part04test05.diff
part04test04.diff
6c6
< true --- > false
6.4.2 Input File
[1].
[1].
[4 ,4 ,2 ,1]. [1 ,2 ,3 ,4]. [4 ,3 ,1 ,2]. [2 ,1 ,4 ,3]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,-1,1,1]. [1,-1,-1]. [1 ,1 ,1]. [-1,-1,1]. [-1,1,-1].
6.4.3 Submission Output
game [4,4,2,1] [1,2,3,4] [4,3,1,2] [2,1,4,3] true
6.4.4 Solution Output
game [4,4,2,1] [1,2,3,4] [4,3,1,2] [2,1,4,3] false
6.4.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
part04test04.gts
part04test04.output
part04test04.output
part04test04.err
121

6.5.2 Input File
6.6 part04test06 6.6.1 Diff
6.6.2 Input File
[1].
[4].
[3 ,2 ,4 ,1]. [1 ,4 ,3 ,2]. [2 ,3 ,1 ,4]. [4 ,1 ,2 ,3].
part04test06.diff
part04test06.gts
part04test05.gts
[2].
[1].
[2 ,1 ,3 ,4]. [2 ,3 ,2 ,1]. [3 ,4 ,1 ,2]. [1 ,2 ,4 ,3]. [1,1,-1,-1]. [-1,1,-1,1]. [-1,-1,1,1]. [-1,1,1]. [-1,-1,-1]. [1,-1,1]. [1,1,-1].
6.5.3 Submission Output
game [2,1,3,4] [2,3,2,1] [3,4,1,2] [1,2,4,3] true
6.5.4 Solution Output
game [2,1,3,4] [2,3,2,1] [3,4,1,2] [1,2,4,3] false
6.5.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
part04test05.output
part04test05.output
part04test05.err
122

[-1,1,-1,1]. [1,-1,-1,1]. [1,-1,1,-1]. [-1,1,-1]. [1,-1,-1]. [1,-1,1]. [-1,1,1].
6.6.3 Submission Output
game [3,2,4,1] [1,4,3,2] [2,3,1,4] [4,1,2,3] true
6.6.4 Solution Output
game [3,2,4,1] [1,4,3,2] [2,3,1,4] [4,1,2,3] true
6.6.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
6.7 part04test07 6.7.1 Diff
6c6
< true --- > false
6.7.2 Input File
[2].
[1].
[2 ,3 ,4 ,1]. [4 ,4 ,3 ,2]. [4 ,2 ,1 ,3]. [3 ,1 ,2 ,4]. [-1,1,-1,1]. [1,-1,-1,1]. [-1,-1,1,1]. [1,1,-1]. [1,-1,-1]. [-1,-1,1]. [-1,1,1].
part04test07.diff
part04test07.gts
part04test06.output
part04test06.output
part04test06.err
123

6.7.3 Submission Output
6.8 part04test08 6.8.1 Diff
6.8.2 Input File
[1].
[1].
[2 ,4 ,1 ,3]. [3 ,1 ,4 ,2]. [1 ,2 ,3 ,4]. [4 ,3 ,2 ,1]. [1,-1,1,-1]. [-1,1,-1,1]. [1,1,-1,-1]. [1,-1,1]. [-1,1,-1]. [1 ,1 ,1]. [-1,-1,-1].
6.8.3 Submission Output
game [2,4,1,3] [3,1,4,2] [1,2,3,4] [4,3,2,1] true
part04test08.diff
part04test08.gts
part04test07.output
game [2,3,4,1] [4,4,3,2] [4,2,1,3] [3,1,2,4] true
6.7.4 Solution Output
game [2,3,4,1] [4,4,3,2] [4,2,1,3] [3,1,2,4] false
6.7.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
part04test07.output
part04test07.err
part04test08.output
124

6.8.4 Solution Output
6.9 part04test09 6.9.1 Diff
6.9.2 Input File
[2].
[4].
[3 ,1 ,2 ,4].
[2 ,4 ,1 ,3].
[1 ,3 ,4 ,2].
[4 ,2 ,3 ,1]. [-1,1,-1,-1]. [-1,-1,1,-1]. [1,-1,-1,-1]. [-1,1,1]. [1,-1,1]. [1,1,-1]. [-1,1,-1].
6.9.3 Submission Output
game [3,1,2,4] [2,4,1,3] [1,3,4,2] [4,2,3,1] true
6.9.4 Solution Output
game [3,1,2,4] [2,4,1,3] [1,3,4,2] [4,2,3,1] true
part04test09.diff
part04test09.gts
part04test08.output
game [2,4,1,3] [3,1,4,2] [1,2,3,4] [4,3,2,1] true
6.8.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
part04test08.err
part04test09.output
part04test09.output
125

6.9.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
part04test09.err
6.10 part04test10 6.10.1 Diff
6c6
< true --- > false
6.10.2 Input File
[1].
[2].
[4 ,4 ,1 ,3]. [1 ,3 ,2 ,4]. [4 ,2 ,3 ,1]. [3 ,1 ,4 ,2]. [-1,-1,1,1]. [1,-1,1,-1]. [-1,-1,1,1]. [1,-1,1]. [1,-1,1]. [-1,1,-1]. [-1,1,-1].
6.10.3 Submission Output
game [4,4,1,3] [1,3,2,4] [4,2,3,1] [3,1,4,2] true
6.10.4 Solution Output
game [4,4,1,3] [1,3,2,4] [4,2,3,1] [3,1,4,2] false
6.10.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
part04test10.diff
part04test10.gts
part04test10.output
part04test10.output
part04test10.err
126

6.11 part04test11 6.11.1 Diff
6.11.2 Input File
[1].
[3].
[1 ,3 ,2 ,4]. [4 ,2 ,3 ,1]. [2 ,1 ,4 ,3]. [3 ,4 ,1 ,2]. [1,-1,1,-1]. [-1,-1,1,1]. [1,1,-1,-1]. [1,-1,1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1].
6.11.3 Submission Output
game [1,3,2,4] [4,2,3,1] [2,1,4,3] [3,4,1,2] true
6.11.4 Solution Output
game [1,3,2,4] [4,2,3,1] [2,1,4,3] [3,4,1,2] true
6.11.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
6.12 part04test12 6.12.1 Diff
6c6
< true --- > false
part04test12.diff
part04test11.diff
part04test11.gts
part04test11.output
part04test11.output
part04test11.err
127

6.12.2 Input File
6.13 part04test13 6.13.1 Diff
6c6
< true --- > false
6.13.2 Input File
[1]. [1].
part04test13.diff
part04test13.gts
part04test12.gts
[2].
[3].
[4 ,3 ,1 ,2]. [4 ,1 ,4 ,3]. [1 ,2 ,3 ,4]. [3 ,4 ,2 ,1]. [-1,-1,1,1]. [-1,1,-1,1]. [1,1,-1,-1]. [-1,-1,1]. [-1,1,-1]. [1 ,1 ,1]. [1,-1,-1].
6.12.3 Submission Output
game [4,3,1,2] [4,1,4,3] [1,2,3,4] [3,4,2,1] true
6.12.4 Solution Output
game [4,3,1,2] [4,1,4,3] [1,2,3,4] [3,4,2,1] false
6.12.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
part04test12.output
part04test12.output
part04test12.err
128

[2 ,3 ,2 ,1]. [1 ,2 ,4 ,3]. [3 ,4 ,1 ,2]. [2 ,1 ,3 ,4]. [-1,-1,1,1]. [1,1,-1,-1]. [-1,-1,1,1]. [-1,-1,-1]. [1,1,-1]. [1,-1,1]. [-1,1,1].
6.13.3 Submission Output
game [2,3,2,1] [1,2,4,3] [3,4,1,2] [2,1,3,4] true
6.13.4 Solution Output
game [2,3,2,1] [1,2,4,3] [3,4,1,2] [2,1,3,4] false
6.13.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
6.14 part04test14 6.14.1 Diff
6c6
< true --- > false
6.14.2 Input File
[1].
[2].
[2 ,1 ,2 ,3]. [2 ,3 ,4 ,1]. [3 ,2 ,1 ,4]. [1 ,4 ,3 ,2]. [-1,1,1,-1]. [1,-1,-1,1].
part04test14.diff
part04test14.gts
part04test13.output
part04test13.output
part04test13.err
129

[-1,1,1,-1]. [-1,1,1]. [1,1,-1]. [-1,-1,1]. [1,-1,-1].
6.14.3 Submission Output
game [2,1,2,3] [2,3,4,1] [3,2,1,4] [1,4,3,2] true
6.14.4 Solution Output
game [2,1,2,3] [2,3,4,1] [3,2,1,4] [1,4,3,2] false
6.14.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
6.15 part04test15 6.15.1 Diff
6c6
< true --- > false
6.15.2 Input File
[1].
[3].
[2 ,2 ,4 ,1]. [4 ,1 ,3 ,2]. [2 ,4 ,1 ,3]. [1 ,3 ,2 ,4]. [1,-1,-1,1]. [-1,1,-1,1]. [-1,-1,1,1]. [-1,1,-1]. [-1,1,-1]. [1,-1,1]. [1,-1,1].
part04test15.diff
part04test15.gts
part04test14.output
part04test14.output
part04test14.err
130

6.15.3 Submission Output
6.16 Source Code
1 checkGame(Game,Vertical,Horizontal).
csce322hw04pt04.pl
part04test15.output
game [2,2,4,1] [4,1,3,2] [2,4,1,3] [1,3,2,4] true
6.15.4 Solution Output
game [2,2,4,1] [4,1,3,2] [2,4,1,3] [1,3,2,4] false
6.15.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:1:
Singleton variables: [Game,Vertical,Horizontal]
part04test15.output
part04test15.err
131