dice-math
Skill1 starsChanged 11 days agoNo licenceView on GitHub
Exact dice odds for any game, tabletop or computer - dice.py enumerates every outcome (no simulation) for sums (2d6, 1d20+5), keep-highest/lowest (4d6kh3), exploding dice (2d6!), Dominions-style open-ended dice (2d6!d), and re-roll-once rules (2d6r<=2, FoG II quality re-rolls), and answers the questions games ask - a distribution with P(>=k), an opposed roll (X + dice vs Y + dice, with ties), the difference table of an opposed system, the chance to reach a target, expected damage after armour when both sides roll, chained checks (all must pass), and binomial "k hits out of n tries". Plus the method - find the game's dice and tie rule in the manual, compute the table once, write it into the game's skill, and reason in differences. Use when a game rolls dice and odds matter (combat, morale and cohesion tests, magic resistance, stealth, hunting, events), when writing a game's rules skill, or when the user asks "what are the odds".
In this repository48 other files it gives its agents.
- army-logSkill
- battle-tacticsSkill
- borrow-from-gamesSkill
- check-skillsSkill
- combat-modelsSkill
- delegateSkill
- discord-logsSkill
- draw-mapSkill
- draw-movesSkill
- game-databaseSkill
- game-setupSkill
- game-sourcesSkill
- game-uiSkill
- generalize-learningSkill
- hand-backSkill
- idle-viewSkill
- install-windows-gamesSkill
- learn-from-tutorialsSkill
- learn-to-modSkill
- learn-to-playSkill
- loading-screensSkill
- manual-firstSkill
- map-cameraSkill
- map-measureSkill
- map-usageSkill
- military-doctrineSkill
- military-operationsSkill
- mod-diffSkill
- mod-docsSkill
- move-phasesSkill
- obs-recordSkill
- photo-mapSkill
- planningSkill
- rules-skillsSkill
- save-scumSkill
- scoutingSkill
- screeningSkill
- skills-managerSkill
- skill-syncSkill
- soviet-doctrineSkill
- stream-panelSkill
- unit-combat-mathSkill
- video-watchSkill
- waiting-checklistSkill
- war-conceptsSkill
- war-languageSkill
- wiki-scoutSkill
- write-skillSkill
The file
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

