com.anji.roshambo
Class UrzaPlayer

java.lang.Object
  extended by com.anji.roshambo.UrzaPlayer
All Implemented Interfaces:
RoshamboPlayer, IteratedPlayer, Player

public class UrzaPlayer
extends java.lang.Object
implements RoshamboPlayer

Urza roshambo bot by Martijn Muurman and Enno Peters 6-2002

Author:
Martijn Muurman and Enno Peters

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

UrzaPlayer

public UrzaPlayer()
Method Detail

reset

public void reset(int trials)
initialisatie ..arrays maken alles op 0 etc

Specified by:
reset in interface RoshamboPlayer
Specified by:
reset in interface IteratedPlayer
Parameters:
trials -

getPlayerId

public java.lang.String getPlayerId()
Specified by:
getPlayerId in interface RoshamboPlayer
Specified by:
getPlayerId in interface Player
Returns:
the name (and version) of this subject.
See Also:
Player.getPlayerId()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getAuthor

public java.lang.String getAuthor()
Specified by:
getAuthor in interface RoshamboPlayer
Returns:
the author's name of this subject.
See Also:
RoshamboPlayer.getAuthor()

storeMove

public void storeMove(int move,
                      int score)
laatst gespeelde move,ideale historie en slechte historie opslaan

Specified by:
storeMove in interface RoshamboPlayer
Parameters:
move -
score -

nextMove

public int nextMove()
In deze functie worden de voorspellingen van de verschillende strategien in een array gestopt. Vervolgens bepaald meta_strategie() welke strategie gespeeld word en wordt de historie van al deze strategien bijgewerkt.

Specified by:
nextMove in interface RoshamboPlayer
Returns:
next move

reset

public void reset()
Description copied from interface: Player
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

Specified by:
reset in interface Player
See Also:
Player.reset()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()