Esempio n. 1
0
        public override bool Equals(object other)
        {
            WordSearchState otherState = other as WordSearchState;

            return(otherState != null &&
                   LastTileAdded.Location.Equals(otherState.LastTileAdded.Location));
        }
Esempio n. 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));
        }