You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: subjects/filler/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -163,6 +163,15 @@ And his response:
163
163
7 2\n
164
164
```
165
165
166
+
### Unit Tests
167
+
168
+
You must implement unit tests within your `filler` project to ensure your robot's parsing logic and placement strategy are reliable. Specifically, your tests should:
169
+
170
+
- Verify **Input Parsing** by ensuring the Anfield grid and the incoming pieces are correctly converted into internal data structures from the standard input string.
171
+
- Verify **Valid Placement Logic** by testing that a potential coordinate correctly identifies if it has exactly one overlapping cell with existing territory and zero overlaps with the opponent.
172
+
- Test **Boundary Conditions** to ensure the robot never attempts to place a piece that extends beyond the rows or columns of the Anfield.
173
+
- Verify **Coordinate Output** by ensuring the final calculation is formatted exactly as `X Y\n` as required by the `game_engine`.
Copy file name to clipboardExpand all lines: subjects/filler/audit/README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,16 @@
24
24
25
25
###### Can you confirm that the student player won at least 4 out of 5 times?
26
26
27
+
#### Unit Tests
28
+
29
+
###### Do all tests pass without errors?
30
+
31
+
###### Are there specific tests for **Input Parsing** (e.g., verifying the robot correctly reads the Anfield dimensions and the piece shape from stdin)?
32
+
33
+
###### Are there tests for **Placement Validation** (e.g., checking that a move is rejected if it overlaps two of your own cells or one of the opponent's)?
34
+
35
+
###### Are there tests for **Boundary Detection** to ensure pieces are never placed partially outside the grid?
36
+
27
37
#### Basic
28
38
29
39
###### +Does the code obey the [good practices](../../good-practices/README.md)?
0 commit comments