//private AIMovePiece aimovepiece; public TwoPlayerCheckerboard() { piece = new Piece(); movepiece = new MovePiece(); //aimovepiece = new AIMovePiece(); checkerBoard = new string[DIMEN, DIMEN]; CheckerBoardHoriz = "+---"; CheckerBoardVert = "| "; }
public Checkerboard() //Checkerboard constructer where all the checkerboard re-drawing is done. { //Accessing all the public members for the classes. piece = new Piece(); movepiece = new MovePiece(); aimovepiece = new AIMovePiece(); checkerBoard = new string[DIMEN, DIMEN]; //Initializing the 2D array. CheckerBoardHoriz = "+---"; //Defining the horizontal graphical properties of the checkerboard. CheckerBoardVert = "| "; //Defining the vertical graphical properties of the checkerboard. }