Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Latest commit

 

History

History
85 lines (58 loc) · 2.64 KB

README.md

File metadata and controls

85 lines (58 loc) · 2.64 KB

FairyGround Experimental

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.)

Usage (Unix-like system installation)

Same as https://github.com/ianfab/fairyground

Usage (Windows installation)

Lines start with # or :: are comments, where # used for Bash and :: used for CMD. Do not enter them into your console.

  1. Install Node.js at

https://nodejs.org/

  1. Check Node.js installation by:
# Expect to return version information. Otherwise check your installation. (Bash or CMD)
node -v
  1. 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.

  1. 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
  1. 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!

Attribution

See COPYING.md