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