X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=2d5838d4ccf3819cf531ce105c67382ac0921833;hb=6d68309ae2aa62cac650967d18cd7f397e70532e;hp=803751eb519a31ea00db94cbc092688768bc0825;hpb=40477190d905a715d59a800279a20da4ef8135ed;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 803751eb..2d5838d4 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -11,7 +11,8 @@ button(@click="abortGame") {{ st.tr["Game is too boring"] }} BaseGame(:game="game" :vr="vr" ref="basegame" @newmove="processMove" @gameover="gameOver") - // TODO: also show players names + textarea#mvMessage(v-if="game.type=='corr'" v-model="corrMsg") + div Names: {{ game.players[0].name }} - {{ game.players[1].name }} div Time: {{ virtualClocks[0] }} - {{ virtualClocks[1] }} .button-group(v-if="game.mode!='analyze' && game.score=='*'") button(@click="offerDraw") Draw @@ -27,15 +28,7 @@ // ==> après, implémenter/vérifier les passages de challenges + parties en cours // observer, // + problèmes, habiller et publier. (+ corr...) - // TODO: how to know who is observing ? Send message to everyone with game ID ? - // and then just listen to (dis)connect events - // server always send "connect on " + URL ; then add to observers if game... -// router when access a game page tell to server I joined + game ID (no need rid) -// and ask server for current joined (= observers) // when send to chat (or a move), reach only this group (send gid along) -// -> doivent être enregistrés comme observers au niveau du serveur... - // non: poll users + events startObserving / stopObserving - // (à faire au niveau du routeur ?) --> + +