public Point2D GetTurn(IBoard gameBoard, PlayerMark currentPlayer) { PlayerMark playerMark = currentPlayer; Board board = gameBoard.GetCopy(); AIRunner aiRunner = new AIRunner(board, playerMark); return(aiRunner.GetBest(1.0, board.Width * board.Height).Point); }
public static void DoTurn(Game game, int depth) { PlayerMark playerMark = game.CurrentPlayer; Board board = game.Board.GetCopy(); AIRunner ai = new AIRunner(board, playerMark); PointWithMark point = ai.GetBest(1.0, depth); game.DoTurn(point.Point.X, point.Point.Y); }