thanks to Assassinater for his python gui.
to build from source you need boost, eigen and sqlite3.
contains lots of unrecommended/old code, just to show 4 different ways to calculate the odds:
- simulations of ORP (Offensive Roll Phase) (extremly optimized, almost 15 mio simulations/sec)
- MCTS (Monte Carlo Tree Search)
- brute force
- markov chains (inspired from https://math.stackexchange.com/questions/4032313/probability-of-yahtzee-straight-with-strict-re-roll-rules) (currently preffered way)
numbers in brackets are the dice you have to reroll for maximized odds.
- download latest release from: https://github.com/noHero123/DiceThroneOddsCalculator/releases and extract it.
- (optional) if you want to use the odds calculator for DTA, also download the precomputed database from https://github.com/noHero123/DiceThroneOddsCalculator/releases/tag/1.0.0_DTA and extract it to the same folder like the stuff from first step.
- start odds_calc.exe
install eigen + sqlite + boost (and if you dont have: git, make and g++):
sudo apt-get install libeigen3-dev
sudo apt-get install libsqlite3-dev
sudo apt-get install libboost-all-dev
load github-project:
- create a new folder
- go inside the folder
- open terminal and run
git clone https://github.com/noHero123/DiceThroneOddsCalculator.git
go inside the folder (the folder with the makefile) open terminal and run
make