import BG_AWARD as pages from . import * c = cu class PlayerBot(Bot): def play_round(self): if self.player.round_number == 1: yield Role if self.player.round_number == 1 and player.id_in_group != 1: yield IstruzioniPlayer if self.player.round_number == 1 and player.id_in_group == 1: yield IstruzioniUmpire if self.player.round_number == 1: yield Start if self.player.id_in_group != 1 and player.round_number != 1: yield Info, dict(Info=True) if self.player.round_number != 1 and player.id_in_group != 1 and player.Info == True: yield DiscoveryUmpire if self.player.round_number != 1 and player.id_in_group != 1 and player.Info == True: yield Uscita, dict(partecipare=1) if self.player.id_in_group != 1 and player.round_number == 1: yield Contribuzione, dict(contribution=0, bribe=0) if self.player.id_in_group != 1 and player.errore == 1: yield Error, dict(contribution=0, bribe=0) if self.player.round_number != 1 and player.id_in_group != 1 and player.Info == False or player.partecipare == 1: yield Contribuzione2, dict(contribution=0, bribe=0) if self.player.id_in_group == 1 and player.exitpl2 == 0 and player.bribeplayer2 == 0 and player.partecipantipg >1: yield Punishment2, dict(punishment2=0) if self.player.id_in_group == 1 and player.exitpl2 == 0 and player.bribeplayer2 != 0 and player.partecipantipg >1: yield Punishment2bribe, dict(bribe2=1, punishment2=0) if self.player.id_in_group == 1 and player.exitpl2 == 1 and player.partecipantipg > 1: yield Nopunishment2 if self.player.id_in_group == 1 and player.exitpl2 == 1 and player.partecipantipg <= 1: yield NoPunishment2NOPGExit if self.player.id_in_group == 1 and player.exitpl2 == 0 and player.partecipantipg <= 1: yield NoPunishment2NOPG if self.player.id_in_group == 1 and player.exitpl3 == 0 and player.bribeplayer3 == 0 and player.partecipantipg >1: yield Punishment3, dict(punishment3=0) if self.player.id_in_group == 1 and player.exitpl3 == 0 and player.bribeplayer3 !=0 and player.partecipantipg >1: yield Punishment3bribe, dict(bribe3=1, punishment3=0) if self.player.id_in_group == 1 and player.exitpl3 == 1 and player.partecipantipg > 1: yield Nopunishment3 if self.player.id_in_group == 1 and player.exitpl3 == 1 and player.partecipantipg <= 1: yield NoPunishment3NOPGEXIT if self.player.id_in_group == 1 and player.exitpl3== 0 and player.partecipantipg <= 1: yield NoPunishment3NOPG if self.player.id_in_group == 1 and player.exitpl4 == 0 and player.bribeplayer4 == 0 and player.partecipantipg > 1: yield Punishment4, dict(punishment4=0) if self.player.id_in_group == 1 and player.exitpl4 == 0 and player.bribeplayer4 != 0 and player.partecipantipg >1: yield Punishment4bribe, dict(bribe4=1, punishment4=0) if self.player.id_in_group == 1 and player.exitpl4 == 1 and player.partecipantipg > 1: yield Nopunishment4 if self.player.id_in_group == 1 and player.exitpl4 == 0 and player.partecipantipg <= 1: yield NoPunishment4NOPG if self.player.id_in_group == 1 and player.exitpl4 == 1 and player.partecipantipg <= 1: yield NoPunishment4NOPGEXIT if self.player.id_in_group == 1 and player.exitpl5 == 0 and player.bribeplayer5 == 0 and player.partecipantipg >1: yield Punishment5, dict(punishment5=0) if self.player.id_in_group == 1 and player.exitpl5 == 0 and player.bribeplayer5 !=0 and player.partecipantipg >1: yield Punishment5bribe, dict(bribe5=1, punishment5=0) if self.player.id_in_group == 1 and player.exitpl5 == 1 and player.partecipantipg > 1: yield Nopunishment5 if self.player.id_in_group == 1 and player.exitpl5 == 0 and player.partecipantipg <= 1: yield NoPunishment5NOPG if self.player.id_in_group == 1 and player.exitpl5 == 1 and player.partecipantipg <= 1: yield NoPunishment5NOPGEXIT if self.player.round_number == 1: yield PayoffRound1 if self.player.round_number != 1: yield Payoff2 if self.player.round_number == 5: yield Ringraziamento