Exemplo n.º 1
0
        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());
            }
        }
Exemplo n.º 2
0
        public override Minimax.Minimax.MinimaxTreeNode GetMinimaxTreeNode()
        {
            minimax = new IntermediateMinimax(existingMoves, nonExistingMoves, boxes, whoAmI, minimaxDepth);

            return(minimax.RootNode);
        }