fourwin
Class FourHuman
java.lang.Object
fourwin.FourPlayer
fourwin.FourHuman
public class FourHuman
- extends FourPlayer
This class implements the given methods from fourPlayer and represents the
human player.
- Author:
- Konstantin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
gui
FourGUI gui
FourHuman
public FourHuman(FourGUI gui)
FourHuman
public FourHuman(FourGUI gui,
int playerID)
move
public PlayingField move(PlayingField board)
- This method controls the moves from the human player. It gets the actual
board, inserts the chip in the column the human player wants and returns
the new board.
- Specified by:
move
in class FourPlayer
- Parameters:
board
- - the actual played board
- Returns:
- the new board with the inserted chip