csharpfritz / csharpfritz/MyFirstTextGame
Add 'drop' command to remove items from inventory
未關閉
engine
enhancement
squad:banner
- 主要語言
- C#
- 星號
- 1
- 分支
- 0
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
先找出 CommandType enum、CommandParser,以及 GameEngine 中現有的 inventory 和 room-item 處理邏輯。以 take 流程為指引,接著確認 drop parsing、從 inventory 移除、放置到目前房間、不可丟棄物品的處理,以及綠色確認輸出是否都符合驗收標準。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- csharp
- 領域
- game-dev
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 58/100