This repository contains code for "Repeated Poker and the Independent Chip Model".
Create the game.
for i in {6..155}; do
python scripts/game.py "$i" > "games/$i.json"
doneSolve the game.
for i in {6..155}; do
python scripts/solve.py < "games/$i.json" > "solutions/$i.npz"
donePlot the exploitabilities and game values.
python scripts/plot.py "solutions/{}.npz" figures/plot.pdf figures/plot2.pdfCalculate the (abstracted) game size.
python scripts/size.py > data/size.npy
python scripts/size2.py > data/size2.npyGet strategy.
python scripts/strategies.py "solutions/{}.npz" > data/strategies.pklGet transitions.
python scripts/transitions.py < data/strategies.pkl > data/transitions.pkl
python scripts/transitions2.py < data/transitions.pkl > data/transitions2.pklModel as absorbing Markov chains.
python scripts/markov.py 10 30 50 70 110 150 190 230 270 310 620 1550 7750 < data/transitions2.pkl > data/markov.pklPlot absorbing markov chain results and the ICM.
python scripts/plot3.py figures/plot3.pdf figures/plot4.pdf 10 30 50 70 190 310 1550 7750 < data/markov.pkl