|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectipdlx.Game
ipdlx.MultiPlayerGame
public class MultiPlayerGame
A multiplayer game.
| Field Summary |
|---|
| Fields inherited from class ipdlx.Game |
|---|
broadcastResult, broadcastRoundResults, gameListeners, gameMatrix, gameResult, moveTimeLimit, players, probabilityOfMistake, stDev |
| Fields inherited from interface ipdlx.PDValues |
|---|
COOPERATE, DEFAULT_MISTAKE_LEVEL, DEFAULT_PUNISHMENT, DEFAULT_REWARD, DEFAULT_SUCKER, DEFAULT_TEMPTATION, DEFECT, EXIT, moves, PLAYER_A, PLAYER_B |
| Constructor Summary | |
|---|---|
MultiPlayerGame(Game game)
Constructs a new game with the same game parameters as the given one. |
|
MultiPlayerGame(int nrOfRounds,
GameMatrix gameMatrix)
constructor |
|
MultiPlayerGame(int nrOfRounds,
GameMatrix gameMatrix,
float noise)
constructor |
|
| Method Summary | |
|---|---|
GameResult |
play()
plays the game and return the results of it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiPlayerGame(Game game)
game - a template game to copy parameters from
public MultiPlayerGame(int nrOfRounds,
GameMatrix gameMatrix)
nrOfRounds - number of iterationsgameMatrix - matrix of the prisoner's dilemma game
public MultiPlayerGame(int nrOfRounds,
GameMatrix gameMatrix,
float noise)
nrOfRounds - number of iterationsgameMatrix - matrix of the prisoner's dilemma gamenoise - probability of mistake| Method Detail |
|---|
public GameResult play()
play in class Game
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||