import rpstournament import random #Your class must be called GamePlayer, and it must have these functions class GamePlayer: #Give your AI a name. You can put your name in it or not, depending on whether you want to be anonymous. #You can submit multiple AI's with different names for the tournament name = "My AI's Name" def make_choice(self): #This function must return 1 of 3 values, 'rock', 'paper', or 'scissors' #If it returns anything else, your AI will forfeit the match return random.choice(['rock', 'paper', 'scissors']) def view_opponent_choice(self, opponent_choice): #This function doesn't have to do anything #You will be shown your opponent's choice from last round #One of 'rock', 'paper', or 'scissors' #You are not allowed to access win and loss records from the Tournament code #If you want to track your win and loss rate, you will need to compare #Your choice to your opponent's choice here. return def new_player(self): #This function doesn't have to do anything #This will be called when you face a new opponent in a new match #You might want to use this method to reset your AI's strategy return tournament_manager = rpstournament.TournamentManager() example_game_player = GamePlayer() tournament_manager.run_tournament(example_game_player)