public void TestOneField() { var board = new int[][] { new int[] { 0, 2, 1 }, new int[] { 2, 2, 1 }, new int[] { 2, 1, 0 } }; Assert.AreEqual(new int[] { 0, 0 }, TTTSolver.TurnMethod(board, 1)); }
void NewGame() { Game = new TTTBoard(); Game.TurnTaken += new TTTBoard.TurnHandler(Game_TurnTaken); Solver = new BruteForceTTTSolver(Game); //Solver = new MiniMaxSolver(Game); mainLabel.Text = Game.CurrentPlayer + "'s turn."; }