engine is now responsile for asking for and tracking how many tiles in

the tray should be used in hints.
This commit is contained in:
ehouse 2004-06-25 06:51:24 +00:00
parent c6c6d38dfc
commit 4e6b8f4c76

View file

@ -27,12 +27,14 @@
extern "C" { extern "C" {
#endif #endif
typedef struct HintLimits { #ifdef XWFEATURE_SEARCHLIMIT
typedef struct BdHintLimits {
XP_U16 left; XP_U16 left;
XP_U16 top; XP_U16 top;
XP_U16 right; XP_U16 right;
XP_U16 bottom; XP_U16 bottom;
} HintLimits; } BdHintLimits;
#endif
XP_U16 engine_getScoreCache( EngineCtxt* engine, XP_U16 row ); XP_U16 engine_getScoreCache( EngineCtxt* engine, XP_U16 row );
@ -55,9 +57,10 @@ void engine_destroy( EngineCtxt* ctxt );
#define NO_SCORE_LIMIT 10000 /* for targetScore */ #define NO_SCORE_LIMIT 10000 /* for targetScore */
XP_Bool engine_findMove( EngineCtxt* ctxt, ModelCtxt* model, XP_Bool engine_findMove( EngineCtxt* ctxt, ModelCtxt* model,
DictionaryCtxt* dict, const Tile* tiles, DictionaryCtxt* dict, const Tile* tiles,
XP_U16 nTiles, XP_U16 nTilesToUse, XP_U16 nTiles,
#ifdef XWFEATURE_SEARCHLIMIT #ifdef XWFEATURE_SEARCHLIMIT
HintLimits* searchLimits, BdHintLimits* boardLimits,
XP_Bool useTileLimits,
#endif #endif
XP_U16 targetScore, XP_Bool* canMove, XP_U16 targetScore, XP_Bool* canMove,
MoveInfo* result ); MoveInfo* result );