Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singiamtel/parchis_dice_chance
Visualize the chance to reach a given target in Parchis
https://github.com/singiamtel/parchis_dice_chance
Last synced: 24 days ago
JSON representation
Visualize the chance to reach a given target in Parchis
- Host: GitHub
- URL: https://github.com/singiamtel/parchis_dice_chance
- Owner: singiamtel
- Created: 2024-07-13T23:02:18.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-07-13T23:13:44.000Z (4 months ago)
- Last Synced: 2024-07-14T00:19:20.836Z (4 months ago)
- Language: Python
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Parchis distance calculator
Calculate the chances of a Parchis piece to reach a given square in a single turn
The rules are the following:
- You roll 2 dice (usually 6-sided)
- If you roll a double, you get an extra turn
- If you roll 3 doubles in a row, your piece goes back to the startMy calc is only correct if you have 1 moveable piece (in real Parchis you can make each move with a different piece and therefore "discard" one of the rolls)
The permutated graph is calculated by counting manually all the possible combinations of the dice rolls, and the random chances is calculated by simulating a lot of rolls and counting them.
![chances](https://github.com/user-attachments/assets/f278e313-ca13-4253-afbc-ffe193f4960f)
Even rolls are less likely because of the rerolling doubles rule. For example, you can't get a 12 with a double 6, you would need a different double and the difference (e.g. 4/4 + 3/1)