|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.roshambo.Muto5Player
http://www.cs.unimaas.nl/~donkers/games/roshambo03/ TODO - reset fields
Nested Class Summary | |
class |
Muto5Player.Tris2
http://www.cs.unimaas.nl/~donkers/games/roshambo03/ |
class |
Muto5Player.Tris3
http://www.cs.unimaas.nl/~donkers/games/roshambo03/ |
Field Summary |
Fields inherited from interface com.anji.roshambo.RoshamboPlayer |
DRAW, LOSS, PAPER, ROCK, SCISSORS, WIN |
Constructor Summary | |
Muto5Player()
|
Method Summary | |
java.lang.String |
getAuthor()
|
java.lang.String |
getPlayerId()
|
int |
hashCode()
|
int |
nextMove()
Produce your next move. |
void |
reset()
reset player state; after a call to reset, the player should be in the same state as it was when created; i.e., it has no memory of previous games played |
void |
reset(int aTrials)
Initialize a new match against an unknown opponent. |
void |
storeMove(int move,
int aScore)
Store the opponent's choice and the outcome of the latest move. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Muto5Player()
Method Detail |
public java.lang.String getPlayerId()
getPlayerId
in interface RoshamboPlayer
Player.getPlayerId()
public java.lang.String getAuthor()
getAuthor
in interface RoshamboPlayer
RoshamboPlayer.getAuthor()
public void reset()
Player
reset
in interface Player
Player.reset()
public void reset(int aTrials)
RoshamboPlayer
reset
in interface RoshamboPlayer
aTrials
- RoshamboPlayer.reset(int)
public void storeMove(int move, int aScore)
RoshamboPlayer
storeMove
in interface RoshamboPlayer
move
- aScore
- RoshamboPlayer.storeMove(int, int)
public java.lang.String toString()
Object.toString()
public int nextMove()
RoshamboPlayer
nextMove
in interface RoshamboPlayer
RoshamboPlayer.nextMove()
public int hashCode()
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |