com.anji.roshambo
Class Muto5Player.Tris2

java.lang.Object
  extended bycom.anji.roshambo.Muto5Player.Tris2
All Implemented Interfaces:
IteratedPlayer, Player, RoshamboPlayer
Enclosing class:
Muto5Player

public class Muto5Player.Tris2
extends java.lang.Object
implements RoshamboPlayer

http://www.cs.unimaas.nl/~donkers/games/roshambo03/


Field Summary
 
Fields inherited from interface com.anji.roshambo.RoshamboPlayer
DRAW, LOSS, PAPER, ROCK, SCISSORS, WIN
 
Constructor Summary
Muto5Player.Tris2(int aTrials)
          ctor
 
Method Summary
 java.lang.String getAuthor()
           
 java.lang.String getPlayerId()
           
 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 aTrials)
          Initialize a new match against an unknown opponent.
 void storeMove(int move, int aScore)
          Store the opponent's choice and the outcome of the latest move.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Muto5Player.Tris2

public Muto5Player.Tris2(int aTrials)
ctor

Parameters:
aTrials -
Method Detail

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()

reset

public void reset(int aTrials)
Description copied from interface: RoshamboPlayer
Initialize a new match against an unknown opponent. The length of the match is specified in the paramater "trials". This function is always called before any match is played.

Specified by:
reset in interface RoshamboPlayer
Parameters:
aTrials -
See Also:
RoshamboPlayer.reset(int)

storeMove

public void storeMove(int move,
                      int aScore)
Description copied from interface: RoshamboPlayer
Store the opponent's choice and the outcome of the latest move. This function is called after every move. move is one of ROCK, PAPER, SCISSORS. score is one of DRAW, WIN, LOSS.

Specified by:
storeMove in interface RoshamboPlayer
Parameters:
move -
aScore -
See Also:
RoshamboPlayer.storeMove(int, int)

nextMove

public int nextMove()
Description copied from interface: RoshamboPlayer
Produce your next move.

Specified by:
nextMove in interface RoshamboPlayer
Returns:
one of ROCK, PAPER, SISSORS
See Also:
RoshamboPlayer.nextMove()

getPlayerId

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

getAuthor

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