https://github.com/jusexton/domino-chain-calculator
Generates all possible domino chains and their values given a list of dominoes and a starting value.
https://github.com/jusexton/domino-chain-calculator
dominoes python treeview
Last synced: 6 months ago
JSON representation
Generates all possible domino chains and their values given a list of dominoes and a starting value.
- Host: GitHub
- URL: https://github.com/jusexton/domino-chain-calculator
- Owner: jusexton
- Created: 2019-02-24T18:24:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-10T22:36:00.000Z (over 1 year ago)
- Last Synced: 2025-04-13T13:08:57.019Z (6 months ago)
- Topics: dominoes, python, treeview
- Language: Python
- Homepage:
- Size: 374 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Domino Chain Calculator
Used to calculate all possible chains of dominoes given a list of dominoes and a starting value.
The calculator builds a tree of all possible plays with [anytree](https://pypi.org/project/anytree/)

# Running Locally
## Clone
```
git clone https://github.com/jusexton/domino-chain-calculator && cd domino-chain-calculator
```## Setup Virtual Environment
```
poetry install
```## Program Usage
```
poetry run -- python domino-chain-calculator -h (display help)poetry run -- python domino-chain-calculator -s dominoes.json (for best route to be displayed)
poetry run -- python domino-chain-calculator -s dominoes.json -v (for all routes to be displayed)
poetry run -- python domino-chain-calculator -s dominoes.json -v -i (for all routes to be displayed with sums)
```