X-Git-Url: https://git.auder.net/assets/current/gitweb.js?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=e3cc6af0716fe50bdad8909fcd1208c4666cc6ce;hb=270968d6f8b17065cfe18279d9ee7973107a1048;hp=18632858d6e653a9d74bf71e3c6b1a44119064b5;hpb=204e289bbcddc69e2d81aef492dbea6db9e31188;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 18632858..e3cc6af0 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 @@ -673,7 +672,7 @@ Vue.component('my-game', { this.selectedPiece.style.display = "inline-block"; this.selectedPiece.style.zIndex = 3000; let startSquare = this.getSquareFromId(e.target.parentNode.id); - this.possibleMoves = this.mode!="idle" && this.vr.canIplay(this.mycolor,startSquare) + this.possibleMoves = true//this.mode!="idle" && this.vr.canIplay(this.mycolor,startSquare) ? this.vr.getPossibleMovesFrom(startSquare) : []; e.target.parentNode.appendChild(this.selectedPiece);