Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 start

My 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)