X-Git-Url: https://git.auder.net/variants/Cwda/complete_rules.html?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=5690eb14e96ccd8df485e5131b42c338ea2fa1f2;hb=f3c10e18c1585f043e22b875e9755814fa9218d7;hp=18632858d6e653a9d74bf71e3c6b1a44119064b5;hpb=204e289bbcddc69e2d81aef492dbea6db9e31188;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 18632858..5690eb14 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -412,7 +412,6 @@ Vue.component('my-game', { }; const socketMessageListener = msg => { const data = JSON.parse(msg.data); - console.log("Receive message: " + data.code); switch (data.code) { case "newgame": //opponent found @@ -676,6 +675,7 @@ Vue.component('my-game', { this.possibleMoves = this.mode!="idle" && this.vr.canIplay(this.mycolor,startSquare) ? this.vr.getPossibleMovesFrom(startSquare) : []; + console.log(this.possibleMoves); e.target.parentNode.appendChild(this.selectedPiece); } },