mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
If search limits in use, try vertical as well as horizontal initial moves.
This commit is contained in:
parent
75ab88565d
commit
1172502b04
1 changed files with 8 additions and 0 deletions
|
@ -286,6 +286,14 @@ findFirstMoves( EngineCtxt* engine )
|
||||||
/* middle square is the only legal anchor */
|
/* middle square is the only legal anchor */
|
||||||
engine->searchHorizontal = XP_TRUE;
|
engine->searchHorizontal = XP_TRUE;
|
||||||
findMovesForAnchor( engine, &prevAnchor, star_row, star_row );
|
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 );
|
HILITE_CELL( engine, star_row, star_row );
|
||||||
} /* findFirstMoves */
|
} /* findFirstMoves */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue