Skip to content

Instantly share code, notes, and snippets.

@shahradj
Last active October 2, 2019 07:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shahradj/dbc08f7d6cbb5264244d9dade66cdefc to your computer and use it in GitHub Desktop.
Save shahradj/dbc08f7d6cbb5264244d9dade66cdefc to your computer and use it in GitHub Desktop.
Prisoners Dilemma
class Prisoners:
actions = ['SILENCE', 'SNITCH']
n_actions = 2
utilities = pd.DataFrame([
# SILENCE SNITCH
[ -2, -5], # SILENCE
[ -1, -3] # SNITCH
], columns=actions, index=actions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment