]> git.cworth.org Git - empires-server/commit
Add a minimal implementation of the TicTacToe game engine
authorCarl Worth <cworth@cworth.org>
Wed, 27 May 2020 04:01:13 +0000 (21:01 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 27 May 2020 16:47:56 +0000 (09:47 -0700)
commit90941051a42263fed5bc16d0624510e4bd171810
tree1038103ea9a0c5917af357f1524a0ca9787d363c
parentab53a3a530ad30db6cf52b8507fa1cbddb28eecf
Add a minimal implementation of the TicTacToe game engine

This implements a /move endpoint to allow clients to send moves to the
server and an /events endpoint for the server to broadcast the moves
to all connected clients.

This TicTacToe class has some duplicated code from the empires Game
class. We should refactor this to have a common parent class to reduce
duplication.
tictactoe.js