The Prisoner's Dilemma Project is meant to see if evolutionary pressures alone are enough to arrive at an optimal solution to this age old philosophical thought experiment.
It uses the PHP Evolver genetic algorithm framework.
Via Composer
composer create-project hopeseekr/prisoners-dilemma
# Play the classic Prisoner's Dilemma yourself against a completely irrational opponent.
./dilemma play
# Run the Genetic Algorithm to see how Nature would evolve a strategy, assuming everyone is *purely* rational.
./dilemma evolve:classic
No tests have been created. I'm very open to contributions.
phpunit --testdox
Theodore R. Smith [email protected]
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.
MIT license. Please see the license file for more information.