Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arose13/prisonersdilemma
Program vs Program War in this classical game theory dilemma
https://github.com/arose13/prisonersdilemma
Last synced: 12 days ago
JSON representation
Program vs Program War in this classical game theory dilemma
- Host: GitHub
- URL: https://github.com/arose13/prisonersdilemma
- Owner: arose13
- Created: 2015-01-14T00:29:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-14T02:21:33.000Z (almost 10 years ago)
- Last Synced: 2024-10-29T14:39:28.470Z (about 2 months ago)
- Language: Java
- Size: 238 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PrisonersDilemma
Program vs Program War in this classical game theory dilemma.
Player classes must have a public play() method to be used that returns a boolean value.
Example are in the Angel.class. Other than that any private function can be used.# Rules
- Both players start with a random amount of money.
- If both play cooperate (true) add 300 to both players
- If both play defected (false) remove 100 to both players
- If players play opposite (true and false) the one that plays false gets 500 and the one that plays true gets 0
- If player runs out of money then they lose.