Class AbsGameBoard

java.lang.Object
cpsc2150.extendedConnectX.models.AbsGameBoard
All Implemented Interfaces:
IGameBoard
Direct Known Subclasses:
GameBoard, GameBoardMem

public abstract class AbsGameBoard extends Object implements IGameBoard
Class that implements the IGameBoard interface and contains an overridden implementation of Object.toString().
  • Constructor Details

    • AbsGameBoard

      public AbsGameBoard()
  • Method Details

    • toString

      public String 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.

      Overrides:
      toString in class Object
      Returns:
      A string that shows the entire game board
      Post:
      [toString shows the entire game board] AND self = #self