Skip to content
Cordova interface for the Stockfish chess engine
Branch: master
Clone or download
veloce Merge pull request #14 from freefal/patch-1
Remove unsupported option in
Latest commit 7cc6722 Mar 18, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Remove unsupported option in Mar 18, 2019
www Migrate to promise interface only Apr 27, 2016
.gitignore Add gitignore Oct 9, 2015
LICENSE Initial commit Sep 25, 2015 Update android build part Jul 18, 2018
build-extras-stockfish.gradle Enable arm64, tweak build to improve perf Jul 18, 2018
package.json Increase version Jul 19, 2018
plugin.xml Increase version Jul 19, 2018


Cordova interface for the Stockfish chess engine.

Exemple apps



Stockfish global object exposes only 4 methods. Except for output, they all return promises:

// init engine
Stockfish.init().then(() => console.log('engine ready'))

// send commands
Stockfish.cmd('position startpos').then(() => console.log('command success'))

// register output listener
Stockfish.output(function(message) {
  console.log('stockfish message received:', message)

// exit engine
Stockfish.exit().then(() => console.log('engine successfully exited'))

Upgrade stockfish (lichess)

git remote add stockfish
git subtree pull --prefix=src/share/stockfish --squash stockfish master

Build android

To build the native code in your project, just launch the gradle build using cordova build or cordova run command.

Build IOS

Through XCode, in the build settings menu:

  • Set C++ Language Dialect option to C++11 value.
  • Set C++ Standard Library option to lib++ value.

To enable variants and skill, in custom compiler flags, Other C++ flags section, add:

You can’t perform that action at this time.