protected override LineBetweenCircles TurnAction() { LineBetweenCircles closingEdge; if ((closingEdge = AICommon.FindBoxClosingEdge(existingMoves, nonExistingMoves, Player.RED)) != null) { return(closingEdge); } else { minimax = new IntermediateMinimax(existingMoves, nonExistingMoves, boxes, whoAmI, minimaxDepth); return(minimax.GetBestMove()); } }
public override Minimax.Minimax.MinimaxTreeNode GetMinimaxTreeNode() { minimax = new IntermediateMinimax(existingMoves, nonExistingMoves, boxes, whoAmI, minimaxDepth); return(minimax.RootNode); }