|
Evolving Strategies for the Prisoner's Dilemma | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ie.errity.pd.Game
A game of the Iterated Prisoner's Dilemma between two
Prisoners
| Constructor Summary | |
Game(Prisoner p1,
Prisoner p2,
Rules r)
Create a new game of the Iterated Prisoner's Dilemma between two players |
|
| Method Summary | |
int[] |
getScores()
Get game results |
void |
Play()
Play a game of IPD according to the rules |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Game(Prisoner p1,
Prisoner p2,
Rules r)
p1 - player 1p2 - player 2r - the rules which govern the game| Method Detail |
public void Play()
public int[] getScores()
|
Andrew Errity [99086921] | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||