Skip to content
Michael Beutler edited this page Apr 15, 2020 · 1 revision

On the server side every game has a uniqe id for identification reasons. This id is generated via a dependency called uuid. This comes with multiple formats. In this project the v4 format will be used. (GitHub: uuidjs)

class Game {
    constructor(id, io) {
        this.id = id;
        this.io = io;
        this.players = [];
        this.started = false;
        this.rounds = [];
    }
}
Clone this wiki locally