Beispiel #1
0
        public Minimax(HexBoard board, GoodMoves goodMoves, ICandidateMoves candidateMovesFinder)
        {
            this.actualBoard = board;
            this.goodMoves = goodMoves;
            this.candidateMovesFinder = candidateMovesFinder;

            this.boardCache = new BoardCache(board.Size);
            this.pathLengthFactory = new PathLengthAStarFactory();
        }
Beispiel #2
0
        public Minimax(HexBoard board, GoodMoves goodMoves, ICandidateMoves candidateMovesFinder)
        {
            this.actualBoard          = board;
            this.goodMoves            = goodMoves;
            this.candidateMovesFinder = candidateMovesFinder;

            this.boardCache        = new BoardCache(board.Size);
            this.pathLengthFactory = new PathLengthAStarFactory();
        }
Beispiel #3
0
        public Minimax(HexBoard board, GoodMoves goodMoves, ICandidateMoves candidateMovesFinder)
        {
            this.board = board;

            this.depth = 0;

            this.candidateMovesFinder = candidateMovesFinder;
            this.pathLengthFactory    = new PathLengthAStarFactory();
            GoodMoves = goodMoves;
        }