aboutsummaryrefslogtreecommitdiff
path: root/gameserver/gameserver.js
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-12-23 21:40:46 +0100
committertomsmeding <tom.smeding@gmail.com>2016-12-23 21:40:46 +0100
commitc8a692cf39979962c72e8d3ec9108b85105feeb0 (patch)
tree7bee3cf35e72bffcf0112573964c6057568b2925 /gameserver/gameserver.js
parent864bce4ebdc625468969891b36784490448ceea3 (diff)
Some changes that were lying aroundHEADmaster
Diffstat (limited to 'gameserver/gameserver.js')
-rwxr-xr-xgameserver/gameserver.js1
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);