Skip to content

Add configurable board layouts - #28

Merged
BryanBlaze00 merged 4 commits into
masterfrom
feature/11-configurable-layouts
Oct 4, 2026
Merged

BryanBlaze00 merged 4 commits into
masterfrom
feature/11-configurable-layouts

Conversation

@BryanBlaze00

Copy link
Copy Markdown
Owner

Summary

Closes #11.

  • Allows callers to configure board size, Wumpus, pits, and gold positions.
  • Validates board coordinates and prevents overlapping or invalid objects.
  • Preserves the existing default layout.
  • Documents the constructor options in the README.
  • Adds a visual renderer test that verifies custom layouts are rendered.

Testing

Run from the repository root:

python -m unittest discover -s tests -v

All 28 tests pass, including the custom-layout renderer test.

Visual review

The renderer test captures the board output and verifies that the custom Wumpus, pit, and gold appear in the rendered board. The test checks the output structure without depending on terminal timing.

@BryanBlaze00 BryanBlaze00 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed

@BryanBlaze00
BryanBlaze00 merged commit 428a6e5 into master Oct 4, 2026
2 checks passed
@BryanBlaze00
BryanBlaze00 deleted the feature/11-configurable-layouts branch October 4, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add configurable board layouts

1 participant