Bart Massey
This Python 3 code is a tool for exploring Shut The Box from an AI perspective. It currently supports Monte Carlo play both randomly and with a simple heuristic.
To see the command-line options, say
python3 stb.py -h
To run unit tests on the choices()
function, say
python3 choices.py