Skip to content
A prisoner's dilemma game simulation in Clojure
Clojure
Find file
Pull request Compare This branch is 18 commits behind christianromney:develop.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
docs
src/prisoners
test/prisoners/test
.gitignore
README.md
project.clj

README.md

prisoners

This is a Prisoner's Dilemma simulation written in Clojure.

I've selected the payoffs and names based on Richard Dawkins' description in The Selfish Gene.

The plan will be to develop a few different tournament types starting with a simple, random number of rounds and ending with an evolutionary tournament where strategies are paid with offspring.

The goal of this project is to learn both Clojure and some basic evolutionary/genetic programming techniques while having fun.

Getting Started

  • Run lein deps to download the dependencies
  • Run lein repl to experiment
  • Run lein marg to generate the documentation

TODO

  • Organize the namespace, break functions out into files by logical function
  • Drive the implementation with tests
  • Build the language up to the problem
  • Create the game and tournament abstractions
  • Create more strategies (ten would be nice)!
  • Use (clojure.contrib.combinatorics/selections [s1 s2 ... sn] 2) for the pairings

License

Copyright (C) 2011 Christian Romney

Distributed under the Eclipse Public License, the same as Clojure.

Something went wrong with that request. Please try again.