Add minesweeper command #543

Merged
Vylpes merged 1 commit from feature/7-minesweeper-command into release/3.5.0 2026-09-16 13:26:30 +01:00
Owner
  • Add minesweeper command
  • It is a 9x9 grid with 10 mines
  • Add tests

#7

- Add minesweeper command - It is a 9x9 grid with 10 mines - Add tests #7
Add minesweeper command
All checks were successful
Test / build (push) Successful in 50s
796525ca68
Smithy-bot approved these changes 2026-08-29 14:35:07 +01:00
Smithy-bot left a comment

Approve — the minesweeper command is a clean, self-contained addition and looks good to merge.

This adds a /minesweeper slash command (9×9, 10 mines), registers it in registry.ts, and covers the command with unit tests.

What looks good

  • Grid construction is correct (independent rows, Fisher–Yates for unique mine positions, 8-neighbor counts).
  • Discord spoiler formatting (||:emoji:||) matches the usual click-to-reveal minesweeper pattern; a 9×9 board stays well under the 2000-character message limit.
  • Registration follows the same import/RegisterCommand pattern as the other commands.
  • Tests cover constructor config, execute wiring, mine counts, adjacency, and emoji mapping.

Non-blocking

  • Unused grid fixture in the adjacency test can be dropped.
  • generateGrid does not guard mineCount > width * height; fine while the command hardcodes 9/9/10.

No merge-blocking issues.

**Approve** — the minesweeper command is a clean, self-contained addition and looks good to merge. This adds a `/minesweeper` slash command (9×9, 10 mines), registers it in `registry.ts`, and covers the command with unit tests. **What looks good** - Grid construction is correct (independent rows, Fisher–Yates for unique mine positions, 8-neighbor counts). - Discord spoiler formatting (`||:emoji:||`) matches the usual click-to-reveal minesweeper pattern; a 9×9 board stays well under the 2000-character message limit. - Registration follows the same import/`RegisterCommand` pattern as the other commands. - Tests cover constructor config, `execute` wiring, mine counts, adjacency, and emoji mapping. **Non-blocking** - Unused `grid` fixture in the adjacency test can be dropped. - `generateGrid` does not guard `mineCount > width * height`; fine while the command hardcodes 9/9/10. No merge-blocking issues.
Vylpes merged commit 634cf62610 into release/3.5.0 2026-09-16 13:26:30 +01:00
Vylpes deleted branch feature/7-minesweeper-command 2026-09-16 13:26:31 +01:00
Author
Owner

@Smithy-bot Please create those 2 non-blocking points into their own issues and milestone them as 3.6.0

@Smithy-bot Please create those 2 non-blocking points into their own issues and milestone them as 3.6.0
Sign in to join this conversation.
No description provided.