ErikThorsell / prisoners-dilemma_game

A genetic algorithm model playing the iterated prisoner's dilemma. Created as part of a game theory course.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Genetic Algorithm Model Playing the Iterated Prisoner's Dilemma

This repo contains the model used to generate the results found in the report Game_Theory_Project.pdf.


In short, the model plays the iterated prisoner's dilemma in accordance to one of four strategies (details in the report) and uses evolutionary selection to breed new strategies based on (1) how well strategy is doing and (2) random mutation.


How to run

If you want to try out the model you clone the repo and compile the model.

javac Dilemma.java
java Dilemma

Please refer to the report and Dilemma.java for specific details about the settings of the model.

About

A genetic algorithm model playing the iterated prisoner's dilemma. Created as part of a game theory course.


Languages

Language:Java 100.0%