SkillAgentSearch skills...

AxelrodExamples

:bar_chart: Analysis and examples for the Axelrod-Python library

Install / Use

/learn @Axelrod-Python/AxelrodExamples
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

AxelrodExamples

Strategy visualizations and example tournaments for the iterated Prisoner's Dilemma library Axelrod.

Strategy Visualizations

The first strategy visualization displays how often a strategy cooperates with every other strategy per round, averaged over many interactions (~200 repeated games between every pair of strategies).

Cooperation Rate Heatmaps

<b>ZDGTFT2</b><br/>

<div style="text-align:center"> <p>Left: no noise | Right: 5% noise</p> <img src ="http://www.marcharper.codes/axelrod/heatmaps/cooperation/ZD-GTFT-2: 0.25, 0.5.png" width="45%" alt="Cooperation Rate Heatmap"/> <img src ="http://www.marcharper.codes/axelrod/heatmaps/cooperation-noisy/ZD-GTFT-2: 0.25, 0.5.png" width="45%" alt="Cooperation Rate Heatmap with 5% noise"/> </div>

<b>Calculator</b><br/>

<div style="text-align:center"> <p>Left: no noise | Right: 5% noise</p> <img src ="http://www.marcharper.codes/axelrod/heatmaps/cooperation/Calculator.png" width="45%" alt="Cooperation Heatmap"/> <img src ="http://www.marcharper.codes/axelrod/heatmaps/cooperation-noisy/Calculator.png" width="45%" alt="Cooperation Heatmap with 5% noise"/> </div>

As you can see, the introduction of noise alters the efficacy of Calculator's cycle detection algorithm.

Average Score Heatmaps

We can also visualize the average payoff per round earned by each strategy versus every other strategy per round, averaged over many interactions (~200 repeated games between every pair of strategies).

<b>Alternator</b><br/>

<div style="text-align:center"> <p>Left: no noise | Right: 5% noise</p> <img src ="http://www.marcharper.codes/axelrod/heatmaps/score/Alternator.png" width="45%" alt="Average Score Heatmap"/> <img src ="http://www.marcharper.codes/axelrod/heatmaps/score-noisy/Alternator.png" width="45%" alt="Average Score Heatmap with 5% noise"/> </div>

<b>Evolved ANN 5 Noise 05</b><br/>

Mean Score Heatmap


<div style="text-align:center"> <p>Left: no noise | Right: 5% noise</p> <img src ="http://www.marcharper.codes/axelrod/heatmaps/score/Evolved ANN 5 Noise 05.png" width="45%" alt="Mean Score Heatmap"/> <img src ="http://www.marcharper.codes/axelrod/heatmaps/score-noisy/Evolved ANN 5 Noise 05.png" width="45%" alt="Mean Score Heatmap with 5% noise"/> </div>

All Strategies Heatmaps

Click to see all the renderings for each strategy.

View on GitHub
GitHub Stars18
CategoryDevelopment
Updated5mo ago
Forks2

Languages

Python

Security Score

87/100

Audited on Oct 21, 2025

No findings