X-Git-Url: https://git.auder.net/?p=rpsls-web.git;a=blobdiff_plain;f=rpsls.js;h=77213edf77c6a56f7e16b2f0492996e1752e3aba;hp=bf5df633f9fe5b062f57a0a7604909bf3e265f8d;hb=f126a42e8aeb423e81043fdf07bb4a16350b4d37;hpb=1fec6616a6de8ec1f903986ec1d5f946713b63f0 diff --git a/rpsls.js b/rpsls.js index bf5df63..77213ed 100644 --- a/rpsls.js +++ b/rpsls.js @@ -63,6 +63,7 @@ let Play = { Play.oppselect = Play.oppmove; //reveal opponent's move only now if (Win[Play.mymove].includes(Play.oppmove)) { if (++Play.mypoints == MAX_POINTS) Play.endGame(true); + socket.emit("inc_pts", {uid: getV("uid"), gid:Play.gid}); } else if (Win[Play.oppmove].includes(Play.mymove)) { if (++Play.oppoints == MAX_POINTS) Play.endGame(false);