A python implementation of the prisoner's dilemma