File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -492,18 +492,18 @@ def strategy(opponent: Player) -> Action:
492
492
493
493
@FinalTransformer ((D , D ), name_prefix = None )
494
494
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
+ """
507
507
508
508
name = 'Stein and Rapoport'
509
509
classifier = {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Strategies in the Axelrod's first tournament:
28
28
+--------------------------+-------------------------------------------+--------------------------+
29
29
| `Shubik `_ | Shubik (author's name) | :code: `Shubik ` |
30
30
+--------------------------+-------------------------------------------+--------------------------+
31
- | `Stein and Rapoport `_ | Stein and Rapoport (authors' names) | Not Implemented |
31
+ | `Stein and Rapoport `_ | Stein and Rapoport (authors' names) | :code: ` SteinAndRapoport ` |
32
32
+--------------------------+-------------------------------------------+--------------------------+
33
33
| `Grudger `_ | Grudger (by Friedman) | :code: `Grudger ` |
34
34
+--------------------------+-------------------------------------------+--------------------------+
You can’t perform that action at this time.
0 commit comments