|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.roshambo.OneTrackMindPlayer
Field Summary |
Fields inherited from interface com.anji.roshambo.RoshamboPlayer |
DRAW, LOSS, PAPER, ROCK, SCISSORS, WIN |
Constructor Summary | |
OneTrackMindPlayer()
default ctor |
|
OneTrackMindPlayer(boolean aRandStart)
|
|
OneTrackMindPlayer(int aTrack)
|
Method Summary | |
java.lang.String |
getAuthor()
|
int |
getOneTrack()
|
java.lang.String |
getPlayerId()
|
int |
hashCode()
|
void |
init(Properties props)
|
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 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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public OneTrackMindPlayer()
public OneTrackMindPlayer(int aTrack)
aTrack
- public OneTrackMindPlayer(boolean aRandStart)
aRandStart
- Method Detail |
public void reset()
Player
reset
in interface Player
Player.reset()
public void reset(int trials)
RoshamboPlayer
reset
in interface RoshamboPlayer
trials
- RoshamboPlayer.reset(int)
public void storeMove(int move, int score)
RoshamboPlayer
storeMove
in interface RoshamboPlayer
move
- score
- RoshamboPlayer.storeMove(int, int)
public int nextMove()
RoshamboPlayer
nextMove
in interface RoshamboPlayer
RoshamboPlayer.nextMove()
public java.lang.String getPlayerId()
getPlayerId
in interface RoshamboPlayer
Player.getPlayerId()
public java.lang.String toString()
Object.toString()
public java.lang.String getAuthor()
getAuthor
in interface RoshamboPlayer
RoshamboPlayer.getAuthor()
public void init(Properties props) throws java.lang.Exception
init
in interface Configurable
props
- configuration parameters
java.lang.Exception
Configurable.init(Properties)
public int getOneTrack()
ROCK
,SCISSORS
, or PAPER
public int hashCode()
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |