csharpfritz / csharpfritz/MyFirstTextGame

Add 'drop' command to remove items from inventory

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
engine enhancement squad:banner
Dominant language
C#
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Players can ake items but cannot drop them. A drop command would allow placing inventory items back into the current room.

**Acceptance criteria:**
- Add CommandType.Drop to the enum
- CommandParser recognizes drop
- GameEngine.HandleDrop() removes item from inventory, adds to current room's RoomItems
- Non-droppable items (if any) should be handled gracefully
- Output confirmation message in green

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.