How felipecam-devcs/rpgtoolkit works
This is a small RPG dice-generation package: a controller validates requests, the model rolls dice and maintains history in several orderings, and a separate helper persists history as text. The sampled files do not show an application entry point wiring these pieces together; the Flet view is empty, and export formats are placeholders. The graph therefore shows only relationships visible in the excerpts, not a complete user-interface flow.
Main entry points: gen_dice_model.py Dice and history model · gen_dice_controller.py Dice controller · export_import_historical_model.py History file I/O
Components 6
Dice generation
- Dice controller
controllers/gen_dice_controller.py
History management
- Dice and history model
models/gen_dice_model.py
Persistence and errors
- History file I/O
models/export_import_historical_model.py - Text history file
- I/O error types
excepts/excepts.py
Other components
- Python random
Connections 5
- Dice controller → Dice and history model: requests rolls
controllers/gen_dice_controller.py - Dice controller → Dice and history model: clears history
controllers/gen_dice_controller.py - Dice and history model → Python random: rolls with
models/gen_dice_model.py - History file I/O → Dice and history model: reads history
models/export_import_historical_model.py - History file I/O → Text history file: appends history
models/export_import_historical_model.py