X-Git-Url: https://git.auder.net/?a=blobdiff_plain;ds=sidebyside;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=5c1e6024a273dee0196cf23920e8a502ab51bc1f;hb=1147d89554c96691f3db32ebab7618d31b5b097d;hp=f5bef8effdeae9f4340862e8c0783302a7ff8054;hpb=5c42c64e0b43ad4d687c58a6b7e9b9ac5d212e17;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index f5bef8ef..5c1e6024 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