import game as pages from . import * c = cu class PlayerBot(Bot): cases = ['always_max_always_whistleblowing', 'always_max_always_not_whistleblowing', 'max'] def play_round(self): if self.case == "always_max_always_whistleblowing": yield RoundStart yield TaskScreen, dict(number_reported=100) yield WhistleblowingScreen, dict(whistleblowing=True) yield RoundSummary if self.player.round_number == C.NUM_ROUNDS: yield GameSummary elif self.case == "always_max_always_not_whistleblowing": yield RoundStart yield TaskScreen, dict(number_reported=100) yield WhistleblowingScreen, dict(whistleblowing=False) yield RoundSummary if self.player.round_number == C.NUM_ROUNDS: yield GameSummary elif self.case == "always_actual_always_not_whistleblowing": yield RoundStart yield TaskScreen, dict(number_reported=self.player.number_received) yield WhistleblowingScreen, dict(whistleblowing=False) yield RoundSummary if self.player.round_number == C.NUM_ROUNDS: yield GameSummary