hopeseekr / prisoners-dilemma
v1.0.0
2020-07-01 23:40 UTC
Requires
- php: ^7.4
- ext-json: *
- laravel-zero/framework: ^7.0
- phpexperts/console-painter: ^1.0
- phpexperts/php-evolver: ^1.0
- phpexperts/simple-dto: ^2.4
Requires (Dev)
README
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.
Installation
Via Composer
composer create-project hopeseekr/prisoners-dilemma
Usage
# 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
Testing
No tests have been created. I'm very open to contributions.
phpunit --testdox
Contributors
Theodore R. Smith theodore@phpexperts.pro
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.
License
MIT license. Please see the license file for more information.