Fix Alice rules (en passant)
[vchess.git] / public / javascripts / components / game.js
index 5690eb1..1f47b60 100644 (file)
@@ -634,6 +634,7 @@ Vue.component('my-game', {
                        }
                        else //against computer
                        {
+                               //this.mycolor = "w";
                                this.mycolor = Math.random() < 0.5 ? 'w' : 'b';
                                if (this.mycolor == 'b')
                                        setTimeout(this.playComputerMove, 500);
@@ -675,7 +676,6 @@ 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);
                        }
                },