-
-// TODO: now that we can distinguish people from Hall or Game,
-// improve this --> the info is already known
-
- whatPlayerDoes: function(p) {
- if (this.games.some(g => g.type == "live"
- && g.players.some(pl => pl.sid == p.sid)))
- {
- return "Playing";
- }
- return "Challenge"; //player is available
- },
-
-// Also debug: when from game going to Hall, player appears still connected.
-// when reloading a finished (observed) game, some ghost moveToPlay errors
-