]> git.cworth.org Git - empires-server/commit
Properly JSON-stingify move before broadcasting it
authorCarl Worth <cworth@cworth.org>
Sat, 6 Jun 2020 15:47:27 +0000 (08:47 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 6 Jun 2020 15:47:27 +0000 (08:47 -0700)
commit9029f4547056b096dfb9296d3eb69948f889ba23
tree42e0bcc975ea0ae2bd37962d8359ebef7915039a
parente368873853353b4b8949bfdf3c560b484e4cfb88
Properly JSON-stingify move before broadcasting it

With the Tic Tac Toe game, this bug was hidden, (since the move data
is just an integer and there's no difference in strignifying that or
not). But an upcoming game (Scribe) uses a pair of integers, and
there's a lot of difference between "1,2" and "[1,2]" since only the
latter is proper JSON.
game.js