Last active
October 2, 2019 07:25
-
-
Save shahradj/dbc08f7d6cbb5264244d9dade66cdefc to your computer and use it in GitHub Desktop.
Prisoners Dilemma
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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