Skip to content

Instantly share code, notes, and snippets.

@amosbastian
Last active January 26, 2018 10:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amosbastian/c7af04891046c88f4285c817c9e6922e to your computer and use it in GitHub Desktop.
Save amosbastian/c7af04891046c88f4285c817c9e6922e to your computer and use it in GitHub Desktop.
A selfish player for "The AI Contest #1: public goods problem"
from Game.Player import Player
from Game.Context import Context
from Game.Bet import Bet
class SelfishPlayer(Player):
def getSteemUser(self):
return "@amosbastian"
# Doesn't care about context, only himself
def think(self, context):
return Bet.NOTHING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment