This is an experimental version of FairyGround (See https://github.com/ianfab/fairyground) with new features added. It is a simple demo and playground for Fairy-Stockfish in the browser, using its WebAssembly port, its ffish.js library, and the graphical chessgroundx library. It is based on the demo for Fairy-Stockfish WASM and ffish-test.
You can see it deployed at: https://fairy-ground-experimental.vercel.app/ (This version does not support binary engine loading feature. To enable it, see step 5 below.)
Same as https://github.com/ianfab/fairyground
Lines start with # or :: are comments, where # used for Bash and :: used for CMD. Do not enter them into your console.
- Install Node.js at
- Check Node.js installation by:
# Expect to return version information. Otherwise check your installation. (Bash or CMD)
node -v
- Install dependencies Switch the current directory to the root folder of FairyGround which contains files like "LICENSE" and folders like "public":
# Bash version
cd <FairyGround root folder path>
:: CMD Version
cd /D <FairyGround root folder path>
Then enter:
# Bash or CMD
npm install
The installation progress may take long time. If it keeps downloading for a long time, you might have some issues on network.
- Bundle JavaScript to make webpage work
# If you are user that don't change the code, run command below (Bash)
npm run build
# Else if you are the developer that wants to change the code and immediately see changes in your browser, run command below (Bash)
npm run watch-build
If you are using CMD instead of Bash,
:: If you are user that don't change the code, run command below (CMD)
npm run buildwithcmd
:: Else if you are the developer that wants to change the code and immediately see changes in your browser, run command below (CMD)
npm run watch-build
- Start server Start without binary engine loading feature:
# Bash or CMD
npm run serve
Start with binary engine loading feature:
# Bash or CMD
node server.js
Then, browse to http://localhost:5000/
Enjoy!
See COPYING.md