rolec
Class SelfPlay

java.lang.Object
  extended by rolec.SelfPlay
All Implemented Interfaces:
AI

public class SelfPlay
extends java.lang.Object
implements AI

This class represents an AI which enforces a player to play a random move


Constructor Summary
SelfPlay()
          Constructs a new AI to let the user play
 
Method Summary
 Move selectMove(Move m, Player p, Deck deck, GameHistory history, boolean simulation)
          Lets the user select a move
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfPlay

public SelfPlay()
Constructs a new AI to let the user play

Method Detail

selectMove

public Move selectMove(Move m,
                       Player p,
                       Deck deck,
                       GameHistory history,
                       boolean simulation)
Lets the user select a move

Specified by:
selectMove in interface AI
Parameters:
m - the move to respond to
p - the player who uses this AI
deck - the deck used in this game
history - the history of the game
Returns:
the move to be played by the specified player as a response to the specified move