cordova-plugin-stockfish
Cordova interface for the Stockfish chess engine.
Exemple apps
Requirements
Usage
Stockfish
global object exposes only 4 methods. Except for output
, they all
return promises:
// init engineStockfish // send commandsStockfish // register output listenerStockfish // exit engineStockfish
Upgrade stockfish (lichess)
git remote add stockfish https://github.com/ddugovic/Stockfish.git
git subtree pull --prefix=src/share/stockfish --squash stockfish master
Build android
Build the native code in your project using:
ndk-build -C app/platforms/android
Build IOS
Through XCode, in the build settings menu:
- Set
C++ Language Dialect
option toC++11
value. - Set
C++ Standard Library
option tolib++
value.
To enable variants, in custom compiler flags, Other C++ flags
section, add:
-DKOTH -DTHREECHECK -DATOMIC -DHORDE -DRACE -DANTI -DCRAZYHOUSE