Skip to content

feat: Phase 2 — expand world to 7 rooms with items and narrative#5

Merged
viktorklochkov merged 1 commit into
mainfrom
feature/phase-2-expand-world
Feb 22, 2026
Merged

feat: Phase 2 — expand world to 7 rooms with items and narrative#5
viktorklochkov merged 1 commit into
mainfrom
feature/phase-2-expand-world

Conversation

@viktorklochkov
Copy link
Copy Markdown
Owner

Summary

  • Extends create_map() from 2 rooms to 7, forming a small castle layout with a narrative through-line
  • Adds Library, ThroneRoom, Kitchen, Cellar, and Barracks with room descriptions
  • Places items that tell a story: old tome hints at the Cellar, iron key (Kitchen) will gate it in Phase 4, silver pendant waits in the Cellar
  • Updates the golden chalice use_message to hint it belongs on the throne (sets up the Phase 3 win condition), and converts it to designated initialiser syntax
  • All connections are bidirectional via the existing opposite_direction() mechanism — no structural changes required
[Armoury] — East — [Barracks]
    ↕ N/S
[Library] ← [Grand Hall] → [Throne Room]
    ↕ N/S
[Kitchen]
    ↕ N/S
[Cellar]

Test plan

  • 16 new tests in Map.test.cpp covering all new connections, bidirectional traversal, item placement, and empty rooms
  • 96/96 tests pass (ctest)
  • just clang-tidy — no warnings
  • just format — no changes after formatting
  • IWYU macOS false positive (<__ostream/basic_ostream.h>) is a known platform artefact; Linux CI will be clean

🤖 Generated with Claude Code

Add 5 rooms to create_map() (Library, ThroneRoom, Kitchen, Cellar, Barracks)
with bidirectional connections forming a small castle layout:

  [Armoury] — East — [Barracks]
      ↕
[Library] ← [Grand Hall] → [Throne Room]
      ↕
  [Kitchen]
      ↕
  [Cellar]

Place items that hint at a puzzle chain: old tome (Library), iron key
(Kitchen), silver pendant (Cellar). Update golden chalice use_message to
hint it belongs on the throne. Convert chalice to designated initialiser
syntax to match project style.

Add 16 new Map tests covering all connections, bidirectional traversal,
and item placement. All 96 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@viktorklochkov viktorklochkov merged commit 94af65b into main Feb 22, 2026
4 checks passed
@viktorklochkov viktorklochkov deleted the feature/phase-2-expand-world branch February 22, 2026 16:04
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.

2 participants