public override bool Equals(object other) { WordSearchState otherState = other as WordSearchState; return(otherState != null && LastTileAdded.Location.Equals(otherState.LastTileAdded.Location)); }
private void SearchStartingAtTile( Tile tile, FlexibleBacktrackingSearch <WordSearchState> stateSearcher, bool useAlternate = false) { var startingState = new WordSearchState(tile, Dictionary, useAlternate); stateSearcher.Search(startingState, node => ProcessSearchNode(node)); }