By Bernardo Alves Furtado @ Institute for Applied Economic Research (Ipea) and National Council of Research (CNPq)
currently submitted, with a preprint available at
http://arxiv.org/abs/2001.00034
To run the game and see a simulation, do:
python game_on.py
To run the game a number of times and record the results, do:
python simulation.py
You can adjust the number of times to run {m}. It takes only a matter of minutes to run 100,000 times.
To plot the figures of the paper, run:
python generate_paper_figures.py