]> git.cworth.org Git - empires-server/commit
Add an ID value to each player
authorCarl Worth <cworth@cworth.org>
Sat, 2 May 2020 23:53:13 +0000 (16:53 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 2 May 2020 23:53:13 +0000 (16:53 -0700)
commitc9c80e294186a8b2ef742806559a0655d624c05f
tree7b472e86d3218d50ec8310ee36093ab796773a3c
parent19df14d5105af085034c9ce8f4605fb5ffa9f54b
Add an ID value to each player

This is a first baby step toward implementing the more complete API
for the game which we defined today, and which can be found here:

https://git.cworth.org/git/empires-api

In this commit we also introduce a 'Game' class to encapsulate all
data necessary for the game, (so the 'players' array we had before,
but also the 'next_player_id' which we need now).
server.js