]> git.cworth.org Git - empires-server/commit
Generalize the handling of the /move request
authorCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 21:16:04 +0000 (14:16 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 1 Jun 2020 21:20:38 +0000 (14:20 -0700)
commitfbf331eedc7d4579ec861c140e26a11b04278c1c
treeab63633119ce7c14bbe698f756d67ec8864e12cf
parent6694d6e0959ebd4056ba50ff0e0b11fca83f6bfa
Generalize the handling of the /move request

Implementing it at the "lmno" level instead of in "tictactoe".

This means that future game implementations that involve clients
sending moves to the server (which, is obviously a common thing), can
simply implement an "add_move" method in the Game class at not need to
implement the route handler piece of things.
game.js
lmno.js
tictactoe.js