Iterated Prisoner's Dilemma

版本 1.0.0.0 (9.1 KB) 作者: Zachary Danziger
The iterated prisoner's dilemma game for multiple players and multiple submissions per player.
2.2K 次下载
更新时间 2010/5/14

查看许可证

The iterated prisoner's dilemma (IPD) game has long been studied in game theory, economics, programming, decision theory and other fields. It is a 2-player scenario where each player must decide to either 'cooperate' or 'defect' in a sequence of games, and their respective choices determine the relative success or failure of each player. Will you cooperate with your opponent or look to steal all the points for yourself?

This code runs a tournament among two or more players. Each player may submit as many "personalities" as they wish. Each personality submitted by each player plays the IPD game against all personalities submitted by all other players. Results are then plotted and outputted.

An example has already been set up in this submission among 3 example players and a number of simple sample personalties for each player. To create your own players and personalites, simply swap out the player directories and example functions. To run the example,
>> IPDshell

For more detail, specific rules and instructions for creating your own personalities,
>> help IPDshell

For more information on the prisoner's dilemma see:
http://plato.stanford.edu/entries/prisoner-dilemma/

引用格式

Zachary Danziger (2024). Iterated Prisoner's Dilemma (https://www.mathworks.com/matlabcentral/fileexchange/27611-iterated-prisoner-s-dilemma), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2009a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Strategy & Logic 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0