How maillzz/ddt_poker works
Poker Monte Carlo is a Texas Hold’em decision-support service. Users submit hole cards, board cards, opponents, and betting parameters through the authenticated web form or API; the app validates them, creates an owner-scoped task, runs a Monte Carlo calculation asynchronously, and exposes task status and results. The solver deals unknown cards, evaluates hands, aggregates win/tie/loss and equity, then recommends an action. The README also describes batch, hand-tracking, and hand-rank API capabilities, but those routes are not shown in the sampled API implementation; they are marked as documented-only. Evidence for edges is limited to the README and indexed or excerpted files.
Main entry points: services.py Task service · views.py Web interface · solver.py Monte Carlo solver · api.py Task API
Components 15
User interfaces
- Web interface
web/views.py - Poker form
web/forms.py - Task API
api/api.py - Task results page
templates/web/detail.html - Additional API capabilities
api
Input validation
- Parameter schema
core/schemas.py
Calculation
- Monte Carlo solver
core/solver.py - Card simulation
core/solver.py - Hand evaluation
core/solver.py - Action recommendation
core/solver.py
Task execution
- Task service
web/services.py - Task records
web/models.py - Background thread
web/services.py - RQ queue
web/jobs.py
Other components
- Poker player
Connections 17
- Poker player → Web interface: submits hand
- Poker player → Task API: submits task
- Web interface → Poker form: renders
web/views.py - Web interface → Parameter schema: validates with
web/views.py - Task API → Parameter schema: validates with
api/api.py - Web interface → Task service: creates task
web/views.py - Task API → Task service: creates task
api/api.py - Task service → Task records: creates and queries
web/services.py - Task service → Background thread: starts
web/services.py - Task service → RQ queue: enqueues optionally
web/services.py - Background thread → Task service: executes task
web/services.py - Task service → Monte Carlo solver: runs calculation
web/services.py - Monte Carlo solver → Card simulation: simulates deals
core/solver.py - Monte Carlo solver → Hand evaluation: evaluates hands
core/solver.py - Monte Carlo solver → Action recommendation: derives action
core/solver.py - Web interface → Task results page: renders results
web/views.py - Additional API capabilities → Task API: extends task API