public override void makeBestMove() { var move_finder = new BestMoveFinder(this); AbstractBoard.CommonMove best_move = move_finder.findBestMove(); makeMove(best_move); }
/// <summary> /// Makes best computer move /// </summary> /// <returns>True if this was a winning move</returns> private bool makeBestMoveAsync() { var move_finder = new BestMoveFinder(board); var best_move = new AbstractBoard.CommonMove(); move_finder.findBestMove(best_move); var res = board.makeMove(best_move); updateBoard(); return(res.was_winning_move); }