Stockfish chess engine interface for Ionic Capacitor.
- https://github.com/veloce/lichobile/blob/master/src/stockfish.ts
- https://github.com/veloce/lichobile/blob/master/src/ui/analyse/ceval/StockfishClient.ts
getMaxMemory() => Promise<{ value: number; }>
Returns the maximum number of MB that can be used by the engine.
Returns: Promise<{ value: number; }>
getCPUArch() => Promise<{ value: string; }>
Returns CPU architecture. Possible values are: armeabi, armeabi-v7a, arm64-v8a, x86, x86_64, mips, mips64.
Returns: Promise<{ value: string; }>
start() => Promise<void>
Initialize the engine. You must call this method before sending commands.
cmd(options: { cmd: string; }) => Promise<void>
Sends a command to the engine. You can listen to the output using the "stockfish" window event.
Param | Type |
---|---|
options |
{ cmd: string; } |
exit() => Promise<void>
Stops the engine.