ru.sstu.renju.players
Class HumanPlayer

java.lang.Object
  extended by ru.sstu.renju.players.HumanPlayer
All Implemented Interfaces:
Player

public class HumanPlayer
extends Object
implements Player

HumanPlayer class represents Player doing moves when human clicks mouse button.

Since:
Renju 1.0
Author:
denis_murashev

Constructor Summary
HumanPlayer()
           
 
Method Summary
 Move doMove(Game game, CellType type)
          This method should provide main game logic.
 void setMove(Game game, Move move)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HumanPlayer

public HumanPlayer()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

doMove

public Move doMove(Game game,
                   CellType type)
Description copied from interface: Player
This method should provide main game logic. Using given game position this method should calculate the next move.

Specified by:
doMove in interface Player
Parameters:
game - game
type - move type (Black or White)
Returns:
new move

setMove

public void setMove(Game game,
                    Move move)
Parameters:
game - the game
move - the move


Copyright © 2013 TFI branch of Engels Instutute of Technology. All Rights Reserved.