An API to play connect 4 from your terminal or web browser with a friend
Core API routes that are needed to play the game
Session will be created. Client receives a session ID used for the rest of the api calls.
Streaming endpoint to deliver live updates to the client over a long-lived HTTP connection. Both players should connect to their tables right after a session is created.
Join a session by giving a name. There can only be atmost 2 players in a session.
Start the game. Session must include 2 players.
Drop a piece on the board.
Delete a session. Not needed as session expires after an hour of inactivity.
Leave a session. Can only call this route when the game has not started.