Add minesweeper command #543

Open
Vylpes wants to merge 1 commit from feature/7-minesweeper-command into release/3.5.0
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.
All checks were successful
Test / build (push) Successful in 50s
Required
Details
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/7-minesweeper-command:feature/7-minesweeper-command
git switch feature/7-minesweeper-command
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
RabbitLabs/vylbot-app!543
No description provided.