hopeseekr/prisoners-dilemma

v1.0.0 2020-07-01 23:40 UTC

This package is auto-updated.

Last update: 2024-08-26 14:51:37 UTC


README

TravisCI Maintainability Test Coverage

囚犯困境项目旨在查看仅仅通过进化压力是否足以达到这一古老哲学思想实验的优化解决方案。

它使用了 PHP Evolver 遗传算法框架

安装

通过 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

image

测试

尚未创建测试。我非常欢迎贡献。

phpunit --testdox

贡献者

Theodore R. Smith theodore@phpexperts.pro
GPG 指纹: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
CEO: PHP Experts, Inc.

许可

MIT 许可证。请参阅 许可文件 以获取更多信息。