📚 The CoCalc Library - books, templates and other resources
1class suspiciousTitForTat(): 2 def step(self, history, round): 3 if round == 0: 4 action = 0 5 else: 6 # action = history[self.history^1][round-1] 7 action = history[self.order^1][round-1] 8 return action 9