X-Git-Url: https://git.auder.net/images/diag_mark.svg?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=a7acc10d164e128d9c446ff83ddea3f47fba6128;hb=9de73b71a1db5464f89a202e6cdfdc7b6b6b0753;hp=c7e9ff186328376199485b264c288bb2df1a0af9;hpb=0b5fa571c10c5d5befc81b3984ead9b4b1a3e14e;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index c7e9ff18..a7acc10d 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -574,7 +574,8 @@ Vue.component('my-game', { this.newGame("computer"); }, newGame: function(mode, fenInit, color, oppId, moves, continuation) { - //const fen = "3b1l2/ppp1p1pp/4o1r1/4N3/8/8/PPPPPPPP/RN1BBKQR 1111";//"rqbbnnkr/pppppppp/8/8/8/8/PPPPPPPP/RNNBBKQR 1111";//fenInit || VariantRules.GenRandInitFen(); + //const fen = "bbrkqnrn/pppppppp/8/8/8/8/PPPPPPPP/NNRKQBBR 1111"; + //const fen = "bbrkqnr1/pppppp1p/6o1/6s1/3SS3/8/PPP2PPP/NNRKQBBR 1111"; //first 2 moves == pb const fen = fenInit || VariantRules.GenRandInitFen(); console.log(fen); //DEBUG this.score = "*"; @@ -635,6 +636,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);