Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions subjects/filler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ And his response:
7 2\n
```

### Unit Tests

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:

- Verify **Input Parsing** by ensuring the Anfield grid and the incoming pieces are correctly converted into internal data structures from the standard input string.
- 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.
- Test **Boundary Conditions** to ensure the robot never attempts to place a piece that extends beyond the rows or columns of the Anfield.
- Verify **Coordinate Output** by ensuring the final calculation is formatted exactly as `X Y\n` as required by the `game_engine`.

### Bonus

- Create a graphic visualizer for this project.
Expand Down
10 changes: 10 additions & 0 deletions subjects/filler/audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@

###### Can you confirm that the student player won at least 4 out of 5 times?

#### Unit Tests

###### Do all tests pass without errors?

###### Are there specific tests for **Input Parsing** (e.g., verifying the robot correctly reads the Anfield dimensions and the piece shape from stdin)?

###### 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)?

###### Are there tests for **Boundary Detection** to ensure pieces are never placed partially outside the grid?

#### Basic

###### +Does the code obey the [good practices](../../good-practices/README.md)?
Expand Down
Loading