Skip to content

lichess-org/stockfish-web

Repository files navigation

lila-stockfish-web

Multiple stockfish wasms for use in lichess.org web analysis

Building

# Example: Clean and make all debug builds for node with SAFE_HEAP

  ./build.py --flags='-O0 -g3 -sSAFE_HEAP' --node all clean

or to avoid installing or changing your emscripten version, use ./build-with-docker.sh:

./build-with-docker.sh --flags='-O3' all clean

omit --node for default web builds

use --flags to override the default emcc flags which are -O3 -DNDEBUG --closure=1

check ./build.py --help for the latest targets

./build.py downloads sources to the ./fishes folder then applies diffs from the ./patches folder. Edit the Stockfish sources freely. But to contribute your edits, use a patch file

# Example: Update `sf16-7.patch` with your source changes:

  cd fishes/sf16-7
  git diff > ../../patches/sf16-7.patch

Run locally

./build.py --node
node ./src/wasm-cli.js ./sf171-79.js

Now you'll have to set the uci options for the nnue.

nn-1c0000000000.nnue
small nn-37f18f62d772.nnue

The specific file names might change, so check the output of uci for the correct names.

Sources

sfhce (Official Stockfish Classical release)

sf16-40 (Official Stockfish 16 release)

sf16-7 (Stockfish 16 linrock)

sf171-79 (Official Stockfish 17.1 release)

fsf14 (Fairy-Stockfish 14)

About

A home for stockfish wasms - because we care

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 5