diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-12-23 21:40:46 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-12-23 21:40:46 +0100 |
commit | c8a692cf39979962c72e8d3ec9108b85105feeb0 (patch) | |
tree | 7bee3cf35e72bffcf0112573964c6057568b2925 /gameserver/gameserver.js | |
parent | 864bce4ebdc625468969891b36784490448ceea3 (diff) |
Diffstat (limited to 'gameserver/gameserver.js')
-rwxr-xr-x | gameserver/gameserver.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gameserver/gameserver.js b/gameserver/gameserver.js index 8ab4bbc..a9233e9 100755 --- a/gameserver/gameserver.js +++ b/gameserver/gameserver.js @@ -225,6 +225,7 @@ function handleMessage(conn,msg){ c2.ws.send("other_turn "+JSON.stringify(mv)); won=checkWin(game.board,3-game.onturn); //player that just moved if(won){ + saveFinishedBoard(game.board); conn.ws.send("game_win "+won); c2.ws.send("game_win "+won); games.splice(findby(games,"id",conn.gameid),1); |