com.anji.roshambo
Interface RoshamboPlayer

All Superinterfaces:
IteratedPlayer, Player
All Known Implementing Classes:
AnjiNetRoshamboPlayer, AnjiNetScanningRoshamboPlayer, CopyingPlayer, DeanPlayer, EnigmaPlayer, GnobotPlayer, IocainePlayer, JustRockPlayer, MarshalbotPlayer, MohammedkaaschPlayer, Muto5Player, Muto5Player.Tris2, Muto5Player.Tris3, OneTrackMindPlayer, RandomPlayer, RotatingPlayer, Tris3Player, UrzaPlayer, WizardexpPlayer

public interface RoshamboPlayer
extends IteratedPlayer

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


Field Summary
static int DRAW
          enumerated value for draw (aka, tie)
static int LOSS
          enumerated value for loss
static int PAPER
          enumerated value for paper
static int ROCK
          enumerated value for rock
static int SCISSORS
          enumerated value for scissors
static int WIN
          enumerated value for win
 
Method Summary
 java.lang.String getAuthor()
           
 java.lang.String getPlayerId()
           
 int nextMove()
          Produce your next move.
 void reset(int trials)
          Initialize a new match against an unknown opponent.
 void storeMove(int move, int score)
          Store the opponent's choice and the outcome of the latest move.
 
Methods inherited from interface com.anji.tournament.Player
reset
 

Field Detail

ROCK

public static final int ROCK
enumerated value for rock

See Also:
Constant Field Values

PAPER

public static final int PAPER
enumerated value for paper

See Also:
Constant Field Values

SCISSORS

public static final int SCISSORS
enumerated value for scissors

See Also:
Constant Field Values

DRAW

public static final int DRAW
enumerated value for draw (aka, tie)

See Also:
Constant Field Values

WIN

public static final int WIN
enumerated value for win

See Also:
Constant Field Values

LOSS

public static final int LOSS
enumerated value for loss

See Also:
Constant Field Values
Method Detail

reset

public void reset(int trials)
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 IteratedPlayer
Parameters:
trials -

storeMove

public void storeMove(int move,
                      int score)
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.

Parameters:
move -
score -

nextMove

public int nextMove()
Produce your next move.

Returns:
one of ROCK, PAPER, SISSORS

getPlayerId

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

getAuthor

public java.lang.String getAuthor()
Returns:
the author's name of this subject.