Skip to content

An xboard server for playing bughouse games via websockets

License

Notifications You must be signed in to change notification settings

MoritzWillig/tinyChessServer

Repository files navigation

tinyChessServer

Installation

  1. Install all nodejs dependencies:
$ npm install
  1. 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
  1. Create a copy the config.json.default-file and name it config.json and adjust the settings to to your system.

Running the server

  1. Start the server (the port used in defined in config.js)
node index.js
  1. Open a new wepage with http://localhost:<port>/

  2. You can open developer view and console with F12

  3. Open 3 new tabs and hit play

  4. In the server console enter go

  5. You can send a new move with ws.send("move e2e4") in the developer console.

Configuration

Positions

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

About

An xboard server for playing bughouse games via websockets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •