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 …………………………………………….. 31
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………………………………………………. 32 4.3.1 Diff ………………………………………………. 32 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……………………………………………. 33 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……………………………………….. 35 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 ………………………………………… 36 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 ………………………………………… 37 4.8.5 stderr …………………………………………….. 37
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 …………………………………………….. 38
4.10part02test10………………………………………………. 38 4.10.1Diff ………………………………………………. 38 4.10.2InputFile……………………………………………. 39 4.10.3 SubmissionOutput……………………………………….. 39 4.10.4SolutionOutput ………………………………………… 39 4.10.5stderr …………………………………………….. 39
4.11part02test11………………………………………………. 39 4.11.1Diff ………………………………………………. 39 4.11.2InputFile……………………………………………. 39 4.11.3 SubmissionOutput……………………………………….. 40 4.11.4SolutionOutput ………………………………………… 40 4.11.5stderr …………………………………………….. 40
4.12part02test12………………………………………………. 40 4.12.1Diff ………………………………………………. 40 4.12.2InputFile……………………………………………. 40 4.12.3 SubmissionOutput……………………………………….. 41 4.12.4SolutionOutput ………………………………………… 41 4.12.5stderr …………………………………………….. 41
4.13part02test13………………………………………………. 41 4.13.1Diff ………………………………………………. 41 4.13.2InputFile……………………………………………. 41 4.13.3 SubmissionOutput……………………………………….. 41 4.13.4SolutionOutput ………………………………………… 42 4.13.5stderr …………………………………………….. 42
4.14part02test14………………………………………………. 42 4.14.1Diff ………………………………………………. 42 4.14.2InputFile……………………………………………. 42 4.14.3 SubmissionOutput……………………………………….. 42 4.14.4SolutionOutput ………………………………………… 42 4.14.5stderr …………………………………………….. 43
4.15part02test15………………………………………………. 43 4.15.1Diff ………………………………………………. 43 4.15.2InputFile……………………………………………. 43 4.15.3 SubmissionOutput……………………………………….. 43 4.15.4SolutionOutput ………………………………………… 43 4.15.5stderr …………………………………………….. 43
4.16part02test16………………………………………………. 44 4.16.1Diff ………………………………………………. 44 4.16.2InputFile……………………………………………. 44 4.16.3 SubmissionOutput……………………………………….. 44 4.16.4SolutionOutput ………………………………………… 44 4.16.5stderr …………………………………………….. 44
4.17part02test17………………………………………………. 44 6
4.17.1Diff ………………………………………………. 44 4.17.2InputFile……………………………………………. 45 4.17.3 SubmissionOutput……………………………………….. 45 4.17.4SolutionOutput ………………………………………… 45 4.17.5stderr …………………………………………….. 45
4.18part02test18………………………………………………. 45 4.18.1Diff ………………………………………………. 45 4.18.2InputFile……………………………………………. 45 4.18.3 SubmissionOutput……………………………………….. 46 4.18.4SolutionOutput ………………………………………… 46 4.18.5stderr …………………………………………….. 46
4.19part02test19………………………………………………. 46 4.19.1Diff ………………………………………………. 46 4.19.2InputFile……………………………………………. 46 4.19.3 SubmissionOutput……………………………………….. 47 4.19.4SolutionOutput ………………………………………… 47 4.19.5stderr …………………………………………….. 47
4.20part02test20………………………………………………. 47 4.20.1Diff ………………………………………………. 47 4.20.2InputFile……………………………………………. 47 4.20.3 SubmissionOutput……………………………………….. 47 4.20.4SolutionOutput ………………………………………… 48 4.20.5stderr …………………………………………….. 48
4.21part02test21………………………………………………. 48 4.21.1Diff ………………………………………………. 48 4.21.2InputFile……………………………………………. 48 4.21.3 SubmissionOutput……………………………………….. 48 4.21.4SolutionOutput ………………………………………… 48 4.21.5stderr …………………………………………….. 49
4.22part02test22………………………………………………. 49 4.22.1Diff ………………………………………………. 49 4.22.2InputFile……………………………………………. 49 4.22.3 SubmissionOutput……………………………………….. 49 4.22.4SolutionOutput ………………………………………… 49 4.22.5stderr …………………………………………….. 49
4.23part02test23………………………………………………. 50 4.23.1Diff ………………………………………………. 50 4.23.2InputFile……………………………………………. 50 4.23.3 SubmissionOutput……………………………………….. 50 4.23.4SolutionOutput ………………………………………… 50 4.23.5stderr …………………………………………….. 50
4.24part02test24………………………………………………. 50 4.24.1Diff ………………………………………………. 50 4.24.2InputFile……………………………………………. 51 4.24.3 SubmissionOutput……………………………………….. 51 4.24.4SolutionOutput ………………………………………… 51 4.24.5stderr …………………………………………….. 51
4.25part02test25………………………………………………. 51 4.25.1Diff ………………………………………………. 51 4.25.2InputFile……………………………………………. 51 4.25.3 SubmissionOutput……………………………………….. 52 4.25.4SolutionOutput ………………………………………… 52 4.25.5stderr …………………………………………….. 52
4.26part02test26………………………………………………. 52 4.26.1Diff ………………………………………………. 52 4.26.2InputFile……………………………………………. 52 4.26.3 SubmissionOutput……………………………………….. 53 4.26.4SolutionOutput ………………………………………… 53 4.26.5stderr …………………………………………….. 53
4.27part02test27………………………………………………. 53 7
4.27.1Diff ………………………………………………. 53 4.27.2InputFile……………………………………………. 53 4.27.3 SubmissionOutput……………………………………….. 53 4.27.4SolutionOutput ………………………………………… 54 4.27.5stderr …………………………………………….. 54
4.28part02test28………………………………………………. 54 4.28.1Diff ………………………………………………. 54 4.28.2InputFile……………………………………………. 54 4.28.3 SubmissionOutput……………………………………….. 54 4.28.4SolutionOutput ………………………………………… 54 4.28.5stderr …………………………………………….. 55
4.29part02test29………………………………………………. 55 4.29.1Diff ………………………………………………. 55 4.29.2InputFile……………………………………………. 55 4.29.3 SubmissionOutput……………………………………….. 55 4.29.4SolutionOutput ………………………………………… 55 4.29.5stderr …………………………………………….. 55
4.30part02test30………………………………………………. 56 4.30.1Diff ………………………………………………. 56 4.30.2InputFile……………………………………………. 56 4.30.3 SubmissionOutput……………………………………….. 56 4.30.4SolutionOutput ………………………………………… 56 4.30.5stderr …………………………………………….. 56
4.31SourceCode………………………………………………. 56
5 csce322hw04pt03.pl 58
5.1 part03test01………………………………………………. 58 5.1.1 Diff ………………………………………………. 58 5.1.2 InputFile……………………………………………. 58 5.1.3 SubmissionOutput……………………………………….. 58 5.1.4 SolutionOutput ………………………………………… 58 5.1.5 stderr …………………………………………….. 59
5.2 part03test02………………………………………………. 59 5.2.1 Diff ………………………………………………. 59 5.2.2 InputFile……………………………………………. 59 5.2.3 SubmissionOutput……………………………………….. 59 5.2.4 SolutionOutput ………………………………………… 59 5.2.5 stderr …………………………………………….. 60
5.3 part03test03………………………………………………. 60 5.3.1 Diff ………………………………………………. 60 5.3.2 InputFile……………………………………………. 60 5.3.3 SubmissionOutput……………………………………….. 60 5.3.4 SolutionOutput ………………………………………… 61 5.3.5 stderr …………………………………………….. 61
5.4 part03test04………………………………………………. 61 5.4.1 Diff ………………………………………………. 61 5.4.2 InputFile……………………………………………. 61 5.4.3 SubmissionOutput……………………………………….. 62 5.4.4 SolutionOutput ………………………………………… 62 5.4.5 stderr …………………………………………….. 62
5.5 part03test05………………………………………………. 62 5.5.1 Diff ………………………………………………. 62 5.5.2 InputFile……………………………………………. 62 5.5.3 SubmissionOutput……………………………………….. 63 5.5.4 SolutionOutput ………………………………………… 63 5.5.5 stderr …………………………………………….. 63
5.6 part03test06………………………………………………. 63 5.6.1 Diff ………………………………………………. 63 5.6.2 InputFile……………………………………………. 64 5.6.3 SubmissionOutput……………………………………….. 64
8
5.6.4 SolutionOutput ………………………………………… 64
5.6.5 stderr …………………………………………….. 64
5.7 part03test07………………………………………………. 64 5.7.1 Diff ………………………………………………. 64 5.7.2 InputFile……………………………………………. 65 5.7.3 SubmissionOutput……………………………………….. 65 5.7.4 SolutionOutput ………………………………………… 65 5.7.5 stderr …………………………………………….. 65
5.8 part03test08………………………………………………. 66 5.8.1 Diff ………………………………………………. 66 5.8.2 InputFile……………………………………………. 66 5.8.3 SubmissionOutput……………………………………….. 66 5.8.4 SolutionOutput ………………………………………… 66 5.8.5 stderr …………………………………………….. 66
5.9 part03test09………………………………………………. 67 5.9.1 Diff ………………………………………………. 67 5.9.2 InputFile……………………………………………. 67 5.9.3 SubmissionOutput……………………………………….. 67 5.9.4 SolutionOutput ………………………………………… 67 5.9.5 stderr …………………………………………….. 68
5.10part03test10………………………………………………. 68 5.10.1Diff ………………………………………………. 68 5.10.2InputFile……………………………………………. 68 5.10.3 SubmissionOutput……………………………………….. 68 5.10.4SolutionOutput ………………………………………… 69 5.10.5stderr …………………………………………….. 69 5.11part03test11………………………………………………. 69 5.11.1Diff ………………………………………………. 69 5.11.2InputFile……………………………………………. 69 5.11.3 SubmissionOutput……………………………………….. 69 5.11.4SolutionOutput ………………………………………… 70 5.11.5stderr …………………………………………….. 70 5.12part03test12………………………………………………. 70 5.12.1Diff ………………………………………………. 70 5.12.2InputFile……………………………………………. 70 5.12.3 SubmissionOutput……………………………………….. 71 5.12.4SolutionOutput ………………………………………… 71 5.12.5stderr …………………………………………….. 71 5.13part03test13………………………………………………. 71 5.13.1Diff ………………………………………………. 71 5.13.2InputFile……………………………………………. 71 5.13.3 SubmissionOutput……………………………………….. 72 5.13.4SolutionOutput ………………………………………… 72 5.13.5stderr …………………………………………….. 72 5.14part03test14………………………………………………. 72 5.14.1Diff ………………………………………………. 72 5.14.2InputFile……………………………………………. 72 5.14.3 SubmissionOutput……………………………………….. 73 5.14.4SolutionOutput ………………………………………… 73 5.14.5stderr …………………………………………….. 73 5.15part03test15………………………………………………. 73 5.15.1Diff ………………………………………………. 73 5.15.2InputFile……………………………………………. 74 5.15.3 SubmissionOutput……………………………………….. 74 5.15.4SolutionOutput ………………………………………… 74 5.15.5stderr …………………………………………….. 74 5.16part03test16………………………………………………. 74 5.16.1Diff ………………………………………………. 74 5.16.2InputFile……………………………………………. 75 5.16.3 SubmissionOutput……………………………………….. 75
9
5.16.4SolutionOutput ………………………………………… 75
5.16.5stderr …………………………………………….. 75 5.17part03test17………………………………………………. 76 5.17.1Diff ………………………………………………. 76 5.17.2InputFile……………………………………………. 76 5.17.3 SubmissionOutput……………………………………….. 76 5.17.4SolutionOutput ………………………………………… 76 5.17.5stderr …………………………………………….. 76 5.18part03test18………………………………………………. 77 5.18.1Diff ………………………………………………. 77 5.18.2InputFile……………………………………………. 77 5.18.3 SubmissionOutput……………………………………….. 77 5.18.4SolutionOutput ………………………………………… 77 5.18.5stderr …………………………………………….. 78 5.19part03test19………………………………………………. 78 5.19.1Diff ………………………………………………. 78 5.19.2InputFile……………………………………………. 78 5.19.3 SubmissionOutput……………………………………….. 78 5.19.4SolutionOutput ………………………………………… 78 5.19.5stderr …………………………………………….. 79 5.20part03test20………………………………………………. 79 5.20.1Diff ………………………………………………. 79 5.20.2InputFile……………………………………………. 79 5.20.3 SubmissionOutput……………………………………….. 79 5.20.4SolutionOutput ………………………………………… 79 5.20.5stderr …………………………………………….. 80 5.21part03test21………………………………………………. 80 5.21.1Diff ………………………………………………. 80 5.21.2InputFile……………………………………………. 80 5.21.3 SubmissionOutput……………………………………….. 80 5.21.4SolutionOutput ………………………………………… 81 5.21.5stderr …………………………………………….. 81 5.22part03test22………………………………………………. 81 5.22.1Diff ………………………………………………. 81 5.22.2InputFile……………………………………………. 81 5.22.3 SubmissionOutput……………………………………….. 81 5.22.4SolutionOutput ………………………………………… 82 5.22.5stderr …………………………………………….. 82 5.23part03test23………………………………………………. 82 5.23.1Diff ………………………………………………. 82 5.23.2InputFile……………………………………………. 82 5.23.3 SubmissionOutput……………………………………….. 83 5.23.4SolutionOutput ………………………………………… 83 5.23.5stderr …………………………………………….. 83 5.24part03test24………………………………………………. 83 5.24.1Diff ………………………………………………. 83 5.24.2InputFile……………………………………………. 83 5.24.3 SubmissionOutput……………………………………….. 84 5.24.4SolutionOutput ………………………………………… 84 5.24.5stderr …………………………………………….. 84 5.25part03test25………………………………………………. 84 5.25.1Diff ………………………………………………. 84 5.25.2InputFile……………………………………………. 84 5.25.3 SubmissionOutput……………………………………….. 85 5.25.4SolutionOutput ………………………………………… 85 5.25.5stderr …………………………………………….. 85 5.26part03test26………………………………………………. 85 5.26.1Diff ………………………………………………. 85 5.26.2InputFile……………………………………………. 86 5.26.3 SubmissionOutput……………………………………….. 86
10
5.26.4SolutionOutput ………………………………………… 86
5.26.5stderr …………………………………………….. 86 5.27part03test27………………………………………………. 86 5.27.1Diff ………………………………………………. 86 5.27.2InputFile……………………………………………. 87 5.27.3 SubmissionOutput……………………………………….. 87 5.27.4SolutionOutput ………………………………………… 87 5.27.5stderr …………………………………………….. 87 5.28part03test28………………………………………………. 88 5.28.1Diff ………………………………………………. 88 5.28.2InputFile……………………………………………. 88 5.28.3 SubmissionOutput……………………………………….. 88 5.28.4SolutionOutput ………………………………………… 88 5.28.5stderr …………………………………………….. 88 5.29part03test29………………………………………………. 89 5.29.1Diff ………………………………………………. 89 5.29.2InputFile……………………………………………. 89 5.29.3 SubmissionOutput……………………………………….. 89 5.29.4SolutionOutput ………………………………………… 89 5.29.5stderr …………………………………………….. 90 5.30part03test30………………………………………………. 90 5.30.1Diff ………………………………………………. 90 5.30.2InputFile……………………………………………. 90 5.30.3 SubmissionOutput……………………………………….. 90 5.30.4SolutionOutput ………………………………………… 90 5.30.5stderr …………………………………………….. 91 5.31part03test31………………………………………………. 91 5.31.1Diff ………………………………………………. 91 5.31.2InputFile……………………………………………. 91 5.31.3 SubmissionOutput……………………………………….. 91 5.31.4SolutionOutput ………………………………………… 92 5.31.5stderr …………………………………………….. 92 5.32part03test32………………………………………………. 92 5.32.1Diff ………………………………………………. 92 5.32.2InputFile……………………………………………. 92 5.32.3 SubmissionOutput……………………………………….. 93 5.32.4SolutionOutput ………………………………………… 93 5.32.5stderr …………………………………………….. 93 5.33part03test33………………………………………………. 93 5.33.1Diff ………………………………………………. 93 5.33.2InputFile……………………………………………. 93 5.33.3 SubmissionOutput……………………………………….. 94 5.33.4SolutionOutput ………………………………………… 94 5.33.5stderr …………………………………………….. 94 5.34part03test34………………………………………………. 94 5.34.1Diff ………………………………………………. 94 5.34.2InputFile……………………………………………. 94 5.34.3 SubmissionOutput……………………………………….. 95 5.34.4SolutionOutput ………………………………………… 95 5.34.5stderr …………………………………………….. 95 5.35part03test35………………………………………………. 95 5.35.1Diff ………………………………………………. 95 5.35.2InputFile……………………………………………. 96 5.35.3 SubmissionOutput……………………………………….. 96 5.35.4SolutionOutput ………………………………………… 96 5.35.5stderr …………………………………………….. 96 5.36part03test36………………………………………………. 97 5.36.1Diff ………………………………………………. 97 5.36.2InputFile……………………………………………. 97 5.36.3 SubmissionOutput……………………………………….. 97
11
5.36.4SolutionOutput ………………………………………… 97
5.36.5stderr …………………………………………….. 97 5.37part03test37………………………………………………. 98 5.37.1Diff ………………………………………………. 98 5.37.2InputFile……………………………………………. 98 5.37.3 SubmissionOutput……………………………………….. 98 5.37.4SolutionOutput ………………………………………… 98 5.37.5stderr …………………………………………….. 98 5.38part03test38………………………………………………. 99 5.38.1Diff ………………………………………………. 99 5.38.2InputFile……………………………………………. 99 5.38.3 SubmissionOutput……………………………………….. 99 5.38.4SolutionOutput ………………………………………… 99 5.38.5stderr …………………………………………….. 99 5.39part03test39………………………………………………. 100 5.39.1Diff ………………………………………………. 100 5.39.2InputFile……………………………………………. 100 5.39.3 SubmissionOutput……………………………………….. 100 5.39.4 SolutionOutput ………………………………………… 100 5.39.5stderr …………………………………………….. 101 5.40part03test40………………………………………………. 101 5.40.1Diff ………………………………………………. 101 5.40.2InputFile……………………………………………. 101 5.40.3 SubmissionOutput……………………………………….. 101 5.40.4 SolutionOutput ………………………………………… 101 5.40.5stderr …………………………………………….. 102 5.41SourceCode………………………………………………. 102
6 csce322hw04pt04.pl 106
6.1 part04test01………………………………………………. 106 6.1.1 Diff ………………………………………………. 106 6.1.2 InputFile……………………………………………. 106 6.1.3 SubmissionOutput……………………………………….. 106 6.1.4 SolutionOutput ………………………………………… 106 6.1.5 stderr …………………………………………….. 106
6.2 part04test02………………………………………………. 107 6.2.1 Diff ………………………………………………. 107 6.2.2 InputFile……………………………………………. 107 6.2.3 SubmissionOutput……………………………………….. 107 6.2.4 SolutionOutput ………………………………………… 107 6.2.5 stderr …………………………………………….. 107
6.3 part04test03………………………………………………. 108 6.3.1 Diff ………………………………………………. 108 6.3.2 InputFile……………………………………………. 108 6.3.3 SubmissionOutput……………………………………….. 108 6.3.4 SolutionOutput ………………………………………… 108 6.3.5 stderr …………………………………………….. 108
6.4 part04test04………………………………………………. 109 6.4.1 Diff ………………………………………………. 109 6.4.2 InputFile……………………………………………. 109 6.4.3 SubmissionOutput……………………………………….. 109 6.4.4 SolutionOutput ………………………………………… 109 6.4.5 stderr …………………………………………….. 109
6.5 part04test05………………………………………………. 110 6.5.1 Diff ………………………………………………. 110 6.5.2 InputFile……………………………………………. 110 6.5.3 SubmissionOutput……………………………………….. 110 6.5.4 SolutionOutput ………………………………………… 110 6.5.5 stderr …………………………………………….. 110
6.6 part04test06………………………………………………. 111
12
6.6.1 Diff ………………………………………………. 111 6.6.2 InputFile……………………………………………. 111 6.6.3 SubmissionOutput……………………………………….. 111 6.6.4 SolutionOutput ………………………………………… 111 6.6.5 stderr …………………………………………….. 111
6.7 part04test07………………………………………………. 111 6.7.1 Diff ………………………………………………. 111 6.7.2 InputFile……………………………………………. 112 6.7.3 SubmissionOutput……………………………………….. 112 6.7.4 SolutionOutput ………………………………………… 112 6.7.5 stderr …………………………………………….. 112
6.8 part04test08………………………………………………. 112 6.8.1 Diff ………………………………………………. 112 6.8.2 InputFile……………………………………………. 112 6.8.3 SubmissionOutput……………………………………….. 113 6.8.4 SolutionOutput ………………………………………… 113 6.8.5 stderr …………………………………………….. 113
6.9 part04test09………………………………………………. 113 6.9.1 Diff ………………………………………………. 113 6.9.2 InputFile……………………………………………. 113 6.9.3 SubmissionOutput……………………………………….. 114 6.9.4 SolutionOutput ………………………………………… 114 6.9.5 stderr …………………………………………….. 114
6.10part04test10………………………………………………. 114 6.10.1Diff ………………………………………………. 114 6.10.2InputFile……………………………………………. 114 6.10.3 SubmissionOutput……………………………………….. 115 6.10.4 SolutionOutput ………………………………………… 115 6.10.5stderr …………………………………………….. 115
6.11part04test11………………………………………………. 115 6.11.1Diff ………………………………………………. 115 6.11.2InputFile……………………………………………. 115 6.11.3 SubmissionOutput……………………………………….. 116 6.11.4 SolutionOutput ………………………………………… 116 6.11.5stderr …………………………………………….. 116
6.12part04test12………………………………………………. 116 6.12.1Diff ………………………………………………. 116 6.12.2InputFile……………………………………………. 116 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……………………………………….. 119 6.15.4 SolutionOutput ………………………………………… 120 6.15.5stderr …………………………………………….. 120
6.16SourceCode………………………………………………. 120 13
1 2 3 4 5 6 7 8 9
10
11
12
13
14
15
1 2 3 4
1 2 3 4 5 6 7 8 9
10 11 12 13
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
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 – Deleted by User
Chapter 1 Metadata
1.1 Submitted Files
11/26/2016 17:02:13 hxia: csce322hw04pt04.pl 11/27/2016 12:22:06 hxia: csce322hw04pt01.pl 11/27/2016 12:22:10 hxia: csce322hw04pt02.pl 11/27/2016 12:22:18 hxia: csce322hw04pt03.pl 11/27/2016 12:22:24 hxia: csce322hw04pt04.pl 11/27/2016 12:23:57 hxia: helpers.pl – OK
– Deleted -OK
-OK
-OK
-OK
1.2 webgrader Runs
2016 -11 -26 T17 :02:50 -0600 2016 -11 -26 T17 :03:15 -0600 2016 -11 -27 T12 :22:57 -0600 2016 -11 -27 T12 :24:03 -0600
1.3 diffs
webgrader.time
csce322hw0004/hxia/02/part02test02.diff csce322hw0004/hxia/02/part02test05.diff csce322hw0004/hxia/02/part02test08.diff csce322hw0004/hxia/02/part02test09.diff csce322hw0004/hxia/02/part02test11.diff csce322hw0004/hxia/02/part02test13.diff csce322hw0004/hxia/02/part02test14.diff csce322hw0004/hxia/02/part02test17.diff csce322hw0004/hxia/02/part02test19.diff csce322hw0004/hxia/02/part02test26.diff csce322hw0004/hxia/02/part02test28.diff csce322hw0004/hxia/03/part03test01.diff csce322hw0004/hxia/03/part03test02.diff
70.121.227.30 70.121.227.30 70.121.227.30 70.121.227.30
hxia 0004 hxia 0004 hxia 0004 hxia 0004
handin.time
submission.diffs
14
-OK -OK -OK
-OK
– Deleted – Deleted – Deleted
by User by User by User
by User
14 csce322hw0004/hxia/03/part03test03.diff 15 csce322hw0004/hxia/03/part03test04.diff 16 csce322hw0004/hxia/03/part03test05.diff 17 csce322hw0004/hxia/03/part03test06.diff 18 csce322hw0004/hxia/03/part03test07.diff 19 csce322hw0004/hxia/03/part03test08.diff 20 csce322hw0004/hxia/03/part03test09.diff 21 csce322hw0004/hxia/03/part03test10.diff 22 csce322hw0004/hxia/03/part03test11.diff 23 csce322hw0004/hxia/03/part03test12.diff 24 csce322hw0004/hxia/03/part03test13.diff 25 csce322hw0004/hxia/03/part03test14.diff 26 csce322hw0004/hxia/03/part03test15.diff 27 csce322hw0004/hxia/03/part03test16.diff 28 csce322hw0004/hxia/03/part03test17.diff 29 csce322hw0004/hxia/03/part03test18.diff 30 csce322hw0004/hxia/03/part03test19.diff 31 csce322hw0004/hxia/03/part03test20.diff 32 csce322hw0004/hxia/03/part03test21.diff 33 csce322hw0004/hxia/03/part03test22.diff 34 csce322hw0004/hxia/03/part03test23.diff 35 csce322hw0004/hxia/03/part03test24.diff 36 csce322hw0004/hxia/03/part03test25.diff 37 csce322hw0004/hxia/03/part03test26.diff 38 csce322hw0004/hxia/03/part03test27.diff 39 csce322hw0004/hxia/03/part03test28.diff 40 csce322hw0004/hxia/03/part03test29.diff 41 csce322hw0004/hxia/03/part03test30.diff 42 csce322hw0004/hxia/03/part03test31.diff 43 csce322hw0004/hxia/03/part03test32.diff 44 csce322hw0004/hxia/03/part03test33.diff 45 csce322hw0004/hxia/03/part03test34.diff 46 csce322hw0004/hxia/03/part03test35.diff 47 csce322hw0004/hxia/03/part03test36.diff 48 csce322hw0004/hxia/03/part03test37.diff 49 csce322hw0004/hxia/03/part03test38.diff 50 csce322hw0004/hxia/03/part03test39.diff 51 csce322hw0004/hxia/03/part03test40.diff 52 csce322hw0004/hxia/04/part04test04.diff 53 csce322hw0004/hxia/04/part04test10.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
[16 ,11 ,3 ,4]. [4 ,4 ,1 ,1]. [3 ,1 ,2 ,4]. [4 ,2 ,1 ,3]. [-,3,-,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.1.3 Submission Output
game [3,1,2,4] [4,2,1,3] [-,3,-,2] [-,4,3,-] true
3.1.4 Solution Output
game [3,1,2,4] [4,2,1,3] [-,3,-,2] [-,4,3,-] true
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
[10 ,13 ,4 ,4 ,7 ,11 ,3]. [3,4,4,3,3,1,2]. [1,3,4,-]. [2,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].
3.2.3 Submission Output
game [1,3,4,-] [2,4,-,1] [-,-,-,3] [-,1,2,4] false
3.2.4 Solution Output
game [1,3,4,-] [2,4,-,1] [-,-,-,3] [-,1,2,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 ,7 ,16 ,13 ,11 ,3 ,2]. [3,1,3,3,4,1,3]. [1,2,3,-]. [-,4,1,2]. [-,-,-,3]. [-,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.3.3 Submission Output
game [1,2,3,-] [-,4,1,2] [-,-,-,3] [-,3,4,-] false
3.3.4 Solution Output
game [1,2,3,-] [-,4,1,2] [-,-,-,3] [-,3,4,-] false
3.3.5 stderr
3.4 part01test04 3.4.1 Diff
3.4.2 Input File
[6,11,7,15,3,5,6,4,3]. [4,2,2,3,3,2,2,1,4]. [2,-,3,1].
[1,-,4,2].
[-,-,-,-]. [-,1,2,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 [2,-,3,1] [1,-,4,2] [-,-,-,-] [-,1,2,4] false
3.4.4 Solution Output
game [2,-,3,1] [1,-,4,2] [-,-,-,-] [-,1,2,4] false
3.4.5 stderr
3.5 part01test05 3.5.1 Diff
3.5.2 Input File
[4,2,9,12,3,11,8,7]. [2,4,3,4,4,4,4,2]. [4,3,-,2]. [-,2,4,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.5.3 Submission Output
game [4,3,-,2] [-,2,4,3] [-,-,-,1] [-,-,-,4] false
part01test04.output
part01test04.output
part01test04.err
part01test05.diff
part01test05.gts
part01test05.output
20
3.5.4 Solution Output
game [4,3,-,2] [-,2,4,3] [-,-,-,1] [-,-,-,4] false
3.5.5 stderr
3.6 part01test06 3.6.1 Diff
3.6.2 Input File
[16 ,16 ,16 ,11 ,8 ,1 ,12]. [3,1,4,1,3,3,4]. [-,1,2,4].
[4 ,2 ,3 ,1].
[1,3,-,2]. [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 [-,1,2,4] [4,2,3,1] [1,3,-,2] [2,-,-,-] false
3.6.4 Solution Output
game [-,1,2,4] [4,2,3,1] [1,3,-,2] [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
[5,14,5,7,4,1,6]. [1,1,2,1,1,2,3]. [-,-,2,3]. [3,-,4,-]. [2,-,1,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 [-,-,2,3] [3,-,4,-] [2,-,1,4] [-,1,3,2] false
3.7.4 Solution Output
game [-,-,2,3] [3,-,4,-] [2,-,1,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
[1,12,3,7,16,7,8,5,2,3]. [2,1,4,2,4,2,3,2,1,1]. [-,-,4,2].
[-,2,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.8.3 Submission Output
game [-,-,4,2] [-,2,3,1] [-,-,1,4] [1,-,-,-] false
3.8.4 Solution Output
game [-,-,4,2] [-,2,3,1] [-,-,1,4] [1,-,-,-] false
3.8.5 stderr
3.9 part01test09 3.9.1 Diff
3.9.2 Input File
[9,10,9,10,10,5,10,10,9,11,5]. [2,3,4,1,1,3,3,3,2,2,2]. [2,-,-,3].
[1,3,-,4].
[3,2,-,1]. [4 ,1 ,3 ,2]. [-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 [2,-,-,3] [1,3,-,4] [3,2,-,1] [4,1,3,2] true
3.9.4 Solution Output
game [2,-,-,3] [1,3,-,4] [3,2,-,1] [4,1,3,2] true
3.9.5 stderr
3.10 part01test10 3.10.1 Diff
3.10.2 Input File
[9,5,6,15,14,2,8]. [3,4,1,4,1,4,2]. [4,-,-,1]. [-,-,4,-]. [3,2,1,-]. [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.10.3 Submission Output
game [4,-,-,1] [-,-,4,-] [3,2,1,-] [1,-,3,2] false
part01test09.output
part01test09.output
part01test09.err
part01test10.diff
part01test10.gts
part01test10.output
24
3.10.4 Solution Output
game [4,-,-,1] [-,-,4,-] [3,2,1,-] [1,-,3,2] false
3.10.5 stderr
3.11 part01test11 3.11.1 Diff
3.11.2 Input File
[6 ,12 ,16 ,5 ,9]. [4,2,1,2,2]. [2,-,-,1]. [1,-,3,2].
[4 ,2 ,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,1].
3.11.3 Submission Output
game [2,-,-,1] [1,-,3,2] [4,2,1,3] [3,1,-,-] false
3.11.4 Solution Output
game [2,-,-,1] [1,-,3,2] [4,2,1,3] [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
[14 ,6 ,5 ,4 ,13 ,15]. [2,1,3,4,1,4]. [3,-,2,-]. [4,-,1,-]. [1,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,-1].
3.12.3 Submission Output
game [3,-,2,-] [4,-,1,-] [1,3,4,-] [-,4,3,1] false
3.12.4 Solution Output
game [3,-,2,-] [4,-,1,-] [1,3,4,-] [-,4,3,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
[12,7,9,2,10,8,1,5,16,6,10]. [2,1,4,4,3,1,1,2,1,2,3]. [-,-,-,3].
[-,-,-,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,1].
3.13.3 Submission Output
game [-,-,-,3] [-,-,-,2] [4,-,3,1] [1,-,-,-] false
3.13.4 Solution Output
game [-,-,-,3] [-,-,-,2] [4,-,3,1] [1,-,-,-] false
3.13.5 stderr
3.14 part01test14 3.14.1 Diff
3.14.2 Input File
[16 ,4 ,4 ,16 ,10]. [4,3,1,3,2].
[4 ,2 ,1 ,3]. [1,3,-,2].
[2 ,1 ,3 ,4]. [-,4,2,-]. [-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,2,1,3] [1,3,-,2] [2,1,3,4] [-,4,2,-] true
3.14.4 Solution Output
game [4,2,1,3] [1,3,-,2] [2,1,3,4] [-,4,2,-] true
3.14.5 stderr
3.15 part01test15 3.15.1 Diff
3.15.2 Input File
[10 ,14 ,13 ,4 ,15 ,12 ,10 ,9]. [4,1,2,3,3,4,4,3]. [4,3,-,-].
[2,1,-,-].
[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].
3.15.3 Submission Output
game [4,3,-,-] [2,1,-,-] [1,4,3,-] [-,2,-,4] false
part01test14.output
part01test14.output
part01test14.err
part01test15.diff
part01test15.gts
part01test15.output
28
3.15.4 Solution Output
game [4,3,-,-] [2,1,-,-] [1,4,3,-] [-,2,-,4] false
3.15.5 stderr
3.16 part01test16 3.16.1 Diff
3.16.2 Input File
[12 ,11 ,2 ,12]. [2 ,3 ,1 ,3].
[3 ,2 ,4 ,1]. [-,1,3,2]. [2,4,-,3]. [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.16.3 Submission Output
game [3,2,4,1] [-,1,3,2] [2,4,-,3] [1,3,-,4] true
3.16.4 Solution Output
game [3,2,4,1] [-,1,3,2] [2,4,-,3] [1,3,-,4] true
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
[7,6,1,12,2,7,5,8,14,4]. [3,3,4,4,3,1,3,4,2,3]. [-,-,3,2].
[-,-,4,-].
[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].
3.17.3 Submission Output
game [-,-,3,2] [-,-,4,-] [1,-,2,3] [-,-,-,4] false
3.17.4 Solution Output
game [-,-,3,2] [-,-,4,-] [1,-,2,3] [-,-,-,4] false
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
[13 ,12 ,16 ,7 ,15 ,5 ,6]. [2,1,1,1,4,3,1]. [4,-,1,-]. [3,-,2,4]. [1,-,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].
3.18.3 Submission Output
game [4,-,1,-] [3,-,2,4] [1,-,3,-] [2,3,-,-] false
3.18.4 Solution Output
game [4,-,1,-] [3,-,2,4] [1,-,3,-] [2,3,-,-] false
3.18.5 stderr
3.19 part01test19 3.19.1 Diff
3.19.2 Input File
[11 ,13 ,11 ,4 ,1 ,3]. [1,3,1,1,4,4]. [-,4,3,-].
[3 ,1 ,4 ,2]. [-,2,-,3]. [-,3,2,4]. [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,-] [3,1,4,2] [-,2,-,3] [-,3,2,4] false
3.19.4 Solution Output
game [-,4,3,-] [3,1,4,2] [-,2,-,3] [-,3,2,4] false
3.19.5 stderr
3.20 part01test20 3.20.1 Diff
3.20.2 Input File
[5 ,7 ,5 ,1]. [3 ,1 ,3 ,2]. [-,-,2,1]. [2 ,1 ,3 ,4]. [4,-,1,3]. [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].
3.20.3 Submission Output
game [-,-,2,1] [2,1,3,4] [4,-,1,3] [1,3,4,2] true
part01test19.output
part01test19.output
part01test19.err
part01test20.diff
part01test20.gts
part01test20.output
32
3.20.4 Solution Output
game [-,-,2,1] [2,1,3,4] [4,-,1,3] [1,3,4,2] true
3.20.5 stderr
3.21 part01test21 3.21.1 Diff
3.21.2 Input File
[11,8,5,7,8,4,6,13,15,10]. [3,4,2,4,2,4,2,2,4,2]. [3,-,4,-].
[4,-,-,2].
[1,-,-,-]. [-,-,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.21.3 Submission Output
game [3,-,4,-] [4,-,-,2] [1,-,-,-] [-,-,1,3] false
3.21.4 Solution Output
game [3,-,4,-] [4,-,-,2] [1,-,-,-] [-,-,1,3] 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
[13 ,11 ,4 ,5 ,12 ,12]. [3,2,1,4,3,3]. [2,-,4,-].
[4 ,3 ,1 ,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].
3.22.3 Submission Output
game [2,-,4,-] [4,3,1,2] [1,2,-,4] [-,4,-,1] false
3.22.4 Solution Output
game [2,-,4,-] [4,3,1,2] [1,2,-,4] [-,4,-,1] 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
[12,16,16,1,12,9,8,3,2,10,5]. [1,2,1,1,1,4,3,2,3,2,4]. [-,-,-,1].
[-,2,-,4].
[-,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].
3.23.3 Submission Output
game [-,-,-,1] [-,2,-,4] [-,4,1,3] [3,-,-,-] false
3.23.4 Solution Output
game [-,-,-,1] [-,2,-,4] [-,4,1,3] [3,-,-,-] false
3.23.5 stderr
3.24 part01test24 3.24.1 Diff
3.24.2 Input File
[3 ,3 ,7 ,10 ,3 ,12 ,11]. [1,4,2,2,4,1,3].
[4 ,3 ,2 ,1]. [2,1,-,4]. [-,-,-,3]. [3,4,-,2]. [-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 [4,3,2,1] [2,1,-,4] [-,-,-,3] [3,4,-,2] false
3.24.4 Solution Output
game [4,3,2,1] [2,1,-,4] [-,-,-,3] [3,4,-,2] false
3.24.5 stderr
3.25 part01test25 3.25.1 Diff
3.25.2 Input File
[9,13,10,7,2,4,10,4,10]. [1,2,3,4,2,1,3,3,3]. [4,2,-,-].
[-,1,-,4].
[2,-,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.25.3 Submission Output
game [4,2,-,-] [-,1,-,4] [2,-,4,1] [-,4,3,2] false
part01test24.output
part01test24.output
part01test24.err
part01test25.diff
part01test25.gts
part01test25.output
36
3.25.4 Solution Output
game [4,2,-,-] [-,1,-,4] [2,-,4,1] [-,4,3,2] false
3.25.5 stderr
3.26 part01test26 3.26.1 Diff
3.26.2 Input File
[6,3,10,4,8,9,14,3,16,11]. [4,4,3,2,1,4,1,1,1,1]. [4,3,-,2].
[2,-,-,-].
[-,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].
3.26.3 Submission Output
game [4,3,-,2] [2,-,-,-] [-,4,-,1] [-,-,4,-] false
3.26.4 Solution Output
game [4,3,-,2] [2,-,-,-] [-,4,-,1] [-,-,4,-] 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
[5 ,1 ,10 ,10 ,9]. [3,2,3,3,4]. [-,-,-,3]. [4,3,-,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].
3.27.3 Submission Output
game [-,-,-,3] [4,3,-,2] [3,1,2,4] [2,4,3,1] true
3.27.4 Solution Output
game [-,-,-,3] [4,3,-,2] [3,1,2,4] [2,4,3,1] 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
[7,2,11,7,2,5,10,5,7,12,2]. [4,2,4,4,2,1,1,4,2,2,4]. [2,-,3,4].
[-,3,-,2].
[3,-,-,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].
3.28.3 Submission Output
game [2,-,3,4] [-,3,-,2] [3,-,-,1] [1,4,-,3] false
3.28.4 Solution Output
game [2,-,3,4] [-,3,-,2] [3,-,-,1] [1,4,-,3] false
3.28.5 stderr
3.29 part01test29 3.29.1 Diff
3.29.2 Input File
[16,2,4,6,13,1,13,7,12]. [3,4,1,4,2,3,1,2,1]. [-,4,2,-].
[-,-,3,4].
[1,-,4,2]. [-,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,2,-] [-,-,3,4] [1,-,4,2] [-,2,-,-] false
3.29.4 Solution Output
game [-,4,2,-] [-,-,3,4] [1,-,4,2] [-,2,-,-] false
3.29.5 stderr
3.30 part01test30 3.30.1 Diff
3.30.2 Input File
[1 ,9 ,15 ,11]. [1 ,3 ,1 ,1]. [-,4,-,2]. [2 ,1 ,3 ,4]. [1,2,-,-]. [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].
3.30.3 Submission Output
game [-,4,-,2] [2,1,3,4] [1,2,-,-] [4,3,2,1] true
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] [2,1,3,4] [1,2,-,-] [4,3,2,1] true
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
4.1.2 Input File
[15 ,5 ,6 ,7 ,15]. [2,3,3,2,3]. [4,-,3,2]. [2,-,4,1]. [3,-,1,-].
[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].
4.1.3 Submission Output
game [4,-,3,2] [2,-,4,1] [3,-,1,-] [1,4,2,3] true
4.1.4 Solution Output
game [4,-,3,2] [2,-,4,1] [3,-,1,-] [1,4,2,3] true
4.1.5 stderr
part02test01.diff
part02test01.gts
part02test01.output
part02test01.output
42
part02test01.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9: Singleton variables: [NumCol]
4.2 part02test02 4.2.1 Diff
6c6
< true ---
> false
4.2.2 Input File
[6 ,2 ,12 ,10 ,3 ,11 ,10 ,11 ,8]. [1,1,3,2,4,3,1,4,4].
[3 ,2 ,1 ,4].
[-,-,-,2].
[-,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.2.3 Submission Output
game [3,2,1,4] [-,-,-,2] [-,3,-,1] [2,-,-,3] true
4.2.4 Solution Output
game [3,2,1,4] [-,-,-,2] [-,3,-,1] [2,-,-,3] false
4.2.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.3 part02test03 4.3.1 Diff
part02test02.diff
part02test02.gts
part02test02.output
part02test02.output
part02test02.err
43
4.3.2 Input File
[6,10,8,8,4,11,1]. [2,1,3,1,4,2,4]. [-,3,2,1]. [1,-,-,3]. [3,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].
4.3.3 Submission Output
game [-,3,2,1] [1,-,-,3] [3,4,-,2] [-,-,3,4] true
4.3.4 Solution Output
game [-,3,2,1] [1,-,-,3] [3,4,-,2] [-,-,3,4] true
part02test03.diff
part02test03.gts
part02test03.output
part02test03.output
4.3.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.4 part02test04 4.4.1 Diff
4.4.2 Input File
[13 ,7 ,13 ,1 ,2 ,7 ,13]. [2,4,2,4,3,4,1]. [-,3,4,-]. [-,2,1,3]. [2,-,3,4].
part02test04.diff
part02test04.gts
part02test03.err
44
[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.4.3 Submission Output
game [-,3,4,-] [-,2,1,3] [2,-,3,4] [3,4,2,1] true
4.4.4 Solution Output
game [-,3,4,-] [-,2,1,3] [2,-,3,4] [3,4,2,1] true
4.4.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.5 part02test05 4.5.1 Diff
6c6
< true ---
> false
4.5.2 Input File
[2,6,12,5,5,9,5,1,7]. [2,1,2,1,1,2,1,1,1]. [-,-,-,1].
[-,-,2,4].
[1,-,4,3]. [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].
part02test05.diff
part02test05.gts
part02test04.output
part02test04.output
part02test04.err
45
4.5.3 Submission Output
Singleton variables: [NumCol]
4.6 part02test06 4.6.1 Diff
4.6.2 Input File
[16 ,6 ,5 ,8 ,11 ,8 ,15]. [1,2,3,1,1,1,1]. [2,-,1,3]. [1,-,4,2]. [3,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.6.3 Submission Output
game [2,-,1,3] [1,-,4,2] [3,1,-,-] [4,-,3,-] true
part02test06.diff
part02test06.gts
part02test05.output
game [-,-,-,1] [-,-,2,4] [1,-,4,3] [4,3,-,2] true
4.5.4 Solution Output
game [-,-,-,1] [-,-,2,4] [1,-,4,3] [4,3,-,2] false
4.5.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test05.output
part02test05.err
part02test06.output
46
4.6.4 Solution Output
Singleton variables: [NumCol]
4.7 part02test07 4.7.1 Diff
4.7.2 Input File
[6 ,7 ,13 ,1]. [2 ,1 ,1 ,1]. [-,4,1,-]. [3,-,2,4]. [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].
4.7.3 Submission Output
game [-,4,1,-] [3,-,2,4] [4,-,3,1] [1,3,4,2] true
4.7.4 Solution Output
game [-,4,1,-] [3,-,2,4] [4,-,3,1] [1,3,4,2] true
part02test07.diff
part02test07.gts
part02test06.output
game [2,-,1,3] [1,-,4,2] [3,1,-,-] [4,-,3,-] true
4.6.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test06.err
part02test07.output
part02test07.output
47
4.7.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.8 part02test08 4.8.1 Diff
6c6
< true ---
> false
4.8.2 Input File
[15 ,6 ,15 ,4]. [4 ,4 ,1 ,1]. [3 ,1 ,4 ,2]. [2,-,1,3]. [1,2,3,-]. [-,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].
4.8.3 Submission Output
game [3,1,4,2] [2,-,1,3] [1,2,3,-] [-,3,2,1] true
4.8.4 Solution Output
game [3,1,4,2] [2,-,1,3] [1,2,3,-] [-,3,2,1] false
4.8.5 stderr
part02test08.diff
part02test08.gts
part02test07.err
part02test08.output
part02test08.output
part02test08.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9: Singleton variables: [NumCol]
48
4.9 part02test09 4.9.1 Diff
6c6
< true ---
> false
4.9.2 Input File
[16 ,9 ,12 ,12]. [3 ,1 ,4 ,3]. [1,4,-,3].
[3 ,2 ,4 ,1].
[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].
4.9.3 Submission Output
game [1,4,-,3] [3,2,4,1] [4,1,3,2] [2,3,-,-] true
4.9.4 Solution Output
game [1,4,-,3] [3,2,4,1] [4,1,3,2] [2,3,-,-] false
4.9.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.10 part02test10 4.10.1 Diff
part02test09.diff
part02test09.gts
part02test09.output
part02test09.output
part02test09.err
part02test10.diff
49
4.10.2 Input File
Singleton variables: [NumCol]
4.11 part02test11 4.11.1 Diff
6c6
< true ---
> false
4.11.2 Input File
[11,5,2,3,6,4,5,15,11,15]. [3,1,4,3,3,3,2,3,3,3].
part02test11.diff
part02test11.gts
part02test10.gts
[14 ,9 ,4 ,8 ,11 ,13]. [4,3,4,2,1,1]. [4,3,-,-]. [2,1,4,-]. [3,4,-,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.10.3 Submission Output
game [4,3,-,-] [2,1,4,-] [3,4,-,1] [-,-,3,4] true
4.10.4 Solution Output
game [4,3,-,-] [2,1,4,-] [3,4,-,1] [-,-,3,4] true
4.10.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test10.output
part02test10.output
part02test10.err
50
[1,-,3,2]. [-,-,4,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.11.3 Submission Output
game [1,-,3,2] [-,-,4,1] [-,2,-,-] [-,1,2,3] true
4.11.4 Solution Output
game [1,-,3,2] [-,-,4,1] [-,2,-,-] [-,1,2,3] false
4.11.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.12 part02test12 4.12.1 Diff
4.12.2 Input File
[8,13,3,2,5,16,7,7,15]. [4,4,2,3,1,1,3,2,2]. [4,-,2,-].
[-,2,1,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].
part02test12.diff
part02test12.gts
part02test11.output
part02test11.output
part02test11.err
51
4.12.3 Submission Output
Singleton variables: [NumCol]
4.13 part02test13 4.13.1 Diff
6c6
< true ---
> false
4.13.2 Input File
[13 ,11 ,12 ,15 ,8]. [3,2,2,3,3]. [2,3,4,-].
[1 ,4 ,3 ,2]. [3,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.13.3 Submission Output
game [2,3,4,-]
part02test13.diff
part02test13.gts
part02test12.output
game [4,-,2,-] [-,2,1,4] [-,-,4,-] [2,-,3,-] true
4.12.4 Solution Output
game [4,-,2,-] [-,2,1,4] [-,-,4,-] [2,-,3,-] true
4.12.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test12.output
part02test12.err
part02test13.output
52
[1,4,3,2] [3,1,-,-] [4,-,-,3] true
4.13.4 Solution Output
game [2,3,4,-] [1,4,3,2] [3,1,-,-] [4,-,-,3] false
4.13.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.14 part02test14 4.14.1 Diff
6c6
< true ---
> false
4.14.2 Input File
[16 ,11 ,1 ,11 ,1]. [3,3,1,2,1]. [-,2,4,3].
[3 ,4 ,1 ,2]. [2,1,-,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.14.3 Submission Output
game [-,2,4,3] [3,4,1,2] [2,1,-,4] [4,3,2,-] true
4.14.4 Solution Output
part02test14.diff
part02test14.gts
part02test13.output
part02test13.err
part02test14.output
53
Singleton variables: [NumCol]
4.15 part02test15 4.15.1 Diff
4.15.2 Input File
[8,7,16,8,15,3,10,3,5,6]. [3,1,4,2,2,1,4,2,2,4]. [1,-,3,4].
[4,-,-,2].
[-,-,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].
4.15.3 Submission Output
game [1,-,3,4] [4,-,-,2] [-,-,2,-] [2,-,4,-] true
4.15.4 Solution Output
game [1,-,3,4] [4,-,-,2] [-,-,2,-] [2,-,4,-] true
4.15.5 stderr
part02test15.diff
part02test15.gts
part02test14.output
game [-,2,4,3] [3,4,1,2] [2,1,-,4] [4,3,2,-] false
4.14.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test14.err
part02test15.output
part02test15.output
54
part02test15.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9: Singleton variables: [NumCol]
4.16 part02test16 4.16.1 Diff
4.16.2 Input File
[16 ,5 ,6 ,5 ,1]. [3,1,3,3,3]. [-,-,3,4]. [3,-,2,1].
[1 ,2 ,4 ,3]. [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].
4.16.3 Submission Output
game [-,-,3,4] [3,-,2,1] [1,2,4,3] [4,3,1,-] true
4.16.4 Solution Output
game [-,-,3,4] [3,-,2,1] [1,2,4,3] [4,3,1,-] true
4.16.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.17 part02test17 4.17.1 Diff
part02test16.diff
part02test16.gts
part02test16.output
part02test16.output
part02test16.err
55
Singleton variables: [NumCol]
4.18 part02test18 4.18.1 Diff
4.18.2 Input File
part02test18.diff
part02test17.diff
6c6
< true ---
> false
4.17.2 Input File
[10,6,6,1,2,5,7,2,13,3,12]. [3,1,3,2,4,4,2,3,4,2,2]. [-,-,4,-].
[-,-,-,2].
[-,-,2,1]. [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].
4.17.3 Submission Output
game [-,-,4,-] [-,-,-,2] [-,-,2,1] [1,2,-,4] true
4.17.4 Solution Output
game [-,-,4,-] [-,-,-,2] [-,-,2,1] [1,2,-,4] false
4.17.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test17.gts
part02test17.output
part02test17.output
part02test17.err
56
Singleton variables: [NumCol]
4.19 part02test19 4.19.1 Diff
6c6
< true ---
> false
4.19.2 Input File
[10 ,4 ,1 ,13 ,2 ,12 ,5]. [3,4,2,4,1,1,3]. [-,-,2,-]. [-,2,-,3].
[2 ,4 ,3 ,1].
part02test19.diff
part02test19.gts
part02test18.gts
[9 ,6 ,12 ,8 ,12 ,10 ,1]. [3,2,1,2,3,2,1]. [-,1,-,4]. [2,-,-,3].
[4 ,2 ,3 ,1]. [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 [-,1,-,4] [2,-,-,3] [4,2,3,1] [1,-,-,2] true
4.18.4 Solution Output
game [-,1,-,4] [2,-,-,3] [4,2,3,1] [1,-,-,2] true
4.18.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test18.output
part02test18.output
part02test18.err
57
[-,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.19.3 Submission Output
game [-,-,2,-] [-,2,-,3] [2,4,3,1] [-,3,-,2] true
4.19.4 Solution Output
game [-,-,2,-] [-,2,-,3] [2,4,3,1] [-,3,-,2] false
4.19.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.20 part02test20 4.20.1 Diff
4.20.2 Input File
[3,13,3,2,14,5,6,3,14,7,10]. [3,4,4,4,4,3,1,3,2,1,3]. [3,-,4,-].
[-,-,-,-].
[-,-,2,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].
4.20.3 Submission Output
part02test20.diff
part02test20.gts
part02test19.output
part02test19.output
part02test19.err
58
Singleton variables: [NumCol]
4.21 part02test21 4.21.1 Diff
4.21.2 Input File
[4,8,14,6,12,2,2,16,8,4,13]. [3,4,4,1,1,4,1,2,4,3,4]. [1,4,2,-].
[-,-,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].
4.21.3 Submission Output
game [1,4,2,-] [-,-,1,-] [3,1,4,2] [-,-,-,-] true
4.21.4 Solution Output
part02test21.diff
part02test21.gts
part02test20.output
game [3,-,4,-] [-,-,-,-] [-,-,2,4] [2,4,1,3] true
4.20.4 Solution Output
game [3,-,4,-] [-,-,-,-] [-,-,2,4] [2,4,1,3] true
4.20.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test20.output
part02test20.err
part02test21.output
59
Singleton variables: [NumCol]
4.22 part02test22 4.22.1 Diff
4.22.2 Input File
[10 ,7 ,6 ,14 ,6]. [4,3,2,1,2]. [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].
4.22.3 Submission Output
game [3,1,2,4] [2,-,-,-] [4,-,3,1] [1,3,4,2] true
4.22.4 Solution Output
game [3,1,2,4] [2,-,-,-] [4,-,3,1] [1,3,4,2] true
4.22.5 stderr
part02test22.diff
part02test22.gts
part02test21.output
game [1,4,2,-] [-,-,1,-] [3,1,4,2] [-,-,-,-] true
4.21.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test21.err
part02test22.output
part02test22.output
60
part02test22.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9: Singleton variables: [NumCol]
4.23 part02test23 4.23.1 Diff
4.23.2 Input File
[6 ,8 ,12 ,10]. [2 ,1 ,3 ,2]. [1 ,2 ,3 ,4]. [4,-,-,1]. [3 ,4 ,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].
4.23.3 Submission Output
game [1,2,3,4] [4,-,-,1] [3,4,1,2] [2,-,-,3] true
4.23.4 Solution Output
game [1,2,3,4] [4,-,-,1] [3,4,1,2] [2,-,-,3] true
4.23.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.24 part02test24 4.24.1 Diff
part02test23.diff
part02test23.gts
part02test23.output
part02test23.output
part02test23.err
part02test24.diff
61
4.24.2 Input File
Singleton variables: [NumCol]
4.25 part02test25 4.25.1 Diff
4.25.2 Input File
[10,3,8,3,3,15,1,14]. [4,1,3,1,2,3,4,4]. [-,1,4,3].
[4,3,-,-].
[-,2,3,-]. [3,-,2,1].
part02test25.diff
part02test25.gts
part02test24.gts
[3 ,14 ,10 ,10 ,15 ,8 ,3 ,12 ,14]. [2,1,4,4,3,4,4,3,2].
[1 ,2 ,3 ,4].
[4,3,-,-].
[-,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,-1].
4.24.3 Submission Output
game [1,2,3,4] [4,3,-,-] [-,1,4,-] [3,-,-,1] true
4.24.4 Solution Output
game [1,2,3,4] [4,3,-,-] [-,1,4,-] [3,-,-,1] true
4.24.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test24.output
part02test24.output
part02test24.err
62
[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
game [-,1,4,3] [4,3,-,-] [-,2,3,-] [3,-,2,1] true
4.25.4 Solution Output
game [-,1,4,3] [4,3,-,-] [-,2,3,-] [3,-,2,1] true
4.25.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.26 part02test26 4.26.1 Diff
6c6
< true ---
> false
4.26.2 Input File
[7,6,13,14,15,3,4,6,7,4]. [1,1,2,4,1,3,2,1,3,2]. [2,1,4,-].
[3,-,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].
part02test26.diff
part02test26.gts
part02test25.output
part02test25.output
part02test25.err
63
4.26.3 Submission Output
Singleton variables: [NumCol]
4.27 part02test27 4.27.1 Diff
4.27.2 Input File
[2 ,12 ,7 ,15]. [4 ,3 ,3 ,2]. [1 ,4 ,2 ,3]. [-,2,1,4]. [4,-,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,-1].
4.27.3 Submission Output
game [1,4,2,3] [-,2,1,4] [4,-,3,-] [2,3,-,1] true
part02test27.diff
part02test27.gts
part02test26.output
game [2,1,4,-] [3,-,1,-] [-,-,3,-] [-,3,2,4] true
4.26.4 Solution Output
game [2,1,4,-] [3,-,1,-] [-,-,3,-] [-,3,2,4] false
4.26.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test26.output
part02test26.err
part02test27.output
64
4.27.4 Solution Output
Singleton variables: [NumCol]
4.28 part02test28 4.28.1 Diff
6c6
< true ---
> false
4.28.2 Input File
[15 ,15 ,15 ,14 ,1 ,13 ,7 ,16 ,9]. [1,1,2,1,4,2,2,4,2]. [-,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,1].
4.28.3 Submission Output
game [-,1,-,-] [2,4,3,-] [1,-,2,-] [4,2,1,-] true
4.28.4 Solution Output
game [-,1,-,-]
part02test28.diff
part02test28.gts
part02test27.output
game [1,4,2,3] [-,2,1,4] [4,-,3,-] [2,3,-,1] true
4.27.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
part02test27.err
part02test28.output
part02test28.output
65
[2,4,3,-] [1,-,2,-] [4,2,1,-] false
4.28.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.29 part02test29 4.29.1 Diff
4.29.2 Input File
[3,1,11,15,15,6,14,9,5]. [4,2,2,1,4,1,4,1,3]. [-,-,-,1].
[1,-,3,-].
[-,1,-,-]. [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.29.3 Submission Output
game [-,-,-,1] [1,-,3,-] [-,1,-,-] [3,4,1,2] true
4.29.4 Solution Output
game [-,-,-,1] [1,-,3,-] [-,1,-,-] [3,4,1,2] true
4.29.5 stderr
part02test29.diff
part02test29.gts
part02test28.err
part02test29.output
part02test29.output
part02test29.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9: Singleton variables: [NumCol]
66
1 2 3 4 5 6
4.30 part02test30 4.30.1 Diff
4.30.2 Input File
[6,15,1,3,13,3,9,11,8]. [1,1,1,3,4,1,2,3,2]. [-,2,-,-].
[1,-,2,3].
[-,1,-,-]. [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.30.3 Submission Output
game [-,2,-,-] [1,-,2,3] [-,1,-,-] [4,-,1,2] true
4.30.4 Solution Output
game [-,2,-,-] [1,-,2,3] [-,1,-,-] [4,-,1,2] true
4.30.5 stderr
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/02/csce322hw04pt02.pl:9:
Singleton variables: [NumCol]
4.31 Source Code
csce322hw04pt02.pl
ispace(X, Y, Game):- nth0(X, Game, R), nth0(Y, R, -).
getRowAndCol(Game, NumRow, NumCol):- length(Game, NumRow), nth0(0, Game, FR), length(FR, NumCol).
getNumSpace(Game, Len):- findall([X, Y], ispace(X, Y, Game), Out), length(Out, Len).
part02test30.diff
part02test30.gts
part02test30.output
part02test30.output
part02test30.err
67
7 8
9 columnsAndSpaces(Game):-
10 getNumSpace(Game, Len),
11
12 getRowAndCol(Game, _, NumCol), 13
14 AisLenmod2,
15
16 BisLenmod2,
17
18 A=B.
68
Chapter 5
csce322hw04pt03.pl
5.1 part03test01 5.1.1 Diff
5a6,9
> sequence > 5-3
> 9-1
> true
5.1.2 Input File
[5 ,9].
[2 ,4]. [2,-,-,4]. [1 ,4 ,3 ,2]. [3 ,2 ,4 ,1]. [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].
5.1.3 Submission Output
game [2,-,-,4] [1,4,3,2] [3,2,4,1] [4,1,2,3]
5.1.4 Solution Output
game [2,-,-,4] [1,4,3,2] [3,2,4,1]
part03test01.diff
part03test01.gts
part03test01.output
part03test01.output
69
[4,1,2,3] sequence 5-3
9-1
true
5.1.5 stderr
5.2 part03test02 5.2.1 Diff
5a6,10
> sequence > 1-2
> 8-3
> 15-4
> true
5.2.2 Input File
[15 ,8 ,1 ,8]. [4 ,2 ,1 ,3]. [-,1,4,3]. [3 ,4 ,1 ,2]. [1,2,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.2.3 Submission Output
game [-,1,4,3] [3,4,1,2] [1,2,3,-] [4,-,2,1]
5.2.4 Solution Output
part03test02.diff
part03test02.gts
part03test01.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test02.output
70
game [-,1,4,3] [3,4,1,2] [1,2,3,-] [4,-,2,1] sequence 1-2
8-3
15 -4
true
5.2.5 stderr
5.3 part03test03 5.3.1 Diff
5a6,11
> sequence > 1-1
> 12-2
> 13-2
> 14-3
> true
5.3.2 Input File
[13 ,1 ,14 ,12]. [2 ,2 ,1 ,2]. [-,3,4,-]. [2,4,1,-].
[4 ,2 ,3 ,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].
5.3.3 Submission Output
game [-,3,4,-]
part03test03.diff
part03test02.output
part03test02.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test03.gts
part03test03.output
71
[2,4,1,-] [4,2,3,1] [3,1,-,4]
5.3.4 Solution Output
game [-,3,4,-] [2,4,1,-] [4,2,3,1] [3,1,-,4] sequence 1-1
12 -2
13 -2
14 -3
true
5.3.5 stderr
part03test03.output
5.4 part03test04 5.4.1 Diff
5a6,13
> sequence > 2-2
> 5-3
> 7-1
> 10-3
> 15-3
> 16-4
> true
5.4.2 Input File
[2 ,2 ,16 ,5 ,15 ,16 ,7 ,10]. [2,1,2,4,4,3,1,3]. [1,-,4,2].
[-,4,-,1].
[4,-,2,-]. [3,2,1,-]. [1,1,-1,-1]. [1,-1,-1,1]. [-1,1,-1,1]. [1,1,-1].
part03test04.diff
part03test03.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test04.gts
72
[1,-1,-1]. [-1,1,1]. [-1,-1,1].
5.4.3 Submission Output
game [1,-,4,2] [-,4,-,1] [4,-,2,-] [3,2,1,-]
5.4.4 Solution Output
game [1,-,4,2] [-,4,-,1] [4,-,2,-] [3,2,1,-] sequence 2-2
5-3
7-1
10 -3
15 -3
16 -4
true
5.4.5 stderr
part03test04.output
part03test04.output
part03test04.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.5 part03test05 5.5.1 Diff
5a6,10
> sequence > 2-3
> 5-4
> 8-3
> true
5.5.2 Input File
[5 ,2 ,8 ,5]. [3 ,1 ,2 ,2].
part03test05.diff
part03test05.gts
73
[2,-,1,3]. [-,1,4,2]. [4 ,2 ,3 ,1]. [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.5.3 Submission Output
game [2,-,1,3] [-,1,4,2] [4,2,3,1] [1,-,2,4]
5.5.4 Solution Output
game [2,-,1,3] [-,1,4,2] [4,2,3,1] [1,-,2,4] sequence 2-3
5-4
8-3
true
5.5.5 stderr
part03test05.output
part03test05.output
part03test05.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.6 part03test06 5.6.1 Diff
5a6,11
> sequence > 3-4
> 6-3
> 8-1
> 10-4
> true
part03test06.diff
74
5.6.2 Input File
[6 ,10 ,8 ,3]. [3 ,3 ,4 ,2]. [2 ,4 ,3 ,1]. [1,-,-,2]. [-,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].
5.6.3 Submission Output
game [2,4,3,1] [1,-,-,2] [-,2,1,3] [3,-,2,4]
5.6.4 Solution Output
game [2,4,3,1] [1,-,-,2] [-,2,1,3] [3,-,2,4] sequence 3-4
6-3
8-1
10 -4
true
5.6.5 stderr
part03test06.output
part03test06.output
part03test06.gts
part03test06.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.7 part03test07 5.7.1 Diff
5a6,13
part03test07.diff
75
> sequence > 1-1
> 4-3
> 8-1
> 10-1 > 13-4 > 16-2 > true
5.7.2 Input File
[13 ,8 ,1 ,13 ,10 ,16 ,4]. [3,3,1,2,1,3,3]. [-,3,2,-]. [2,4,-,3].
[4 ,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].
5.7.3 Submission Output
game [-,3,2,-] [2,4,-,3] [4,2,3,1] [-,-,4,-]
5.7.4 Solution Output
game [-,3,2,-] [2,4,-,3] [4,2,3,1] [-,-,4,-] sequence 1-1
4-3
8-1
10 -1
13 -4
16 -2
true
5.7.5 stderr
part03test07.gts
part03test07.output
part03test07.output
part03test07.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102:
76
Singleton variables: [Game,Vertical,Horizontal] ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.8 part03test08 5.8.1 Diff
5a6,10
> sequence > 6-2
> 9-4
> 11-2
> true
5.8.2 Input File
[6 ,11 ,9].
[4 ,3 ,1]. [1,3,-,2]. [4,-,1,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].
5.8.3 Submission Output
game [1,3,-,2] [4,-,1,3] [3,4,-,1] [2,1,3,4]
5.8.4 Solution Output
game [1,3,-,2] [4,-,1,3] [3,4,-,1] [2,1,3,4] sequence 6-2
9-4
11 -2
true
5.8.5 stderr
part03test08.diff
part03test08.gts
part03test08.output
part03test08.output
77
part03test08.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.9 part03test09 5.9.1 Diff
5a6,14
> sequence > 4-2
> 5-4
> 6-2
> 12-3
> 13-3
> 14-1
> 15-2
> true
5.9.2 Input File
[14 ,6 ,15 ,4 ,13 ,4 ,12 ,5]. [3,2,3,4,4,1,1,4]. [1,-,2,-].
[3,-,4,-].
[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].
5.9.3 Submission Output
game [1,-,2,-] [3,-,4,-] [4,3,1,-] [-,1,-,4]
5.9.4 Solution Output
game [1,-,2,-] [3,-,4,-] [4,3,1,-]
part03test09.diff
part03test09.gts
part03test09.output
part03test09.output
78
[-,1,-,4] sequence 4-2
5-4
6-2 12 -3 13 -3 14 -1 15 -2 true
5.9.5 stderr
5.10 part03test10 5.10.1 Diff
5a6,10
> sequence > 9-2
> 14-4
> 16-2
> true
5.10.2 Input File
[14 ,16 ,16 ,9]. [1 ,1 ,4 ,4]. [4,1,-,3]. [3,2,1,-].
[2 ,4 ,3 ,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].
5.10.3 Submission Output
game [4,1,-,3] [3,2,1,-] [2,4,3,1] [1,3,4,-]
part03test10.diff
part03test10.gts
part03test09.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test10.output
79
5.10.4 Solution Output
game [4,1,-,3] [3,2,1,-] [2,4,3,1] [1,3,4,-] sequence 9-2
14 -4
16 -2
true
5.10.5 stderr
part03test10.output
part03test10.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.11 part03test11 5.11.1 Diff
5a6,11
> sequence > 1-4
> 12-4
> 13-3
> 15-2
> true
5.11.2 Input File
[12 ,15 ,13 ,1]. [3 ,1 ,2 ,3]. [-,1,2,-].
[3 ,2 ,1 ,4]. [1,4,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,-1].
5.11.3 Submission Output
part03test11.diff
part03test11.gts
80
game [-,1,2,-] [3,2,1,4] [1,4,3,-] [2,3,-,1]
5.11.4 Solution Output
game [-,1,2,-] [3,2,1,4] [1,4,3,-] [2,3,-,1] sequence 1-4
12 -4
13 -3
15 -2
true
5.11.5 stderr
part03test11.output
part03test11.output
part03test11.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.12 part03test12 5.12.1 Diff
5a6,10
> sequence > 5-1
> 13-2
> 15-3
> true
5.12.2 Input File
[13 ,5 ,15 ,5]. [2 ,1 ,1 ,1]. [4,-,3,-].
[2 ,3 ,1 ,4]. [1,2,4,-].
[3 ,4 ,2 ,1]. [-1,1,-1,1]. [-1,-1,1,-1]. [1,1,-1,-1]. [-1,1,-1].
part03test12.diff
part03test12.gts
81
[1,-1,1]. [1,1,-1]. [1,-1,-1].
5.12.3 Submission Output
game [4,-,3,-] [2,3,1,4] [1,2,4,-] [3,4,2,1]
5.12.4 Solution Output
game [4,-,3,-] [2,3,1,4] [1,2,4,-] [3,4,2,1] sequence 5-1
13 -2
15 -3
true
5.12.5 stderr
part03test12.output
part03test12.output
part03test12.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.13 part03test13 5.13.1 Diff
5a6,10
> sequence > 4-2
> 9-1
> 12-3
> true
5.13.2 Input File
[12 ,4 ,9]. [3 ,4 ,4]. [4,3,-,2]. [1 ,2 ,4 ,3]. [3 ,1 ,2 ,4].
part03test13.diff
part03test13.gts
82
[-,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.13.3 Submission Output
game [4,3,-,2] [1,2,4,3] [3,1,2,4] [-,4,-,1]
5.13.4 Solution Output
game [4,3,-,2] [1,2,4,3] [3,1,2,4] [-,4,-,1] sequence 4-2
9-1
12 -3
true
5.13.5 stderr
part03test13.output
part03test13.output
part03test13.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.14 part03test14 5.14.1 Diff
5a6,12
> sequence > 3-3
> 5-4
> 7-1
> 14-1
> 15-4
> true
5.14.2 Input File
part03test14.diff
83
[5 ,7 ,3 ,15 ,14]. [2,1,2,1,4]. [1,-,3,2]. [2,3,4,-]. [-,-,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].
5.14.3 Submission Output
game [1,-,3,2] [2,3,4,-] [-,-,2,-] [4,2,1,3]
5.14.4 Solution Output
game [1,-,3,2] [2,3,4,-] [-,-,2,-] [4,2,1,3] sequence 3-3
5-4
7-1
14 -1
15 -4
true
5.14.5 stderr
part03test14.output
part03test14.output
part03test14.gts
part03test14.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.15 part03test15 5.15.1 Diff
5a6,8
> sequence
part03test15.diff
84
> 3-4 > true
5.15.2 Input File
[3].
[2].
[3 ,1 ,2 ,4].
[2 ,4 ,1 ,3]. [-,2,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].
5.15.3 Submission Output
game [3,1,2,4] [2,4,1,3] [-,2,3,1] [1,3,4,2]
5.15.4 Solution Output
game [3,1,2,4] [2,4,1,3] [-,2,3,1] [1,3,4,2] sequence 3-4
true
5.15.5 stderr
part03test15.gts
5.16 part03test16 5.16.1 Diff
5a6,11
part03test15.output
part03test15.output
part03test15.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test16.diff
85
> sequence > 2-2
> 4-4
> 8-2
> 9-2 > true
5.16.2 Input File
[9 ,4 ,8 ,2]. [4 ,3 ,1 ,2]. [1,3,-,4]. [-,4,3,1]. [3 ,1 ,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].
5.16.3 Submission Output
game [1,3,-,4] [-,4,3,1] [3,1,4,2] [-,-,1,3]
5.16.4 Solution Output
game [1,3,-,4] [-,4,3,1] [3,1,4,2] [-,-,1,3] sequence 2-2
4-4
8-2
9-2
true
5.16.5 stderr
part03test16.gts
part03test16.output
part03test16.output
part03test16.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
86
5.17 part03test17 5.17.1 Diff
5a6,12
> sequence > 2-4
> 4-3
> 7-4
> 10-1
> 11-3
> true
5.17.2 Input File
[2,4,7,7,11,4,10]. [4,2,2,4,1,1,1]. [1 ,3 ,4 ,2]. [-,2,-,3]. [2,-,-,1]. [-,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.17.3 Submission Output
game [1,3,4,2] [-,2,-,3] [2,-,-,1] [-,1,2,4]
5.17.4 Solution Output
game [1,3,4,2] [-,2,-,3] [2,-,-,1] [-,1,2,4] sequence 2-4
4-3
7-4
10 -1
11 -3
true
5.17.5 stderr
part03test17.diff
part03test17.gts
part03test17.output
part03test17.output
87
part03test17.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.18 part03test18 5.18.1 Diff
5a6,10
> sequence > 1-4
> 3-3
> 9-1
> true
5.18.2 Input File
[3 ,1 ,9].
[4 ,2 ,4]. [-,3,-,2]. [1 ,2 ,4 ,3]. [-,4,2,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].
5.18.3 Submission Output
game [-,3,-,2] [1,2,4,3] [-,4,2,1] [2,1,3,4]
5.18.4 Solution Output
game [-,3,-,2] [1,2,4,3] [-,4,2,1] [2,1,3,4] sequence 1-4
3-3
part03test18.diff
part03test18.gts
part03test18.output
part03test18.output
88
9-1 true
5.18.5 stderr
5.19 part03test19 5.19.1 Diff
5a6,10
> sequence > 4-4
> 8-2
> 11-4
> true
5.19.2 Input File
[8 ,8 ,11 ,4]. [3 ,4 ,4 ,1]. [2 ,1 ,3 ,4]. [3 ,4 ,2 ,1]. [1,3,-,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.19.3 Submission Output
game [2,1,3,4] [3,4,2,1] [1,3,-,2] [-,-,1,3]
5.19.4 Solution Output
game [2,1,3,4] [3,4,2,1]
part03test19.diff
part03test19.gts
part03test18.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test19.output
part03test19.output
89
[1,3,-,2] [-,-,1,3] sequence 4-4
8-2 11 -4 true
5.19.5 stderr
5.20 part03test20 5.20.1 Diff
5a6,9
> sequence > 1-3
> 12-3
> true
5.20.2 Input File
[12 ,1].
[4 ,4]. [-,1,2,4]. [4 ,2 ,1 ,3]. [2 ,3 ,4 ,1]. [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.20.3 Submission Output
game [-,1,2,4] [4,2,1,3] [2,3,4,1] [1,4,-,2]
5.20.4 Solution Output
part03test20.diff
part03test20.gts
part03test19.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test20.output
90
game [-,1,2,4] [4,2,1,3] [2,3,4,1] [1,4,-,2] sequence 1-3
12 -3
true
5.20.5 stderr
part03test20.output
part03test20.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.21 part03test21 5.21.1 Diff
5a6,8
> sequence > 4-1
> true
5.21.2 Input File
[4].
[1].
[2 ,3 ,4 ,1]. [4 ,1 ,3 ,2]. [3 ,2 ,1 ,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].
5.21.3 Submission Output
game [2,3,4,1] [4,1,3,2] [3,2,1,4] [-,4,2,3]
part03test21.diff
part03test21.gts
part03test21.output
91
5.21.4 Solution Output
game [2,3,4,1] [4,1,3,2] [3,2,1,4] [-,4,2,3] sequence 4-1
true
5.21.5 stderr
5.22 part03test22 5.22.1 Diff
5a6,12
> sequence > 2-4
> 5-1
> 8-4
> 15-4
> 16-2
> true
5.22.2 Input File
[5 ,15 ,8 ,16 ,2]. [3,1,1,3,3]. [2,-,4,3]. [-,3,2,1]. [3,2,1,-]. [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.22.3 Submission Output
part03test22.diff
game
part03test21.output
part03test21.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test22.gts
part03test22.output
92
[2,-,4,3] [-,3,2,1] [3,2,1,-] [1,-,3,-]
5.22.4 Solution Output
game [2,-,4,3] [-,3,2,1] [3,2,1,-] [1,-,3,-] sequence 2-4
5-1
8-4
15 -4
16 -2
true
5.22.5 stderr
part03test22.output
5.23 part03test23 5.23.1 Diff
5a6,12
> sequence > 1-3
> 5-4
> 9-1
> 12-2
> 14-4
> true
5.23.2 Input File
[1 ,12 ,5 ,14 ,9]. [4,2,4,3,3]. [-,-,-,2]. [1,2,3,-].
[2 ,1 ,4 ,3]. [4,3,-,1]. [-1,-1,1,1]. [1,-1,1,-1]. [1,1,-1,-1].
part03test23.diff
part03test22.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test23.gts
93
[1,-1,1]. [1 ,1 ,1]. [-1,1,-1]. [-1,-1,-1].
5.23.3 Submission Output
game [-,-,-,2] [1,2,3,-] [2,1,4,3] [4,3,-,1]
5.23.4 Solution Output
game [-,-,-,2] [1,2,3,-] [2,1,4,3] [4,3,-,1] sequence 1-3
5-4
9-1
12 -2
14 -4
true
5.23.5 stderr
part03test23.output
part03test23.output
part03test23.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.24 part03test24 5.24.1 Diff
5a6,9
> sequence > 12-2
> 16-4
> true
5.24.2 Input File
[12 ,16 ,16 ,12]. [1 ,2 ,2 ,3].
[1 ,3 ,4 ,2].
part03test24.diff
part03test24.gts
94
[4 ,2 ,1 ,3]. [2 ,4 ,3 ,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].
5.24.3 Submission Output
game [1,3,4,2] [4,2,1,3] [2,4,3,1] [3,1,-,-]
5.24.4 Solution Output
game [1,3,4,2] [4,2,1,3] [2,4,3,1] [3,1,-,-] sequence 12 -2
16 -4
true
5.24.5 stderr
part03test24.output
part03test24.output
part03test24.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.25 part03test25 5.25.1 Diff
5a6,11
> sequence > 1-2
> 7-3
> 8-2
> 9-1
> true
5.25.2 Input File
part03test25.diff
95
[1 ,9 ,8 ,7]. [1 ,2 ,1 ,1]. [-,4,-,3]. [3 ,1 ,4 ,2]. [4,-,2,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].
5.25.3 Submission Output
game [-,4,-,3] [3,1,4,2] [4,-,2,1] [1,-,3,4]
5.25.4 Solution Output
game [-,4,-,3] [3,1,4,2] [4,-,2,1] [1,-,3,4] sequence 1-2
7-3
8-2
9-1
true
5.25.5 stderr
part03test25.output
part03test25.output
part03test25.gts
part03test25.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.26 part03test26 5.26.1 Diff
5a6,11
> sequence > 1-4
part03test26.diff
96
> 5-2 > 10-2 > 16-3 > true
5.26.2 Input File
[5 ,1 ,10 ,16 ,16]. [2,4,3,4,2]. [-,-,3,1]. [1,3,-,4].
[3 ,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,1].
5.26.3 Submission Output
game [-,-,3,1] [1,3,-,4] [3,1,4,2] [2,4,1,-]
5.26.4 Solution Output
game [-,-,3,1] [1,3,-,4] [3,1,4,2] [2,4,1,-] sequence 1-4
5-2
10 -2
16 -3
true
5.26.5 stderr
part03test26.gts
part03test26.output
part03test26.output
part03test26.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.27 part03test27 5.27.1 Diff
97
5a6,12
> sequence > 5-2
> 9-4
> 12-1
> 13-1
> 16-4
> true
5.27.2 Input File
[9 ,9 ,13 ,5 ,12 ,16]. [1,2,1,2,4,4]. [3,-,-,-].
[4 ,1 ,3 ,2].
[1 ,4 ,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.27.3 Submission Output
game [3,-,-,-] [4,1,3,2] [1,4,2,3] [2,3,-,-]
5.27.4 Solution Output
game [3,-,-,-] [4,1,3,2] [1,4,2,3] [2,3,-,-] sequence 5-2
9-4
12 -1
13 -1
16 -4
true
5.27.5 stderr
part03test27.gts
part03test27.diff
part03test27.output
part03test27.output
part03test27.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
98
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.28 part03test28 5.28.1 Diff
5a6,10
> sequence > 3-1
> 11-2
> 15-4
> true
5.28.2 Input File
[15 ,3 ,11 ,3]. [3 ,3 ,1 ,3]. [4 ,1 ,3 ,2]. [3 ,2 ,4 ,1]. [-,3,-,-]. [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.28.3 Submission Output
game [4,1,3,2] [3,2,4,1] [-,3,-,-] [2,4,1,3]
5.28.4 Solution Output
game [4,1,3,2] [3,2,4,1] [-,3,-,-] [2,4,1,3] sequence 3-1
11 -2
15 -4
true
5.28.5 stderr
part03test28.diff
part03test28.gts
part03test28.output
part03test28.output
99
part03test28.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.29 part03test29 5.29.1 Diff
5a6,13
> sequence > 2-3
> 4-4
> 8-3
> 9-3
> 12-2
> 13-4
> true
5.29.2 Input File
[13,9,8,13,12,4,8,2]. [4,3,3,2,3,2,3,2]. [1,2,-,-].
[-,4,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,-1].
5.29.3 Submission Output
game [1,2,-,-] [-,4,1,2] [2,1,4,3] [-,-,-,1]
5.29.4 Solution Output
game [1,2,-,-] [-,4,1,2] [2,1,4,3] [-,-,-,1]
part03test29.diff
part03test29.gts
part03test29.output
part03test29.output
100
sequence 2-3
4-4
8-3
9-3 12 -2 13 -4 true
5.29.5 stderr
5.30 part03test30 5.30.1 Diff
5a6,8
> sequence > 11-2
> true
5.30.2 Input File
[11].
[4].
[1 ,4 ,3 ,2]. [2 ,3 ,4 ,1]. [3,1,-,4]. [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].
5.30.3 Submission Output
game [1,4,3,2] [2,3,4,1] [3,1,-,4] [4,2,1,3]
5.30.4 Solution Output
part03test30.diff
part03test30.gts
part03test29.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test30.output
101
game [1,4,3,2] [2,3,4,1] [3,1,-,4] [4,2,1,3] sequence 11 -2
true
5.30.5 stderr
5.31 part03test31 5.31.1 Diff
5a6,13
> sequence > 3-3
> 4-2
> 5-2
> 6-3
> 12-3
> 16-4
> true
5.31.2 Input File
[4 ,3 ,12 ,5 ,6 ,16]. [2,3,3,1,4,4]. [1,-,4,3]. [4,-,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,1,1].
5.31.3 Submission Output
game [1,-,4,3]
part03test31.diff
part03test30.output
part03test30.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test31.gts
part03test31.output
102
[4,-,1,2] [-,4,2,1] [-,1,-,-]
5.31.4 Solution Output
game [1,-,4,3] [4,-,1,2] [-,4,2,1] [-,1,-,-] sequence 3-3
4-2
5-2
6-3
12 -3
16 -4
true
5.31.5 stderr
part03test31.output
5.32 part03test32 5.32.1 Diff
5a6,11
> sequence > 1-1
> 5-4
> 6-2
> 15-4
> true
5.32.2 Input File
[15 ,5 ,6 ,1 ,5]. [1,1,3,3,3]. [-,-,3,2]. [3,-,4,1]. [2,3,1,-].
[4 ,1 ,2 ,3]. [1,-1,1,-1]. [-1,1,-1,1]. [1,-1,1,-1]. [1,-1,-1].
part03test32.diff
part03test31.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test32.gts
103
[-1,1,-1]. [1,-1,1]. [-1,1,1].
5.32.3 Submission Output
game [-,-,3,2] [3,-,4,1] [2,3,1,-] [4,1,2,3]
5.32.4 Solution Output
game [-,-,3,2] [3,-,4,1] [2,3,1,-] [4,1,2,3] sequence 1-1
5-4
6-2
15 -4
true
5.32.5 stderr
part03test32.output
part03test32.output
part03test32.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.33 part03test33 5.33.1 Diff
5a6,10
> sequence > 2-3
> 3-1
> 15-3
> true
5.33.2 Input File
[3 ,15 ,3 ,2]. [1 ,1 ,1 ,3]. [2 ,4 ,3 ,1]. [-,1,2,4].
part03test33.diff
part03test33.gts
104
[-,2,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].
5.33.3 Submission Output
game [2,4,3,1] [-,1,2,4] [-,2,4,-] [4,3,1,2]
5.33.4 Solution Output
game [2,4,3,1] [-,1,2,4] [-,2,4,-] [4,3,1,2] sequence 2-3
3-1
15 -3
true
5.33.5 stderr
part03test33.output
part03test33.output
part03test33.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.34 part03test34 5.34.1 Diff
5a6,10
> sequence > 8-2
> 11-2
> 12-3
> true
5.34.2 Input File
part03test34.diff
105
[8 ,11 ,12].
[4 ,2 ,4].
[2 ,4 ,1 ,3].
[1 ,3 ,4 ,2]. [3,1,-,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
game [2,4,1,3] [1,3,4,2] [3,1,-,4] [4,-,-,1]
5.34.4 Solution Output
game [2,4,1,3] [1,3,4,2] [3,1,-,4] [4,-,-,1] sequence 8-2
11 -2
12 -3
true
5.34.5 stderr
part03test34.output
part03test34.output
part03test34.gts
part03test34.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.35 part03test35 5.35.1 Diff
5a6,12
> sequence > 1-3
> 3-2
part03test35.diff
106
> 9-1 > 10-3 > 14-2 > true
5.35.2 Input File
[1,14,10,9,9,14,3,1]. [1,3,3,1,4,2,3,3]. [-,2,-,4].
[4,1,-,-].
[-,3,4,1]. [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].
5.35.3 Submission Output
game [-,2,-,4] [4,1,-,-] [-,3,4,1] [1,4,2,3]
5.35.4 Solution Output
game [-,2,-,4] [4,1,-,-] [-,3,4,1] [1,4,2,3] sequence 1-3
3-2
9-1
10 -3
14 -2
true
5.35.5 stderr
part03test35.gts
part03test35.output
part03test35.output
part03test35.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
107
5.36 part03test36 5.36.1 Diff
5a6,11
> sequence > 5-3
> 13-4
> 15-2
> 16-3
> true
5.36.2 Input File
[15 ,16 ,5 ,13 ,13 ,16 ,5]. [1,2,1,3,3,2,4]. [1,-,2,-].
[4 ,2 ,3 ,1].
[3,1,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,1].
5.36.3 Submission Output
game [1,-,2,-] [4,2,3,1] [3,1,4,-] [2,4,1,-]
5.36.4 Solution Output
game [1,-,2,-] [4,2,3,1] [3,1,4,-] [2,4,1,-] sequence 5-3
13 -4
15 -2
16 -3
true
5.36.5 stderr
part03test36.diff
part03test36.gts
part03test36.output
part03test36.output
part03test36.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
108
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.37 part03test37 5.37.1 Diff
5a6,9
> sequence > 1-1
> 15-4
> true
5.37.2 Input File
[1 ,15].
[1 ,1]. [-,3,4,2]. [2 ,4 ,3 ,1]. [3,1,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].
5.37.3 Submission Output
game [-,3,4,2] [2,4,3,1] [3,1,2,-] [4,2,1,3]
5.37.4 Solution Output
game [-,3,4,2] [2,4,3,1] [3,1,2,-] [4,2,1,3] sequence 1-1
15 -4
true
5.37.5 stderr
part03test37.diff
part03test37.gts
part03test37.output
part03test37.output
109
part03test37.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.38 part03test38 5.38.1 Diff
5a6,8
> sequence > 10-3
> true
5.38.2 Input File
[10].
[3].
[3 ,2 ,4 ,1]. [1,4,-,2]. [4 ,1 ,2 ,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].
5.38.3 Submission Output
game [3,2,4,1] [1,4,-,2] [4,1,2,3] [2,3,1,4]
5.38.4 Solution Output
game [3,2,4,1] [1,4,-,2] [4,1,2,3] [2,3,1,4] sequence 10 -3
true
5.38.5 stderr
part03test38.diff
part03test38.gts
part03test38.output
part03test38.output
110
part03test38.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.39 part03test39 5.39.1 Diff
5a6,11
> sequence > 3-2
> 4-1
> 5-1
> 6-2
> true
5.39.2 Input File
[4 ,3 ,6 ,5]. [3 ,3 ,4 ,2]. [4,-,3,2]. [3,-,1,4]. [-,3,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].
5.39.3 Submission Output
game [4,-,3,2] [3,-,1,4] [-,3,4,1] [-,4,2,3]
5.39.4 Solution Output
game [4,-,3,2] [3,-,1,4] [-,3,4,1] [-,4,2,3] sequence 3-2
part03test39.diff
part03test39.gts
part03test39.output
part03test39.output
111
4-1 5-1 6-2 true
5.39.5 stderr
5.40 part03test40 5.40.1 Diff
5a6,12
> sequence > 2-1
> 3-3
> 6-3
> 9-1
> 15-1
> true
5.40.2 Input File
[3,9,6,15,9,2]. [1,2,3,3,3,4]. [2,4,-,3]. [-,-,2,4]. [-,2,4,-].
[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].
5.40.3 Submission Output
game [2,4,-,3] [-,-,2,4] [-,2,4,-] [4,1,3,2]
5.40.4 Solution Output
part03test40.diff
part03test39.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
part03test40.gts
part03test40.output
112
1 2 3 4 5 6 7 8 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:14: Singleton variables: [X]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:89: Singleton variables: [NumCol]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/03/csce322hw04pt03.pl:102: Singleton variables: [Game,Vertical,Horizontal]
ERROR: Prolog initialisation failed:
ERROR: getV/5: Undefined procedure: read_term_from_atom/3
5.41 Source Code
csce322hw04pt03.pl
ispace(X, Y, Game):- nth0(X, Game, R), nth0(Y, R, -).
game [2,4,-,3] [-,-,2,4] [-,2,4,-] [4,1,3,2] sequence 2-1
3-3
6-3
9-1
15 -1
true
5.40.5 stderr
getSpace(Game, Out):- findall([Y, X], ispace(X, Y,
getRowAndCol(Game, NumRow, NumCol):- length(Game, nth0(0, Game, FR), length(FR, NumCol).
hasEle(Game, X, Y, E):- nth0(X, Game, R), nth0(Y,
Game), Out2), sort(Out2, Out). NumRow),
R, E).
getColumn(Game, Y, Col):- findall(E, hasEle(Game, X, Y, E), Col).
changeElement(Game, X, Y, E, NG):-
nth0(X, Game, R), changeElementOfOneDimentionList(Y, E, R, NR),
changeElementOfOneDimentionList(X, NR, Game, NG). getElement(Game, X, Y, E):- nth0(X, Game, R), nth0(Y, R, E).
invalid(1, A, B):- A >= B.
invalid(-1, A, B):- A =< B.
invalidHo(Game, Vertical, X, Y, E):- T is X - 1,
getElement(Vertical , T, Y, VE1),
part03test40.output
part03test40.err
113
31
32 getElement(Game, T, Y, A), 33
34 A \= -,
35
36 invalid(VE1, A, E).
37
38 invalidHo(Game, Vertical, X, Y, E):-
39 T is X + 1,
40 getElement(Vertical , X, Y,
41 getElement(Game, T, Y, B),
42 B \= -,
43 invalid(VE1, E, B).
44 45
46 invalidV(Game, Vertical, X, Y, E):-
47 T is Y - 1,
48 getElement(Vertical , X, T,
49 getElement(Game, X, T, A),
50 A \= -,
51 invalid(VE1, A, E).
52
53 invalidV(Game, Vertical, X,
54 T is Y + 1,
55 getElement(Vertical , X, Y,
56 getElement(Game, X, T, B),
57 B \= -,
58 invalid(VE1, E, B).
59
60
61
62
63
64
65 writeOne(Game, Vertical, Horizontal, X, Y, E):-
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85 %%
86 %%
87 %%
88
between(1, 9, E), nth0(X, Game , Row),
getColumn(Game, Y, Col),
\+member(E, Row),
\+member(E, Col),
\+invalidHo(Game, Vertical, X, Y, E),
\+invalidV(Game, Horizontal, X, Y, E).
changeOne(Game, Vertical, Horizontal, X, Y, NG):- writeOne(Game, Vertical, Horizontal, X, Y, E), changeElement(Game, X, Y, E, NG).
89 getV(Game , X, Y, E, Fn):-
90 getRowAndCol(Game, NumRow, NumCol),
VE1),
VE1),
Y, E):- VE1),
114
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130 131 132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
L is NumRow * Y + X + 1, atom_concat(L, -, T), atom_concat(T, E, F), read_term_from_atom(F, Fn, []).
changeAll(Game, Vertical, Horizontal, [], Seq, Seq):- !. changeAll(Game, Vertical, Horizontal, [[Y, X] | T], Seq, Fn):-
writeOne(Game, Vertical, Horizontal, X, Y, E),
changeElement(Game, X, Y, E, NG), getV(Game , X, Y, E, F),
changeAll(NG, Vertical ,
Horizontal , T,
[F|Seq], Fn).
changeAll(Game, Vertical, Horizontal, Fn):-
getSpace(Game, Space),
changeAll(Game, Vertical, Horizontal, Space, [], Fn), !.
solveGame(Game,Horizontal,Vertical,SpacesAndValues):- changeAll(Game, Vertical, Horizontal, T),
reverse(T, SpacesAndValues).
mytest(X, Y, E, NG):- changeElement([[3, 2, 1, -], [-, 4, -, -], [-, 1, -, -], [-, -, -, 1]], X, Y, E, NG).
mytest2(X, Y, E):-
invalidHo([[3, 2, 1, -], [-, 4, -, -], [-, 1, -, -], [-, -, -, 1]], [[-1, 1, 1,
-1], [1, -1, -1, 1], [-1, 1, 1, -1]], X, Y, E).
%% mytest3(Fn):- changeAll() mytest3(X, Y, E):-
readGreaterThanSudokuFile('part01test01.gts',_,_,Game,Vertical,Horizontal), writeOne(Game, Vertical, Horizontal, X, Y, E).
appendList([],L,L).
appendList([X|L1],L2,[X|L3]) :- appendList(L1,L2,L3).
tailList(0,L,L2):- L=L2.
tailList(Ith,[_|W],L2) :- K is Ith-1, tailList(K,W,L2).
115
149
150
151
152
153
154
155
156
157
headList(Ith,L,L2) :- tailList(Ith,L,L3), appendList(L2,L3,L).
changeElementOfOneDimentionList(Ith,Element,L1,L2) :- K is Ith+1, headList(Ith,L1,L3),
appendList(L3,[Element],L4), tailList(K,L1,L5), appendList(L4,L5,L2).
116
Chapter 6
csce322hw04pt04.pl
6.1 part04test01 6.1.1 Diff
6.1.2 Input File
[1].
[1].
[3 ,4 ,3 ,2]. [2 ,3 ,1 ,4]. [4 ,1 ,2 ,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,-1].
6.1.3 Submission Output
game [3,4,3,2] [2,3,1,4] [4,1,2,3] [3,2,4,1] false
6.1.4 Solution Output
game [3,4,3,2] [2,3,1,4] [4,1,2,3] [3,2,4,1] false
6.1.5 stderr
part04test01.diff
part04test01.gts
part04test01.output
part04test01.output
117
part04test01.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.2 part04test02 6.2.1 Diff
6.2.2 Input File
[2].
[3].
[1 ,2 ,3 ,4]. [4 ,3 ,2 ,1]. [3 ,4 ,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.2.3 Submission Output
game [1,2,3,4] [4,3,2,1] [3,4,1,2] [2,1,4,3] true
6.2.4 Solution Output
game [1,2,3,4] [4,3,2,1] [3,4,1,2] [2,1,4,3] true
6.2.5 stderr
part04test02.diff
part04test02.gts
part04test02.output
part04test02.output
part04test02.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44:
118
Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48:
Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54:
Singleton variables: [Horizontal ,Vertical]
6.3 part04test03 6.3.1 Diff
6.3.2 Input File
[1].
[2].
[1 ,2 ,3 ,1].
[3 ,1 ,2 ,4].
[2 ,4 ,1 ,3].
[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].
6.3.3 Submission Output
game [1,2,3,1] [3,1,2,4] [2,4,1,3] [1,3,4,2] false
6.3.4 Solution Output
game [1,2,3,1] [3,1,2,4] [2,4,1,3] [1,3,4,2] false
6.3.5 stderr
part04test03.diff
part04test03.gts
part04test03.output
part04test03.output
part04test03.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
119
6.4 part04test04 6.4.1 Diff
6,9d5
< [-1,-1,-1] < [-1,1,-1] < [1,-1,1]
< [1 ,1 ,1]
6.4.2 Input File
[2].
[4].
[4 ,3 ,2 ,1]. [1 ,1 ,4 ,3]. [3 ,4 ,1 ,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].
6.4.3 Submission Output
game [4,3,2,1] [1,1,4,3] [3,4,1,2] [1,2,3,4] [-1,-1,-1] [-1,1,-1] [1,-1,1] [1 ,1 ,1] false
6.4.4 Solution Output
game [4,3,2,1] [1,1,4,3] [3,4,1,2] [1,2,3,4] false
6.4.5 stderr
part04test04.diff
part04test04.gts
part04test04.output
part04test04.output
part04test04.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
120
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.5 part04test05 6.5.1 Diff
6.5.2 Input File
[2].
[4].
[2 ,3 ,1 ,4]. [4 ,1 ,3 ,2]. [1 ,2 ,4 ,3]. [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.5.3 Submission Output
game [2,3,1,4] [4,1,3,2] [1,2,4,3] [3,4,2,1] true
6.5.4 Solution Output
game [2,3,1,4] [4,1,3,2] [1,2,4,3] [3,4,2,1] true
6.5.5 stderr
part04test05.diff
part04test05.gts
part04test05.output
part04test05.output
part04test05.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
121
6.6 part04test06 6.6.1 Diff
6.6.2 Input File
[1].
[3].
[1 ,2 ,3 ,4]. [4 ,3 ,1 ,2]. [2 ,1 ,4 ,3]. [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.6.3 Submission Output
game [1,2,3,4] [4,3,1,2] [2,1,4,3] [3,4,2,1] true
6.6.4 Solution Output
game [1,2,3,4] [4,3,1,2] [2,1,4,3] [3,4,2,1] true
6.6.5 stderr
part04test06.diff
part04test06.gts
part04test06.output
part04test06.output
part04test06.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.7 part04test07 6.7.1 Diff
122
6.7.2 Input File
[1].
[4].
[4 ,1 ,2 ,4]. [2 ,4 ,3 ,1]. [1 ,2 ,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.7.3 Submission Output
game [4,1,2,4] [2,4,3,1] [1,2,4,3] [4,3,1,2] false
6.7.4 Solution Output
game [4,1,2,4] [2,4,3,1] [1,2,4,3] [4,3,1,2] false
6.7.5 stderr
part04test07.output
part04test07.output
part04test07.err
part04test07.diff
part04test07.gts
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.8 part04test08 6.8.1 Diff
6.8.2 Input File
part04test08.diff
123
[1].
[4].
[3 ,1 ,2 ,4].
[4 ,2 ,3 ,1].
[2 ,4 ,1 ,3].
[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].
6.8.3 Submission Output
game [3,1,2,4] [4,2,3,1] [2,4,1,3] [1,3,4,2] true
6.8.4 Solution Output
game [3,1,2,4] [4,2,3,1] [2,4,1,3] [1,3,4,2] true
6.8.5 stderr
part04test08.output
part04test08.output
part04test08.err
part04test08.gts
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.9 part04test09 6.9.1 Diff
6.9.2 Input File
[1].
[1].
[1 ,2 ,3 ,1].
part04test09.diff
part04test09.gts
124
[3 ,1 ,4 ,2]. [2 ,3 ,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.9.3 Submission Output
game [1,2,3,1] [3,1,4,2] [2,3,1,4] [1,4,2,3] false
6.9.4 Solution Output
game [1,2,3,1] [3,1,4,2] [2,3,1,4] [1,4,2,3] false
6.9.5 stderr
part04test09.output
part04test09.output
part04test09.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.10 part04test10 6.10.1 Diff
6,9d5
< [1,-1,-1] < [-1,1,1] < [-1,-1,1] < [1,1,-1]
6.10.2 Input File
[2]. [2].
part04test10.diff
part04test10.gts
125
[3 ,4 ,2 ,1]. [1 ,1 ,3 ,4]. [4 ,3 ,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.10.3 Submission Output
game [3,4,2,1] [1,1,3,4] [4,3,1,2] [1,2,4,3] [1,-1,-1] [-1,1,1] [-1,-1,1] [1,1,-1] false
6.10.4 Solution Output
game [3,4,2,1] [1,1,3,4] [4,3,1,2] [1,2,4,3] false
6.10.5 stderr
part04test10.output
part04test10.output
part04test10.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.11 part04test11 6.11.1 Diff
6.11.2 Input File
[2]. [4].
part04test11.diff
part04test11.gts
126
[1 ,4 ,3 ,2]. [2 ,3 ,4 ,1]. [3 ,1 ,2 ,4]. [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].
6.11.3 Submission Output
game [1,4,3,2] [2,3,4,1] [3,1,2,4] [4,2,1,3] true
6.11.4 Solution Output
game [1,4,3,2] [2,3,4,1] [3,1,2,4] [4,2,1,3] true
6.11.5 stderr
part04test11.output
part04test11.output
part04test11.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.12 part04test12 6.12.1 Diff
6.12.2 Input File
[1].
[4].
[3 ,2 ,1 ,3]. [3 ,1 ,2 ,4]. [1 ,3 ,4 ,2]. [2 ,4 ,3 ,1].
part04test12.diff
part04test12.gts
127
[-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 [3,2,1,3] [3,1,2,4] [1,3,4,2] [2,4,3,1] false
6.12.4 Solution Output
game [3,2,1,3] [3,1,2,4] [1,3,4,2] [2,4,3,1] false
6.12.5 stderr
part04test12.output
part04test12.output
part04test12.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.13 part04test13 6.13.1 Diff
6.13.2 Input File
[2].
[2].
[4 ,3 ,1 ,2]. [4 ,1 ,3 ,4]. [3 ,2 ,4 ,1]. [1 ,4 ,2 ,3]. [-1,-1,1,1]. [1,1,1,-1]. [-1,1,-1,1]. [-1,-1,1].
part04test13.diff
part04test13.gts
128
[-1,1,1]. [-1,1,-1]. [1,-1,1].
6.13.3 Submission Output
game [4,3,1,2] [4,1,3,4] [3,2,4,1] [1,4,2,3] false
6.13.4 Solution Output
game [4,3,1,2] [4,1,3,4] [3,2,4,1] [1,4,2,3] false
6.13.5 stderr
part04test13.output
part04test13.output
part04test13.err
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.14 part04test14 6.14.1 Diff
6.14.2 Input File
[2].
[3].
[4 ,3 ,1 ,2]. [4 ,1 ,3 ,4]. [3 ,2 ,4 ,1]. [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].
part04test14.diff
part04test14.gts
129
6.14.3 Submission Output
game [4,3,1,2] [4,1,3,4] [3,2,4,1] [1,4,2,3] false
6.14.4 Solution Output
game [4,3,1,2] [4,1,3,4] [3,2,4,1] [1,4,2,3] false
6.14.5 stderr
part04test14.output
part04test14.err
part04test14.output
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54: Singleton variables: [Horizontal ,Vertical]
6.15 part04test15 6.15.1 Diff
6.15.2 Input File
[2].
[4].
[3 ,2 ,4 ,1]. [4 ,1 ,3 ,2]. [1 ,4 ,2 ,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].
6.15.3 Submission Output
part04test15.diff
part04test15.gts
130
game [3,2,4,1] [4,1,3,2] [1,4,2,3] [2,3,1,4] true
6.15.4 Solution Output
game [3,2,4,1] [4,1,3,2] [1,4,2,3] [2,3,1,4] true
6.15.5 stderr
part04test15.output
part04test15.err
14 invalid(VE1, A, E). 15
16 invalidHo(Game, Vertical, X, Y, E):-
17 T is X + 1,
18 getElement(Vertical , X, Y,
19 getElement(Game, T, Y, B),
20 B \= -,
21 invalid(VE1, E, B).
22 23
24 invalidV(Game, Vertical, X, Y, E):-
25 T is Y - 1,
26 getElement(Vertical , X, T, VE1),
Y, E):- VE1),
VE1),
part04test15.output
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:41: Singleton variables: [Horizontal ,Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:44: Singleton variables: [Horizontal]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:48: Singleton variables: [Vertical]
Warning: /home/grad/Classes/cse322/csce322hw0004/hxia/04/csce322hw04pt04.pl:54:
Singleton variables:
6.16 Source Code
1
2 invalid(1, A, B):- A >= B. 3
4 invalid(-1, A, B):- A =< B. 5
6 invalidHo(Game, Vertical, X,
7 T is X - 1,
8 getElement(Vertical , T, Y,
9
10 getElement(Game, T, Y, A), 11
12 A \= -,
13
[Horizontal ,Vertical]
csce322hw04pt04.pl
131
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
getElement(Game, X, T, A), A \= -,
invalid(VE1, A, E).
invalidV(Game, Vertical,
T is Y + 1, getElement(Vertical , X, getElement(Game, X, T, B), B \= -,
invalid(VE1, E, B).
invalid(Game, Horizontal, getElement(Game, X, Y,
Vertical, X, Y):- -), !.
invalid(Game, Horizontal, getElement(Game, X, Y,
invalidHo(Game, Vertical, X, Y, E), !.
X, Y, E):- Y, VE1),
Vertical, X, Y):- E),
invalid(Game, Horizontal, Vertical, X, Y):- getElement(Game, X, Y, E), invalidV(Game, Horizontal, X, Y, E),
printGame(Horizontal), !.
invalid(Game, Horizontal, Vertical, X, Y):- getElement(Game, X, Y, E),
\+colsAndRows(Game, X, Y, E, [Y], [X]), !.
colsAndRows(Game, X, Y, E, SameRow, SameCol):- findall(Z, getElement(Game, X, Z, E), SameRow),
findall(Z, getElement(Game, Z, Y, E), SameCol).
getElement(Game, X, Y, E):- nth0(X, Game, R), nth0(Y, R, E).
getInvalidList(Game, Horizontal, Vertical, L):-
findall([X, Y], invalid(Game, Horizontal, Vertical, X, Y), L).
checkGame(Game,Horizontal,Vertical):- getInvalidList(Game, Horizontal, Vertical, []).
132