8000 GitHub - bshankar/capacitor-stockfish: Stockfish chess engine plugin for Ionic Capacitor.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bshankar/capacitor-stockfish

 
 

Repository files navigation

Capacitor Stockfish plugin

Stockfish chess engine interface for Ionic Capacitor.

Example usage

API

getMaxMemory()

getMaxMemory() => Promise<{ value: number; }>

Returns the maximum number of MB that can be used by the engine.

Returns: Promise<{ value: number; }>


getCPUArch()

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()

start() => Promise<void>

Initialize the engine. You must call this method before sending commands.


cmd(...)

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()

exit() => Promise<void>

Stops the engine.


About

Stockfish chess engine plugin for Ionic Capacitor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 90.4%
  • Makefile 4.5%
  • C 1.8%
  • Shell 1.0%
  • Java 0.7%
  • Swift 0.6%
  • Other 1.0%
0