X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=84976b0c6629cef1bf2ebf37d21446da375c6dde;hb=9106c77bf4f1d56ad855d4ffbb93f945065d7fac;hp=f5bef8effdeae9f4340862e8c0783302a7ff8054;hpb=5c42c64e0b43ad4d687c58a6b7e9b9ac5d212e17;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index f5bef8ef..84976b0c 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -242,13 +242,14 @@ Vue.component('my-game', { elementArray.push(gameDiv); if (!!this.vr.reserve) { + const shiftIdx = (this.mycolor=="w" ? 0 : 1); let myReservePiecesArray = []; for (let i=0; i