private static void TestBoard()
        {
            TicTacToeBoard board = new TicTacToeBoard();

            board.SetPiece('X', 0, 0);
            board.SetPiece('O', 2, 2);

            for (int i = 0; i < 3; i++)
            {
                for (int j = 0; j < 3; j++)
                {
                    Console.WriteLine(board.Board[i, j]);
                    Console.WriteLine(" ");
                }
                Console.WriteLine();
            }
        }
Esempio n. 2
0
        private static void TestBoard()
        {
            TicTacToeBoard b = new TicTacToeBoard();

            b.setPiece('x', 0, 0);
            b.setPiece('o', 2, 2);
            b.setPiece('x', 0, 1);

            for (int i = 0; i < 3; i++)
            {
                Console.Write("|");
                for (int j = 0; j < 3; j++)
                {
                    Console.Write(b.Board[i, j]);
                    Console.Write("|");
                }
            }
        }