]> git.cworth.org Git - empires-server/commit
Standardize transmission of game "state" when a client joins
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 14:44:37 +0000 (07:44 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 14:44:37 +0000 (07:44 -0700)
commit143c01e643c36e87c6bfc377ad1cf4edcc79e62c
tree0ac90bd1fdb6cecae2d50d4ca172cdb2735312ae
parent2c93bc13fb20e23084671ca3dc92ce9ee3e33494
Standardize transmission of game "state" when a client joins

With this addition to the Game class, the TicTacToe class drops its
custom implementation of the handle_events method.

Similarly, future game implementations can simply have a "state"
property and not need to do anything further for new clients to be
provided with the current state when they join.
game.js
tictactoe.js