/// creating 3x3 game board matrix static string[,] CreateBoard() { TheBoard board = new TheBoard(); string[,] gameBoard = new string[, ] { { board.Pos1, board.Pos2, board.Pos3 }, { board.Pos4, board.Pos5, board.Pos6 }, { board.Pos7, board.Pos8, board.Pos9 } }; return(gameBoard); }
/// <summary> /// creates an instance of TheBoard class /// </summary> /// <returns>a TheBoard object</returns> public static string[,] CreateBoard() { TheBoard board = new TheBoard(); /// creating 3x3 game board matrix string[,] gameBoard = new string[, ] { { board.Pos1, board.Pos2, board.Pos3 }, { board.Pos4, board.Pos5, board.Pos6 }, { board.Pos7, board.Pos8, board.Pos9 } }; return(gameBoard); }
public void CanCreateBoard() { TicTacToe.TheBoard testBoard = new TicTacToe.TheBoard(); Assert.NotNull(testBoard); }