Axelrod-Python / Axelrod

A research tool for the Iterated Prisoner's Dilemma
http://axelrod.readthedocs.org/
Other
723 stars 265 forks source link

Change the TFT in the first tournament #1432

Closed 623637719 closed 8 months ago

623637719 commented 8 months ago

I ran the code for the first tournament in the following way.

import axelrod as axl
first_tournament_participants_ordered_by_reported_rank = [s() for s in axl.axelrod_first_strategies]
tournament=axl.Tournament(players=first_tournament_participants_ordered_by_reported_rank,turns=200,repetitions=5,seed=1, )
results = tournament.play()

if I wanted to run it locally, in this tournament, I had TFT choose defection in the last two rounds. how should I change the code?

623637719 commented 8 months ago

@drvinceknight

marcharper commented 8 months ago

Are you asking how to make TFT defect in the last two rounds? You can use one of the strategy transformers to modify the TFT strategy to do so. See the documentation for how to achieve this.

623637719 commented 8 months ago

Are you asking how to make TFT defect in the last two rounds? You can use one of the strategy transformers to modify the TFT strategy to do so. See the documentation for how to achieve this.

image done.thank you