pyBegin / projects / fantasy-game-inventory
🎮

Fantasy Game Inventory

A small demo that manages a fantasy game player's inventory. It displays items and their counts, and supports adding loot (a list of items) to an e…

47 linesRunnable

Fantasy Game Inventory

A small demo that manages a fantasy game player's inventory. It displays items and their counts, and supports adding loot (a list of items) to an existing inventory dictionary.

How to run

python game-inventory.py

Dependencies

Standard library only.

Pyodide-runnable

Yes — pure-Python logic with only print() output, no I/O or external packages.