@@ -381,36 +381,36 @@ def strategy(self, opponent: Player) -> Action:
381
381
382
382
if hist == [[C ,C ],[C ,C ],[C ,C ]]: # Rule: C
383
383
return C
384
- elif hist == [[C ,C ],[C ,C ],[D ,C ]]: # Rule: A
384
+ if hist == [[C , C ], [C , C ], [D , C ]]: # Rule: A
385
385
return C
386
- elif hist == [[C ,C ],[D ,C ],[C ,D ]]:
386
+ if hist == [[C , C ], [D , C ], [C , D ]]:
387
387
return C
388
- elif hist == [[D ,C ],[C ,D ],[C ,C ]]:
388
+ if hist == [[D , C ], [C , D ], [C , C ]]:
389
389
return C
390
- elif hist == [[C ,D ],[C ,C ],[C ,C ]]:
390
+ if hist == [[C , D ], [C , C ], [C , C ]]:
391
391
return C
392
- elif hist == [[C ,C ],[C ,C ],[C ,D ]]: # Rule: P
392
+ if hist == [[C , C ], [C , C ], [C , D ]]: # Rule: P
393
393
return D
394
- elif hist == [[C ,C ],[C ,D ],[D ,C ]]:
394
+ if hist == [[C , C ], [C , D ], [D , C ]]:
395
395
return C
396
- elif hist == [[C ,D ],[D ,C ],[C ,C ]]:
396
+ if hist == [[C , D ], [D , C ], [C , C ]]:
397
397
return C
398
- elif hist == [[D ,C ],[C ,C ],[C ,C ]]:
398
+ if hist == [[D , C ], [C , C ], [C , C ]]:
399
399
return C
400
- elif hist == [[D ,D ],[D ,D ],[D ,C ]]: # Rule: R1
400
+ if hist == [[D , D ], [D , D ], [D , C ]]: # Rule: R1
401
401
return C
402
- elif hist == [[D ,D ],[D ,C ],[C ,C ]]:
402
+ if hist == [[D , D ], [D , C ], [C , C ]]:
403
403
return C
404
- elif hist == [[D ,C ],[C ,C ],[C ,C ]]:
404
+ if hist == [[D , C ], [C , C ], [C , C ]]:
405
405
return C
406
- elif hist == [[D ,D ],[D ,D ],[C ,D ]]: # Rule: R2
406
+ if hist == [[D , D ], [D , D ], [C , D ]]: # Rule: R2
407
407
return C
408
- elif hist == [[D ,D ],[C ,D ],[C ,C ]]:
408
+ if hist == [[D , D ], [C , D ], [C , C ]]:
409
409
return C
410
- elif hist == [[C ,D ],[C ,C ],[C ,C ]]:
410
+ if hist == [[C , D ], [C , C ], [C , C ]]:
411
411
return C
412
- elif hist == [[D ,D ],[D ,D ],[C ,C ]]: # Rule: R3
412
+ if hist == [[D , D ], [D , D ], [C , C ]]: # Rule: R3
413
413
return C
414
- elif hist == [[D ,D ],[C ,C ],[C ,C ]]:
414
+ if hist == [[D , D ], [C , C ], [C , C ]]:
415
415
return C
416
416
return D
0 commit comments