X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=tictactoe.js;h=7d7450c5ab6c4504e16aba53e9c011bd02757286;hb=9e5bf65868eaafcb11d09c0fee02e0d3d7c2121f;hp=9140b89da9bad2d2b69e2aca9e3f53ff1c2372f9;hpb=143c01e643c36e87c6bfc377ad1cf4edcc79e62c;p=empires-server diff --git a/tictactoe.js b/tictactoe.js index 9140b89..7d7450c 100644 --- a/tictactoe.js +++ b/tictactoe.js @@ -37,7 +37,7 @@ class TicTacToe extends Game { router.post('/move', (request, response) => { const game = request.game; - const square = request.body.square; + const square = request.body.move; const legal = game.add_move(square); @@ -51,12 +51,6 @@ router.post('/move', (request, response) => { game.broadcast_move(square); }); -router.get('/events', (request, response) => { - const game = request.game; - - game.handle_events(request, response); -}); - exports.router = router; exports.Game = TicTacToe;