X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=e3cc6af0716fe50bdad8909fcd1208c4666cc6ce;hb=270968d6f8b17065cfe18279d9ee7973107a1048;hp=5690eb14e96ccd8df485e5131b42c338ea2fa1f2;hpb=0cd8f2bdfe04a0bd880ee48ef2dcce24728536ee;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 5690eb14..e3cc6af0 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -672,10 +672,9 @@ 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) : []; - console.log(this.possibleMoves); e.target.parentNode.appendChild(this.selectedPiece); } },