STOCKFISH CREDITS AND SOURCE NOTICE =================================== Black Chess Mafia uses the Stockfish chess engine ONLY for post-game review (the "Review game" button). It runs inside a single Web Worker, in the visitor's own browser. No game data is sent to any server. Files distributed with this project ----------------------------------- stockfish-19-lite-single.js Stockfish.js worker/loader (single-threaded) stockfish-19-lite-single.wasm Stockfish 19 "lite" engine compiled to WebAssembly GPL-3.0.txt GNU General Public License, version 3 Exact versions -------------- Package: Stockfish.js (npm name "stockfish"), version 19.0.1 build flavour: "lite, single-threaded" (no SharedArrayBuffer, no COOP/COEP headers needed) Engine: Stockfish 19 (official-stockfish/Stockfish) Built by: Nathan Rugg, with Chess.com, LLC Networks: Stockfish 19 lite nets by Chris Bao (sscg13), https://tests.stockfishchess.org/nns?network_name=nn-61e7af4bb97d Corresponding source (GPLv3 section 6) -------------------------------------- Stockfish.js release v19.0.1 (the exact files above were downloaded from this release): https://github.com/nmrugg/stockfish.js/releases/tag/v19.0.1 https://github.com/nmrugg/stockfish.js/releases/download/v19.0.1/stockfish-19-lite-single.js https://github.com/nmrugg/stockfish.js/releases/download/v19.0.1/stockfish-19-lite-single.wasm Stockfish.js source and build scripts (includes the emscripten glue and the Stockfish C++ sources it builds): https://github.com/nmrugg/stockfish.js Upstream Stockfish source: https://github.com/official-stockfish/Stockfish SHA-256 of the distributed binaries (verify against the release assets) ----------------------------------------------------------------------- stockfish-19-lite-single.js ccb130d7ff29408531c47d859a49f91d59d4f482d05a53eb1a3231a4f624c91a stockfish-19-lite-single.wasm ee4f115bdb2d32cadf96cada104a05b5ec257d7ad6f57582190b49bc71f096de License ------- Stockfish and Stockfish.js are free software licensed under the GNU General Public License version 3 (GPLv3); the full text is in GPL-3.0.txt. You may redistribute and modify these files under those terms. They are provided WITHOUT ANY WARRANTY. The GPL applies to the Stockfish files listed above; it does not change the license of the rest of this project, which only communicates with the engine through the standard UCI text protocol over Worker messages. Where the engine is used ------------------------ index.html loads it with new Worker(new URL('stockfish-19-lite-single.js', document.baseURI)) i.e. a path relative to the page, so it works under Vite, a LAN address, GitHub Pages sub-paths and ordinary static hosting. The .js file loads the .wasm that sits next to it. Both must be served from the same folder as index.html, with MIME types text/javascript and application/wasm. (With "vite build", put the three Stockfish files in the project's public/ folder, like the pieces/ and sounds/ assets, so they are copied to the output.) The existing in-page playing opponent (lightweight engine + opening book) is unchanged and is NOT Stockfish. Chess puzzle source (the bundled "Chess Puzzle") ------------------------------------------------ The one bundled puzzle is taken from a REAL, documented game; nothing was generated or invented: Game: "The Opera Game" - Paul Morphy vs. the Duke of Brunswick and Count Isouard (consultation game), Paris, 1858, result 1-0. Score: 17 moves, 33 plies, ending 17.Rd8# (checked against the Wikipedia article "Opera Game", https://en.wikipedia.org/wiki/Opera_Game). Puzzle: the position after 15...Nxd7, before 16.Qb8+ (ply 30), found by legally replaying the PGN stored in index.html; White mates in 2. Played: the move actually played in the game (16.Qb8+) is also Stockfish 19's best move; the stored solution line b3b8 d7b8 d1d8 is exactly the line played. Licence: public domain. An 1858 game by players who died in the 19th century; a score of moves is a record of facts. No account, subscription, network call or paid service is used. Checks: puzzle.js replays the PGN, confirms the FEN, the legality of each solution move and the metadata/result; puzzle_real.js confirms the solution with the real Stockfish engine.