Loading

GabrielIvascu

  1. gabriel@Sanctuary:~/git/Dr-Jekyll-or-Mr-Hyde/backend (master)$ node server.js
  2. Started WebSocket server...
  3. New connection
  4. Game started
  5. Client disconnected with code: 1000 and message:
  6. New connection
  7. Game started
  8. /home/gabriel/git/Dr-Jekyll-or-Mr-Hyde/backend/server.js:33
  9.   return Math.sqrt((current.x - near.x) * (current.x - near.x) +
  10.                            ^
  11.  
  12. TypeError: Cannot read property 'x' of undefined
  13.     at computeDistance (/home/gabriel/git/Dr-Jekyll-or-Mr-Hyde/backend/server.js:33:28)
  14.     at selectNextMrHyde (/home/gabriel/git/Dr-Jekyll-or-Mr-Hyde/backend/server.js:51:20)
  15.     at changeRoles [as _repeat] (/home/gabriel/git/Dr-Jekyll-or-Mr-Hyde/backend/server.js:80:14)
  16.     at wrapper [as _onTimeout] (timers.js:275:11)
  17.     at Timer.listOnTimeout (timers.js:92:15)