field turn: int field his_hist: int [] field my_hist: int [] field defect: int field mod: int def start() -> void : defect = !(my_hist[turn-1] == his_hist[turn-1]) mod = turn / 2 mod = turn - mod * 2 if mod == 0: defect = !defect