Internet Chess ToolKit
v0.2.0

ictk.boardgame
Interface SingleBoardGame

All Superinterfaces:
Game
All Known Implementing Classes:
ChessGame

public interface SingleBoardGame
extends Game

this is for use with games that only use one board like scrabble, Go, Chess, & monopoly.


Method Summary
 Board getBoard()
          returns the game board (if more than one it returns the first board which might be arbitrary.
 int getPlayerToMove()
          returns the number of the player to move.
 void setBoard(Board board)
          set the board for this game.
 
Methods inherited from interface ictk.boardgame.Game
getBoards, getCurrentResult, getGameInfo, getHistory, getNumberOfPlayers, getPlayersToMove, getResult, setGameInfo, setHistory, setResult
 

Method Detail

getBoard

public Board getBoard()
returns the game board (if more than one it returns the first board which might be arbitrary.


setBoard

public void setBoard(Board board)
set the board for this game.


getPlayerToMove

public int getPlayerToMove()
returns the number of the player to move. This can then be sent to GameInfo.getPlayer(int) to receive the Player object.


Submit a bug or feature
Visit the Website
Internet Chess ToolKit is licensed under the GPL v2 .