from . import * import time class PlayerBot(Bot): def play_round(self): if self.session.vars['do_arguments_a_vote']: # Arguments Input (genau 250 Zeichen) time.sleep(2) # Sleep for x seconds yield AVote_Arg, {"AVote_AckArg": "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"} # if self.session.vars['do_acceptance']: field_list = [] for i in range(1, 6): if self.player.GroupRank != i: field_list.append("AVote_ArgAkz_" + str(i)) 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(AVote_RateBestArg, dict_, check_html=False) # # if self.player.GroupRank != 1: # Everyone except 1 thinks that Player 1 made the best argument dict_ = {"AVote_ArgBest_1": 1, "AVote_ArgBest_2": 0, "AVote_ArgBest_3": 0, "AVote_ArgBest_4": 0, "AVote_ArgBest_5": 0 } else: dict_ = {"AVote_ArgBest_1": 0, "AVote_ArgBest_2": 1, "AVote_ArgBest_3": 0, "AVote_ArgBest_4": 0, "AVote_ArgBest_5": 0 } time.sleep(2) # Sleep for x seconds yield Submission(AVote_RateBestArg2, dict_, check_html=False) # # Overview best arguments time.sleep(2) # Sleep for x seconds yield AVote_BestUebersicht