How kriptolix/poliedros works
Poliedros is a GTK desktop dice roller. Users enter a quick-roll selection or an expression, invoke a roll, and receive a total and roll log; optional 3D animation and sound accompany supported rolls. The parser validates and structures expressions, and the roller evaluates dice pools and functions. The README also documents advanced operations such as keep, count, reroll, explode, and multiroll. Evidence is limited to the README and the sampled source excerpts; unsampled feature wiring is not assumed.
Main entry points: application.py Application controller · rollarea.py Roll entry area · gldicearea.py 3D dice view · mainwindow.py Main window
Components 14
Desktop interface
- Application controller
src/application.py - Main window
src/gtk/widgets/mainwindow.py - Roll entry area
src/gtk/widgets/rollarea.py - Quick dice controls
src/gtk/widgets/dicearea.py - Advanced mode
src/gtk/widgets/advancedmode.py - Usage information
src/gtk/widgets/infoarea.py - Usage dialog
src/gtk/widgets/usageinfo.py
Roll language
- Expression parser
src/parser.py
Roll execution
- Dice and function evaluator
src/roller.py
Results and rendering
- Roll history
src/gtk/widgets/sidebar.py - History entry and reroll
src/gtk/widgets/logentry.py - 3D dice view
src/gtk/widgets/gldicearea.py - 3D simulation and renderer
Other components
- Player
Connections 18
- Player → Application controller: starts app
README.md - Application controller → Main window: creates window
src/application.py - Main window → Roll entry area: hosts entry
src/gtk/widgets/mainwindow.py - Roll entry area → Quick dice controls: uses controls
src/gtk/widgets/rollarea.py - Player → Roll entry area: enters roll
README.md - Roll entry area → Application controller: requests roll
- Application controller → Expression parser: parses expression
src/application.py - Application controller → Dice and function evaluator: evaluates parsed roll
src/application.py - Application controller → Roll entry area: updates total
src/application.py - Application controller → Roll history: adds roll record
src/application.py - Roll history → History entry and reroll: creates entry
src/gtk/widgets/sidebar.py - History entry and reroll → Application controller: reruns expression
src/gtk/widgets/logentry.py - Application controller → 3D dice view: starts animation
src/application.py - Roll entry area → 3D dice view: embeds view
src/gtk/widgets/rollarea.py - 3D dice view → 3D simulation and renderer: simulates and renders
src/gtk/widgets/gldicearea.py - Player → Advanced mode: builds advanced rolls
README.md - Player → Usage information: requests help
src/gtk/widgets/infoarea.py - Usage information → Usage dialog: opens dialog
src/gtk/widgets/infoarea.py