Пример #1
0
        public override bool Equals(object other)
        {
            WordSearchState otherState = other as WordSearchState;

            return(otherState != null &&
                   LastTileAdded.Location.Equals(otherState.LastTileAdded.Location));
        }
Пример #2
0
        private void SearchStartingAtTile(
            Tile tile,
            FlexibleBacktrackingSearch <WordSearchState> stateSearcher,
            bool useAlternate = false)
        {
            var startingState = new WordSearchState(tile, Dictionary, useAlternate);

            stateSearcher.Search(startingState, node => ProcessSearchNode(node));
        }