[go: up one dir, main page]

Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

magnickolas/3chess

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3chess

Chess for three players.

Usage

First, you need to have node and npm be installed.

To install dependencies run the following command inside the repository's directory:

npm install

Then you can run a server (by default it's available on port 2000, in order to change it follow instructions in the section Configuration):

node app.js

The game starts as soon as three players opens its link (in a local network with the default configuration that would be http://localhost:2000).

If you want to play in a non-local network, I suggest to set up a tunnel with e.g. ngrok.

Configuration

You can change time control, additional time per move and the port that server runs on by changing the values in config.js or pass them as command line arguments as follows:

node app.js -p 2000 -t 15 -a 1 # port 2000, time control 15 minutes, time advance 1 second per move

Contribution

The code's been written hastily and is literally garbage.

However, if you have some issues you can write about them here.