Browse Source

+backdice

Ivan Asmer 5 years ago
parent
commit
76954fb345
1 changed files with 1 additions and 0 deletions
  1. 1 0
      index.js

+ 1 - 0
index.js

@@ -90,6 +90,7 @@ io.on('connection', socket => {
             gamer.turn = !gamer.turn
             enemy.turn = !enemy.turn
             data.dice  = [dice(), dice()]
+            gamer.socket.emit('dice', data.dice)
             enemy.socket.emit('turn', data)
         }
     })