If search limits in use, try vertical as well as horizontal initial moves.

This commit is contained in:
ehouse 2008-03-29 19:40:03 +00:00
parent 75ab88565d
commit 1172502b04

View file

@ -286,6 +286,14 @@ findFirstMoves( EngineCtxt* engine )
/* middle square is the only legal anchor */
engine->searchHorizontal = XP_TRUE;
findMovesForAnchor( engine, &prevAnchor, star_row, star_row );
#ifdef XWFEATURE_SEARCHLIMIT
/* If there's a hint region try vertical also since results could differ. */
if ( !!engine->searchLimits && !engine->returnNOW ) {
engine->searchHorizontal = XP_FALSE;
findMovesForAnchor( engine, &prevAnchor, star_row, star_row );
}
#endif
HILITE_CELL( engine, star_row, star_row );
} /* findFirstMoves */