Skip to content

HarryMcCarney/IteratedPrisonersDilemma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This is an F# implementation of Robert Axelrod's classic Prisoner's dilemma tournament held in 1984. It successfully reproduces the results described in his book The Evolution of Cooperation and includes the most interesting strategies including Tit For Tat, Grudger, Tit for Two Tats, and Tester.

The code is entirely immutable and uses recursion to spawn new generations of successful strategies. New strategies can be defined in the Strategies module.

An interesting adaptation of the game could include variable payoffs depending on depletion/regeneration of a shared environment. Perhaps this could explore optimal strategies in non zero sum games that must react to changing payoffs while anticipating the strategies of others. The maximum score achievable for a sustainable strategy, given a tournament with specific other strategies, may not be the leading strategy overall.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages