from . import *
import time
class PlayerBot(Bot):
def play_round(self):
if self.group.GroupAcknowledgement == 1:
# Intro
time.sleep(2) # Sleep for x seconds
yield Acc_Intro
# Distribution Info
time.sleep(2) # Sleep for x seconds
yield Acc_AltDis_123_c
# Arguments Input
time.sleep(2) # Sleep for x seconds
yield Submission(Acc_2_Arg, {
"Acc_DistributionChange": 1,
"Acc_Arg": "xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx " +
"xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx " +
"xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx" +
" xxx xxx xxx xxx xxx xx"
}, check_html=False)
#
# Here, no argument gets accepted
if self.session.vars['do_acceptance']:
field_list = []
for i in range(1, 6):
if self.player.GroupRank != i:
field_list.append("Acc_ArgAkz_" + str(i))
# print(field_list)
dict_ = {i: 0 for i in field_list}
# print("@@ GroupRank, ", self.player.GroupRank, ": Akzeptanz Dict", dict_)
time.sleep(2) # Sleep for x seconds
yield Submission(Acc_3_RateBestArg, dict_, check_html=False)
#
#
# Here, no argument gets voted the best
if self.player.GroupRank != 1:
# Everyone except 1 thinks that Player 1 made the best argument
dict_ = {"Acc_ArgBest_1": 1,
"Acc_ArgBest_2": 0,
"Acc_ArgBest_3": 0,
"Acc_ArgBest_4": 0,
"Acc_ArgBest_5": 0
}
else:
dict_ = {"Acc_ArgBest_1": 0,
"Acc_ArgBest_2": 1,
"Acc_ArgBest_3": 0,
"Acc_ArgBest_4": 0,
"Acc_ArgBest_5": 0
}
time.sleep(2) # Sleep for x seconds
yield Submission(Acc_3_RateBestArg2, dict_, check_html=False)
#
# Overview of best arguments
time.sleep(2) # Sleep for x seconds
yield Acc_4_BestUebersicht,