X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=9094309b447489d4f9c2b957d01a51cafc6941f7;hb=50330595f8a3055e0d568289e60c16402a15d320;hp=776b9eaf8525fd5d57c0d6ec6508fea195829100;hpb=f4221ff17c58c277660865a11bf6358268fbda10;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index 776b9eaf..9094309b 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -522,11 +522,7 @@ export default { }, getGameType: function(game) { if (!!game.id.toString().match(/^i/)) return "import"; - return ( - game.cadence.indexOf("d") >= 0 - ? "corr" - : (game.cadence.indexOf("/") >= 0 ? "simul" : "live") - ); + return (game.cadence.indexOf("d") >= 0 ? "corr" : "live"); }, // Notify something after a new move (to opponent and me on MyGames page) notifyMyGames: function(thing, data) { @@ -755,9 +751,9 @@ export default { case "newmove": { // DEBUG: -console.log("Receive move"); -console.log(data.data); -//moveslist not updated when receiving a move? (see in baseGame) +//console.log("Receive move"); +//console.log(data.data); +//moveslist not updated when receiving a move? (see in BaseGame) const movePlus = data.data; const movesCount = this.game.moves.length; @@ -1047,6 +1043,7 @@ console.log(data.data); let gameInfo = { id: getRandString(), //ignored if corr fen: V.GenRandInitFen(this.game.randomness), + randomness: this.game.randomness, players: [this.game.players[1], this.game.players[0]], vid: this.game.vid, cadence: this.game.cadence @@ -1068,7 +1065,6 @@ console.log(data.data); "/games", "POST", { - // cid is useful to delete the challenge: data: { gameInfo: gameInfo }, success: (response) => { gameInfo.id = response.gameId;