These Python scripts are meant to accompany the journal article, "Towards a Computer Simulation of Virtue Ethics" published in Open Philosophy.
The article is available at https://www.degruyter.com/view/j/opphil.2019.2.issue-1/opphil-2019-0029/opphil-2019-0029.xml.
temperance.py runs the simulation step by step.
temperance_automatic.py runs the simulation automatically for a given number of steps and then presents results in the form of Matplotlib plots.