Package cpsc2150.extendedConnectX.models
Class AbsGameBoard
java.lang.Object
cpsc2150.extendedConnectX.models.AbsGameBoard
- All Implemented Interfaces:
IGameBoard
- Direct Known Subclasses:
GameBoard,GameBoardMem
Class that implements the IGameBoard interface and contains an overridden
implementation of
Object.toString().-
Field Summary
Fields inherited from interface cpsc2150.extendedConnectX.models.IGameBoard
MAX_COLUMNS, MAX_NUM_TO_WIN, MAX_ROWS, MIN_COLUMNS, MIN_NUM_TO_WIN, MIN_ROWS -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface cpsc2150.extendedConnectX.models.IGameBoard
checkDiagWin, checkForWin, checkHorizWin, checkIfFree, checkTie, checkVertWin, getNumColumns, getNumRows, getNumToWin, isPlayerAtPos, placeToken, whatsAtPos
-
Constructor Details
-
AbsGameBoard
public AbsGameBoard()
-
-
Method Details
-
toString
Overloaded toString method for GameBoard.NOTE: The string will change depending on the values of the object that implements IGameBoard which calls the toString method, and thus the post-condition for this method is partially informal.
-