Skip to content

Commit 0de7119

Browse files
committed
Conflicts: axelrod/strategies/_strategies.py axelrod/strategies/axelrod_second.py axelrod/tests/strategies/test_axelrod_second.py
2 parents 3e16e83 + 3ea8330 commit 0de7119

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

CHANGES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
# v3.9.0, 2017-10-13
1+
# v3.10.0, 2017-11-27
2+
3+
One new strategy
4+
5+
- Add the WmAdams strategy:
6+
https://github.com/Axelrod-Python/Axelrod/pull/1142
7+
8+
Here are all the commits for this PR:
9+
https://github.com/Axelrod-Python/Axelrod/compare/v3.10.0...v3.9.0
10+
11+
# v3.9.0, 2017-11-19
212

313
New strategies, a minor bug fix and a small documentation improvement.
414

axelrod/strategies/axelrod_second.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,10 @@ def strategy(self, opponent: Player) -> Action:
760760
if turn == 1: return C
761761

762762
number_defects = opponent.defections
763+
<<<<<<< HEAD
764+
=======
765+
# Size of numerator is smaller than denomator -- How it was in the Fortran.
766+
>>>>>>> 3ea83307c177a472ddd174295ee32f5ba2ca7ffa
763767
perc_defects = number_defects / turn
764768

765769
# If overly defect or appears random
@@ -778,7 +782,10 @@ def strategy(self, opponent: Player) -> Action:
778782
else:
779783
return C
780784

785+
<<<<<<< HEAD
781786

787+
=======
788+
>>>>>>> 3ea83307c177a472ddd174295ee32f5ba2ca7ffa
782789
class WmAdams(Player):
783790
"""
784791
Strategy submitted to Axelrod's second tournament by William Adams (K44R),

axelrod/tests/strategies/test_axelrod_second.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def test_strategy(self):
586586
actions += [(C, C)] * 99
587587
self.versus_test(changed_man, expected_actions=actions, seed=1)
588588

589-
class Test(TestPlayer):
589+
class TestGraaskampKatzen(TestPlayer):
590590
name = "GraaskampKatzen"
591591
player = axelrod.GraaskampKatzen
592592
expected_classifier = {

axelrod/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.9.0"
1+
__version__ = "3.10.0"

0 commit comments

Comments
 (0)