Skip to content

Commit

Permalink
nextTurn или gameEnd
Browse files Browse the repository at this point in the history
  • Loading branch information
ershov-konst committed Oct 27, 2013
1 parent 67cfda1 commit 1cc7337
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
if(data.hit){
socket.emit("hit", data);
}
else{
gameInst.nextTurn();
}
}
});

Expand Down Expand Up @@ -71,9 +74,6 @@
if (winner !== null){
socket.emit("stopGame", {winner : winner});
}
else{
this.nextTurn();
}
};

Game.prototype.fire = function(pId, vec){
Expand Down

0 comments on commit 1cc7337

Please sign in to comment.