Fairy-Stockfish NNUE — LANG_SYS single-Worker port, 2026-11-16

Engine: Copyright (C) 2004–2022 The Stockfish developers; Fairy-Stockfish
by Fabian Fichter and contributors. GNU GPL version 3 or later.
License: COPYING.txt. No warranty. This is a separate, replaceable program
communicating with the game's adapter through a Worker message protocol.

Pinned engine source:
https://github.com/fairy-stockfish/Fairy-Stockfish/tree/014b0775c0e282ce104c76cf271abe31873eb9d7
https://codeload.github.com/fairy-stockfish/Fairy-Stockfish/tar.gz/014b0775c0e282ce104c76cf271abe31873eb9d7

Complete corresponding source and build adapter: source.zip alongside this
notice (upstream/ plus rebuild-fairy.py). Emscripten 3.1.74, -O3, WebAssembly
SIMD, one synchronous search inside a dedicated Web Worker. Rebuild:
python3 rebuild-fairy.py upstream xiangqi.nnue output --emxx /path/to/em++
Use a fresh extracted upstream tree; the script applies its recorded patch.
Browser cancellation terminates the Worker. No pondering or native threads.
Search, evaluation and chess rules inside the engine are not modified.

LANG_SYS port modifications: synchronous Thread startup; inline TT clear;
one-command persistent UCCI entry point; explicit NNUE initialization;
fixed one thread and 16 MiB hash. Port changes are GPL-3.0-or-later.

Network: xiangqi-c07e94a5c7cb.nnue, the Pikafish developers, 2025-10-31.
SHA-256: c07e94a5c7cbeae443ed79a8fa412875d833a7f8e04333815e39729c59d52e11
Official Fairy-Stockfish network index:
https://fairy-stockfish.github.io/nnue/
Download:
https://drive.google.com/uc?export=download&id=18-zDt7z4H9_IQVvcWIvndnKjC5LZhAfm
The Pikafish authors explicitly license their Fairy-Stockfish Xiangqi weights
under CC0 (not the separate noncommercial license on native Pikafish nets):
https://github.com/official-pikafish/Networks#nnue-license

Emscripten compiler/runtime: MIT and University of Illinois/NCSA licenses.
The matching upstream toolchain license texts are included in source.zip.
https://github.com/emscripten-core/emscripten/blob/3.1.74/LICENSE

The original ElephantEye port remains available at ../NOTICE.txt and
../source.zip for existing pages and reproducible baseline comparisons.
