Martin Final Project CS106A

by Martin


This program plays the prisoner's dilemma. The user gets to select whether they will cooperate or defect in a prisoner's dilemma game against an opponent with a pre-programmed strategy. The collective outcome of the user selection and the opponent's choice is highlighted in a grid.