Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor doc for second tournament #1082

Merged
merged 4 commits into from
Jul 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions axelrod/strategies/axelrod_second.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,12 @@ class Tester(Player):
"""
Submitted to Axelrod's second tournament by David Gladstein.

Defects on the first move and plays Tit For Tat if the opponent ever defects
(after one apology cooperation round). Otherwise alternate cooperation and
defection.
This strategy is a TFT variant that attempts to exploit certain strategies. It
defects on the first move. If the opponent ever defects, TESTER 'apologies' by
cooperating and then plays TFT for the rest of the game. Otherwise TESTER
alternates cooperation and defection.

This strategy came 46th in Axelrod's second tournament.

Names:

Expand Down
33 changes: 1 addition & 32 deletions docs/reference/overview_of_strategies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ repository.
"K74R_", "Edward Friedland", "Not Implemented"
"K74RXX_", "Edward Friedland", "Not Implemented"
"K75R_", "P D Harrington", "Not Implemented"
"K76R_", "David Gladstein", "Not Implemented"
"K76R_", "David Gladstein", ":class:`Tester <axelrod.strategies.axelrod_second.Tester>`"
"K77R_", "Scott Feld", ":class:`Feld <axelrod.strategies.axelrod_first.Feld>`"
"K78R_", "Fred Mauk", "Not Implemented"
"K79R_", "Dennis Ambuehl and Kevin Hickey", Not Implemented
Expand All @@ -170,37 +170,6 @@ repository.
"KTF2TC_", "Unknown", ":class:`TitFor2Tats <axelrod.strategies.titfortat.TitFor2Tats>`"
"KTITFORTATC_", Anatol Rapoport, ":class:`TitForTat <axelrod.strategies.titfortat.TitForTat>`"

EATHERLEY
^^^^^^^^^

This strategy was submitted by Graham Eatherley to Axelrod's second tournament
and generally cooperates unless the opponent defects, in which case Eatherley
defects with a probability equal to the proportion of rounds that the opponent
has defected.

*This strategy came in Axelrod's second tournament.*

CHAMPION
^^^^^^^^

This strategy was submitted by Danny Champion to Axelrod's second tournament and
operates in three phases. The first phase lasts for the first 1/20-th of the
rounds and Champion always cooperates. In the second phase, lasting until
4/50-th of the rounds have passed, Champion mirrors its opponent's last move. In
the last phase, Champion cooperates unless
- the opponent defected on the last round, and
- the opponent has cooperated less than 60% of the rounds, and
- a random number is greater than the proportion of rounds defected

TESTER
^^^^^^

This strategy is a TFT variant that attempts to exploit certain strategies. It
defects on the first move. If the opponent ever defects, TESTER 'apologies' by
cooperating and then plays TFT for the rest of the game. Otherwise TESTER
alternates cooperation and defection.

*This strategy came 46th in Axelrod's second tournament.*

Stewart and Plotkin's Tournament (2012)
---------------------------------------
Expand Down