🎮

Fantasy Game Inventory

Python47 lines· 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…
Original project by @ibra-kdbra — view source on GitHub
Ready when you are

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.

fantasy-game-inventory.py· Python 3.x
39 lines
Console· terminal