Playing Games - on-track-development/on-track-backend GitHub Wiki

Overview

Games are automatically spawned by the server when needed. When joining a game, the server looks for a game with one already joined player, adds the new player and starts it. If no such game is found, the server adds the player to an empty game and waits for another player.

All signaling regarding game progress and such is managed through the on track socket.

API

Joining

Leaving

Listing games

Read game

Playing

Challenges

Issuing a challenge

Accepting a challenge

Declining a challenge

Withdraw a challenge