Open kelly-ry4n opened 10 years ago
sending the entire board state over is quite doable as I ended up creating an object that has a grid number (tile) for its key, and the piece occupying it (or null) for its value. could just send that.
I'll update this momentarily.
and by momentarily I meant a few hours later. and I actually have nothing to add yet. too tired to think
I propose the following routes over a JSON API for communication
Clients can poll these say every second, or we can use a longlife connection which the server writes to when it has data, or some combination of the two.
Can you think of any other functionality we need to expose in the API in order to play between clients, or any connivence endpoints you'd like as the frontend guy?