X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=b91d72c0b89d7819287bc6e7f67de8fee1359ba5;hb=b8121223012a3eb331022adc465bbfb4014363c8;hp=1f47b604137e775949cf0e7a01b5248fe06d5940;hpb=06ddfe34f6ef5c82d206332245ed4f33a9d92715;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 1f47b604..b91d72c0 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -574,6 +574,7 @@ Vue.component('my-game', { this.newGame("computer"); }, newGame: function(mode, fenInit, color, oppId, moves, continuation) { + //const fen = "qrbnkbrn/pppppppp/8/8/8/8/PPPPPPPP/BNNBRKRQ 1111";//fenInit || VariantRules.GenRandInitFen(); const fen = fenInit || VariantRules.GenRandInitFen(); console.log(fen); //DEBUG this.score = "*"; @@ -634,7 +635,6 @@ 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);