Skip to content

Commit 23840d8

Browse files
committed
More changes
1 parent 100e511 commit 23840d8

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

axelrod/strategies/axelrod_first.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -492,18 +492,18 @@ def strategy(opponent: Player) -> Action:
492492

493493
@FinalTransformer((D, D), name_prefix=None)
494494
class SteinAndRapoport(Player):
495-
"""
496-
A player who plays according to statistic methods.
497-
Begins by playing C for the first four (4) rounds , then it plays
498-
tit for tat and at the last 2 round it Defects. Every 15 turns it
499-
run a chi-squared test to check whether the opponent behaves randomly
500-
or not . In case the opponent behaves randomly then Stein_and_Rapoport
501-
Defects untill the next 15 round (where we check again), otherwise he
502-
still plays TitForTat.
503-
504-
Names:
505-
- SteinAndRapoport [Axelrod1980]_
506-
"""
495+
"""
496+
A player who plays according to statistic methods.
497+
Begins by playing C for the first four (4) rounds , then it plays
498+
tit for tat and at the last 2 round it Defects. Every 15 turns it
499+
run a chi-squared test to check whether the opponent behaves randomly
500+
or not . In case the opponent behaves randomly then Stein_and_Rapoport
501+
Defects untill the next 15 round (where we check again), otherwise he
502+
still plays TitForTat.0
503+
504+
Names:
505+
- SteinAndRapoport [Axelrod1980]_
506+
"""
507507

508508
name = 'Stein and Rapoport'
509509
classifier = {

docs/reference/overview_of_strategies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Strategies in the Axelrod's first tournament:
2828
+--------------------------+-------------------------------------------+--------------------------+
2929
| `Shubik`_ | Shubik (author's name) | :code:`Shubik` |
3030
+--------------------------+-------------------------------------------+--------------------------+
31-
| `Stein and Rapoport`_ | Stein and Rapoport (authors' names) | Not Implemented |
31+
| `Stein and Rapoport`_ | Stein and Rapoport (authors' names) | :code:`SteinAndRapoport` |
3232
+--------------------------+-------------------------------------------+--------------------------+
3333
| `Grudger`_ | Grudger (by Friedman) | :code:`Grudger` |
3434
+--------------------------+-------------------------------------------+--------------------------+

0 commit comments

Comments
 (0)