|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 RoshamboPlayerreset in interface IteratedPlayertrials - public java.lang.String getPlayerId()
getPlayerId in interface RoshamboPlayergetPlayerId in interface PlayerPlayer.getPlayerId()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String getAuthor()
getAuthor in interface RoshamboPlayerRoshamboPlayer.getAuthor()
public void storeMove(int move,
int score)
storeMove in interface RoshamboPlayermove - score - public int nextMove()
nextMove in interface RoshamboPlayerpublic void reset()
Player
reset in interface PlayerPlayer.reset()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||