|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.anji.roshambo.UrzaPlayer
Urza roshambo bot by Martijn Muurman and Enno Peters 6-2002
Field Summary |
Fields inherited from interface com.anji.roshambo.RoshamboPlayer |
DRAW, LOSS, PAPER, ROCK, SCISSORS, WIN |
Constructor Summary | |
UrzaPlayer()
|
Method Summary | |
java.lang.String |
getAuthor()
|
java.lang.String |
getPlayerId()
|
int |
hashCode()
|
int |
nextMove()
In deze functie worden de voorspellingen van de verschillende strategien in een array gestopt. |
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)
initialisatie ..arrays maken alles op 0 etc |
void |
storeMove(int move,
int score)
laatst gespeelde move,ideale historie en slechte historie opslaan |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UrzaPlayer()
Method Detail |
public void reset(int trials)
reset
in interface RoshamboPlayer
trials
- 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 storeMove(int move, int score)
storeMove
in interface RoshamboPlayer
move
- score
- public int nextMove()
nextMove
in interface RoshamboPlayer
public void reset()
Player
reset
in interface Player
Player.reset()
public int hashCode()
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |