|
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.Tournament
Iterated Prisoner's Dilemma Tournament
In such a tournament every player plays the IPD against every other player
and themselves.
| Constructor Summary | |
Tournament(Prisoner[] plyrs,
Rules r)
Create new Iterated Prisoner's Dilemma Tournament |
|
| Method Summary | |
int[] |
getResults()
Returns the Tournament results |
int |
maxResult()
Returns index of highest scoring individual |
double |
meanResult()
Returns the average score |
int |
minResult()
Returns index of lowest scoring individual |
int[] |
Play()
Play the tournament |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Tournament(Prisoner[] plyrs,
Rules r)
plyrs - an array containing the competitorsr - the rules to govern the Tournament| Method Detail |
public int[] Play()
public int[] getResults()
public int minResult()
public int maxResult()
public double meanResult()
|
Andrew Errity [99086921] | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||