X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=5a64b79b5770baaca6c27d6f592a5e04d45222cf;hb=6274a54591714db8988683c0e3fe69937e61c672;hp=e9cf8d4b2c92ef927204b72a3e6ece1b91e6929b;hpb=a6bddfc684bd3cc4defd7d49cc15bf59f2d9a9e9;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index e9cf8d4b..5a64b79b 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1,4 +1,304 @@ + + + + +// TODO: utiliser "started" (renommer) pour se souvenir du timestamp où un user a commencé à réfléchir à un coup. Le sauvegarder dans update aussi... + +// variable initime à récupérer de game aussi (et pas "started") +// si initime à -1 ou undefined alors pas commencé. Abort possible à tout moment avec message +// Sorry I have to go / Game seems over / Game is not interesting + +move.clock à màj avec (current) clock - temps de réflexion (now() - initime) + increment +après chaque coup dans une partie live ou corr non terminée. +--> donc à Game.update on passe directement clock + +code "T" pour score "perte au temps" ?