Skip to content

Instantly share code, notes, and snippets.

@alasdairham
Created July 21, 2017 03:02
Show Gist options
  • Select an option

  • Save alasdairham/09f86b3d70a517ed1786e5ff2f0d31c5 to your computer and use it in GitHub Desktop.

Select an option

Save alasdairham/09f86b3d70a517ed1786e5ff2f0d31c5 to your computer and use it in GitHub Desktop.
class RPS:
actions = ['ROCK', 'PAPER', 'SCISSORS']
n_actions = 3
utilities = pd.DataFrame([
# ROCK PAPER SCISSORS
[ 0, -1, 1], # ROCK
[ 1, 0, -1], # PAPER
[-1, 1, 0] # SCISSORS
], columns=actions, index=actions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment