Skip to content

Commit 3f490c0

Browse files
Stephen Gruppettaclaude
andcommitted
Step 6: Definition of done checked
Every item passes: 54 tests cover the rules, the match loop, bot safety, the loader, and the display; the botbattle command was run with all bots, a newly dropped-in bot, and different delays; and the GitHub Actions check passes on main. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 1820783 commit 3f490c0

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

‎CLAUDE.md‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,29 @@ Because a bot is just a function, the audience can write and submit their own.
1818

1919
<!-- Checkable criteria. These become the end-to-end acceptance tests. -->
2020

21-
- [ ] `uv run botbattle` runs a match between all bots in `bots/` on a 10×10
21+
All checked in step 6: `uv run pytest` (54 tests), `uv run botbattle`, and
22+
the GitHub Actions run on `main`.
23+
24+
- [x] `uv run botbattle` runs a match between all bots in `bots/` on a 10×10
2225
grid and announces the winner.
23-
- [ ] A bot is a plain function: it receives a read-only view of the game and
26+
- [x] A bot is a plain function: it receives a read-only view of the game and
2427
returns one action (a move, an attack in a direction, or wait).
25-
- [ ] Rules are enforced and tested: moves off the grid or into an occupied
28+
- [x] Rules are enforced and tested: moves off the grid or into an occupied
2629
square do nothing; an attack hits only the adjacent square in its direction;
2730
a hit costs 1 HP; a bot at 0 HP is removed.
28-
- [ ] A match ends with one bot left (the winner) or at a turn limit, where
31+
- [x] A match ends with one bot left (the winner) or at a turn limit, where
2932
the bot with the most HP wins (a tie for the most HP is a draw). The same
3033
seed always replays the same match.
31-
- [ ] A bot that raises an error, returns an invalid action, or tries to
34+
- [x] A bot that raises an error, returns an invalid action, or tries to
3235
change the game state just waits that turn. The game never crashes.
33-
- [ ] Adding a bot means adding one file to `bots/`, with no registration
36+
- [x] Adding a bot means adding one file to `bots/`, with no registration
3437
step. At least 3 example bots ship this way.
35-
- [ ] `uv run botbattle` animates the match as text in the terminal: the grid
38+
- [x] `uv run botbattle` animates the match as text in the terminal: the grid
3639
redraws in place each round, a panel shows each bot's name and HP, defeated
3740
bots disappear and are marked out, and the final screen shows the result.
3841
`--delay` sets the speed, and `--no-animate` prints only the result.
39-
- [ ] The README explains how to write and submit a bot.
40-
- [ ] *(Optional)* A GitHub Actions check runs on every PR: ruff, pytest, and
42+
- [x] The README explains how to write and submit a bot.
43+
- [x] *(Optional)* A GitHub Actions check runs on every PR: ruff, pytest, and
4144
a match that includes the new bot.
4245

4346
## How We Work

0 commit comments

Comments
 (0)