Пример #1
0
        public BoardKnowledge AddWin(Board board, string reason)
        {
            var knowledge = new BoardKnowledge(board, reason);

            _boardLookup[board] = knowledge;

            return(knowledge);
        }
Пример #2
0
        public BoardKnowledge AddImprovement(Board board, string reason, int winDepth, Tuple <int, int> colorPair, List <Tuple <List <List <int> >, List <Move>, string> > goodSwaps)
        {
            var knowledge = new BoardKnowledge(board, reason)
            {
                Depth = winDepth, ColorPair = colorPair, Swaps = goodSwaps
            };

            this[reason, board] = knowledge;

            return(knowledge);
        }