]> git.cworth.org Git - empires-server/commit
tictactoe: Use a "game-state" event instead of a series of "move" events
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 14:38:45 +0000 (07:38 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 14:38:45 +0000 (07:38 -0700)
commit2c93bc13fb20e23084671ca3dc92ce9ee3e33494
tree6d59879c74c452fec56544f78a29270831f5cd27
parentbceb4cb3eb1b150aedc562978df01cb0ac4ce628
tictactoe: Use a "game-state" event instead of a series of "move" events

With this, when a client joins they will get a snapshot of the current
game state as well as a history of all previous moves.
tictactoe.js