258
|
1 |
|
|
2 |
Below is the feedback and provisional marks for your submission
|
293
|
3 |
for assignment 8 Part 1. Please note all marks are provisional until
|
258
|
4 |
ratified by the assessment board -- this is not an official
|
|
5 |
results transcript.
|
|
6 |
|
293
|
7 |
knight1.scala does not contain vars, returns, Arrays, ListBuffers etc?
|
258
|
8 |
--> success
|
293
|
9 |
knight1.scala runs?
|
|
10 |
--> success
|
|
11 |
is_legal(8, Nil, (3, 4)) == true
|
|
12 |
is_legal(8, List((4, 1), (1, 0)), (4, 1)) == false
|
|
13 |
is_legal(2, Nil, (0, 0)) == true
|
|
14 |
--> test failed
|
|
15 |
legal_moves(8, Nil, (2,2)) == List((3,4), (4,3), (4,1), (3,0), (1,0), (0,1), (0,3), (1,4))
|
|
16 |
legal_moves(8, Nil, (7,7)) == List((6,5), (5,6))
|
|
17 |
legal_moves(8, List((4,1), (1,0)), (2,2)) == List((3,4), (4,3), (3,0), (0,1), (0,3), (1,4))
|
|
18 |
legal_moves(8, List((6,6)), (7,7)) == List((6,5), (5,6))
|
|
19 |
legal_moves(1, Nil, (0,0)) == Nil
|
|
20 |
legal_moves(2, Nil, (0,0)) == Nil
|
|
21 |
legal_moves(3, Nil, (0,0)) == List((1,2), (2,1))
|
|
22 |
--> test failed
|
|
23 |
all_tours from every position on the board
|
|
24 |
dim = 1: 1
|
|
25 |
2: 0,0,0,0
|
|
26 |
3: 0,0,0,0,0,0,0,0,0
|
|
27 |
4: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
|
|
28 |
5: 304,0,56,0,304,0,56,0,56,0,56,0,64,0,56,0,56,0,56,0,304,0,56,0,304
|
|
29 |
--> test failed
|
|
30 |
enum_tours(5, List((0,2)) ) => 56 tours? and all correct?
|
|
31 |
--> test failed
|
|
32 |
val f = (x:(Int, Int)) => if (x._1 > 3) Some(List(x)) else None
|
|
33 |
first(List((1,0),(2,0),(3,0),(4,0)), f) == Some(List((4,0)))
|
|
34 |
first(List((1,0),(2,0),(3,0)), f) == None
|
|
35 |
--> test failed
|
|
36 |
is first_tour(8, List((0, 0))) ok?
|
|
37 |
is first_tour(4, List((0, 0))) == None
|
|
38 |
--> test failed
|
|
39 |
Overall mark for Part 1
|
|
40 |
0
|