-// TODO: blank time control == untimed
-// main playing hall: online players + current challenges + button "new game"
-// TODO: si on est en train de jouer une partie, le notifier aux nouveaux connectés
-/*
-TODO: surligner si nouveau défi perso et pas affichage courant
-(cadences base + incrément, corr == incr >= 1jour ou base >= 7j)
---> correspondance: stocker sur serveur lastMove + uid + color + movesCount + gameId + variant + timeleft
-fin de partie corr: supprimer partie du serveur au bout de 7 jours (arbitraire)
-*/
-// TODO: au moins l'échange des coups en P2P ? et game chat ?
-// TODO: objet game, objet challenge ? et player ?
-/*
- * Possible events:
- * - send new challenge (corr or live, cf. time control), with button or click on player
- * - accept challenge (corr or live) --> send info to all concerned players
- * - cancel challenge (click on sent challenge) --> send info to all concerned players
- * - withdraw from challenge (if >= 3 players and previously accepted)
- * --> send info to all concerned players
- * - prepare and start new game (if challenge is full after acceptation)
- * Also send to all connected players (only from me)
- * - receive "player connect": send all our current challenges (to him or global)
- * Also send all our games (live - max 1 - and corr) [in web worker ?]
- * + all our sent challenges.
- * - receive "playergames": list of games by some connected player (NO corr)
- * - receive "playerchallenges": list of challenges (sent) by some online player (NO corr)
- * - receive "player disconnect": remove from players list
- * - receive "accept/withdraw/cancel challenge": apply action to challenges list
- * - receive "new game": if live, store locally + redirect to game
- * If corr: notify "new game has started", give link, but do not redirect
- * - receive new challenge: if targeted, replace our name with sender name
-*/