UNPKG

@nodots-llc/backgammon-ai

Version:

AI and integration for nodots-backgammon using the @nodots-llc/gnubg-hints native addon.

27 lines 1.56 kB
import type { BackgammonMoveBase } from '@nodots-llc/backgammon-types'; import type { DoubleHint, HintConfig, HintRequest, MoveHint, TakeHint } from '@nodots-llc/gnubg-hints'; import { gnubgHints, GnubgHintsIntegration } from './gnubg.js'; import { MoveAnalyzer } from './moveAnalyzers.js'; export declare function registerAIProvider(): Promise<void>; export type { DoubleHint, HintConfig, HintRequest, MoveHint, TakeHint }; export { gnubgHints, GnubgHintsIntegration }; export declare function initializeGnubgHints(options?: { weightsPath?: string; config?: Partial<HintConfig>; }): Promise<void>; export declare function configureGnubgHints(config: Partial<HintConfig>): Promise<void>; export declare function getMoveHints(request: HintRequest, maxHints?: number): Promise<MoveHint[]>; export declare function getBestMove(request: HintRequest, options?: { maxHints?: number; }): Promise<MoveHint | null>; export declare function getDoubleHint(request: HintRequest): Promise<DoubleHint>; export declare function getTakeHint(request: HintRequest): Promise<TakeHint>; export declare function shutdownGnubgHints(): Promise<void>; export declare function selectMoveFromList(moves: BackgammonMoveBase[], analyzer?: MoveAnalyzer): Promise<BackgammonMoveBase | null>; export * from './moveAnalyzers.js'; export * from './moveSelection.js'; export * from './pluginLoader.js'; export * from './hintContext.js'; export { GNUAIProvider } from './GNUAIProvider.js'; export { executeRobotTurnWithGNU } from './robotExecution.js'; //# sourceMappingURL=index.d.ts.map