|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
http://www.cs.unimaas.nl/~donkers/games/roshambo03/
Field Summary | |
static int |
DRAW
enumerated value for draw (aka, tie) |
static int |
LOSS
enumerated value for loss |
static int |
PAPER
enumerated value for paper |
static int |
ROCK
enumerated value for rock |
static int |
SCISSORS
enumerated value for scissors |
static int |
WIN
enumerated value for win |
Method Summary | |
java.lang.String |
getAuthor()
|
java.lang.String |
getPlayerId()
|
int |
nextMove()
Produce your next move. |
void |
reset(int trials)
Initialize a new match against an unknown opponent. |
void |
storeMove(int move,
int score)
Store the opponent's choice and the outcome of the latest move. |
Methods inherited from interface com.anji.tournament.Player |
reset |
Field Detail |
public static final int ROCK
public static final int PAPER
public static final int SCISSORS
public static final int DRAW
public static final int WIN
public static final int LOSS
Method Detail |
public void reset(int trials)
reset
in interface IteratedPlayer
trials
- public void storeMove(int move, int score)
move
- score
- public int nextMove()
public java.lang.String getPlayerId()
getPlayerId
in interface Player
public java.lang.String getAuthor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |