A very simple, yet-to-be-solved, two-player game.
The goal of this game is to be the first to connect two opposite corners of the board by drawing over edges of a 4x4 grid.
Clone this repository if you wish to run it as-is, or otherwise include it with npm
.
git clone https://github.com/adri326/connect-square
Edit settings.json
to match your setup and run the server with node .
npm i https://github.com/adri326/connect-square
// Prerequisites
let app = new Express();
let server = http.createServer();
// Before any app.use():
require("express-ws")(app, server);
// All of your things...
require("connect-square")(app, {
port: 80,
path: "/connect-square/",
url: "localhost",
websocket_protocol: "ws",
secret: "my secret" // used for sessions
});