|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.anji.roshambo.UrzaPlayer
public class 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
reset
in interface IteratedPlayer
trials
- public java.lang.String getPlayerId()
getPlayerId
in interface RoshamboPlayer
getPlayerId
in interface Player
Player.getPlayerId()
public java.lang.String toString()
toString
in class java.lang.Object
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()
hashCode
in class java.lang.Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |