- Install all nodejs dependencies:
$ npm install
- The project requires the modified python-chess repository from https://github.com/TimSchneider42/python-chess which is capable of handling bughouse games.
git submodule update
git submodule init
- Create a copy the
config.json.default
-file and name itconfig.json
and adjust the settings to to your system.
- Start the server (the port used in defined in config.js)
node index.js
-
Open a new wepage with
http://localhost:<port>/
-
You can open developer view and console with
F12
-
Open 3 new tabs and hit
play
-
In the server console enter
go
-
You can send a new move with
ws.send("move e2e4")
in the developer console.
All clients get assigned an internal board position index. This index determines their team, the board they play on, as well as the side to play. 0: Team 0 - Board A White 1: Team 0 - Board B Black 2: Team 1 - Board A Black 3: Team 1 - Board B White