/// <param name="colCount">number of the columns</param> /// <param name="rowCount">number of the rows</param> /// <param name="pieceOfTheRobot">piece type to play with</param> private void newGame(int colCount, int rowCount, Piece pieceOfTheRobot) { this.colCount = colCount; this.rowCount = rowCount; table = new TicTacToeTable(colCount, rowCount, Piece._Empty); this.pieceOfTheRobot = pieceOfTheRobot; }
public GameLogics() { gameTable = new TicTacToeTable <Piece>(4, 4, Piece._Empty); gameTable.setField(0, 0, Piece.X); gameTable.setField(0, 2, Piece.X); gameTable.setField(0, 3, Piece.X); gameTable.setField(1, 0, Piece.O); gameTable.setField(1, 0, Piece.O); gameTable.setField(2, 1, Piece.O); gameTable.setField(3, 2, Piece.O); OnPostMessageShowRequest("The game logics module has been started..."); }