def one_step(self): self.time_frame += 1 self.send_to_bot(CM.pack_request_for_step(self.run_number, self.time_frame, CM.TELEPORT, self.p)) self.receive_from_bot()
def process_step(self): if self.game_run is None or self.cat_direction is None: return self.send_to_bot( CM.pack_request_for_step(self.game_run.run_number, self.time_frame, self.cat_direction, self.p)) self.receive_from_bot()