Skip to content

feat: Phase 1 — fix missing commands, add look action, expand docs#4

Merged
viktorklochkov merged 2 commits into
mainfrom
feature/phase-1-fixes
Feb 22, 2026
Merged

feat: Phase 1 — fix missing commands, add look action, expand docs#4
viktorklochkov merged 2 commits into
mainfrom
feature/phase-1-fixes

Conversation

@viktorklochkov
Copy link
Copy Markdown
Owner

Summary

  • Fix ConsoleInputHandler missing commands: "drop" and "inventory" were parsed nowhere, making those actions unreachable from the console
  • Add use_message to rusty sword: switches to designated-initializer syntax and gives the sword a meaningful response when used
  • Add look action: new Action::Look enum value, "look" console command, and Game::look() that re-displays the current room description and available exits without moving
  • CLAUDE.md improvements: documents CMake presets, the full interface layer (IMap/IPlayer/IInputHandler), and required NOLINT patterns for GMock and optional access
  • Development plan: adds docs/development-plan.md with a 6-phase roadmap (world expansion, win condition, locked doors, NPCs, save/load)

Test plan

  • All 80 existing tests pass (ctest)
  • 5 new tests added: getActionDrop, getActionInventory, getActionLook (ConsoleInputHandler), handleUserActionLook, lookDisplaysRoomDescriptionAndDirections (Game)
  • Run just clang-tidy to verify no new warnings
  • Run just iwyu to verify no new include violations
  • Run just format to verify formatting

🤖 Generated with Claude Code

…ction

- Fix ConsoleInputHandler missing "drop" and "inventory" command parsing
- Add use_message to rusty sword in create_map()
- Add Look action: Action enum value, ConsoleInputHandler parser, Game::look()
  displays current room description and available exits
- Add 5 new tests covering all Phase 1 behaviour
- Update CLAUDE.md: CMake presets, interface layer, NOLINT patterns
- Add docs/development-plan.md with 6-phase roadmap

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!

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@viktorklochkov viktorklochkov merged commit 744e6c0 into main Feb 22, 2026
4 checks passed
@viktorklochkov viktorklochkov deleted the feature/phase-1-fixes branch February 22, 2026 15:09
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