A multi-threaded Stockfish that runs in Chrome using PNaCl. Also see stockfish.js as a fallback.
See nacl/index.html
for an example.
About 500 KB uncompressed, 400 KB gzipped.
- Install the NaCl SDK and setup an environment variable
NACL_SDK_ROOT=path/to/nacl_sdk/pepper_49
cd nacl
make
- Replace
src/main.cpp
withsrc/nacl.cpp
. - Turn
UCI::loop
intoUCI::command
. - Remove Syzygy tablebases.
Thanks to @exoticorn for providing a PNaCl module for the older Stockfish 5.