File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -595,7 +595,7 @@ class Borufsen(Player):
595
595
re-evaluate the mode. Enter defect mode if any of the following
596
596
conditions hold:
597
597
598
- - Detected random: Opponent cooperated 7-18 times since last mode
598
+ - Detected random: Opponent cooperated 7-18 times since last mode
599
599
evaluation (or start) AND less than 70% of opponent cooperation was in
600
600
response to player's cooperation, i.e.
601
601
cc_count / (cc_count+cd_count) < 0.7
@@ -757,12 +757,12 @@ class Cave(Player):
757
757
758
758
def strategy (self , opponent : Player ) -> Action :
759
759
turn = len (self .history ) + 1
760
- if turn == 1 : return C
760
+ if turn == 1 :
761
+ return C
761
762
762
763
number_defects = opponent .defections
763
764
perc_defects = number_defects / turn
764
-
765
- # If overly defect or appears random
765
+ # Defect if the opponent has defected often or appears random.
766
766
if turn > 39 and perc_defects > 0.39 :
767
767
return D
768
768
if turn > 29 and perc_defects > 0.65 :
You can’t perform that action at this time.
0 commit comments