X-Git-Url: https://git.auder.net/variants/Cwda/complete_rules.html?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=6d05a2a6393d557d10d3c38f313843d245d610e0;hb=6752407b88b6d7678b9b19df4ffe1224d17625d7;hp=f5bef8effdeae9f4340862e8c0783302a7ff8054;hpb=5c42c64e0b43ad4d687c58a6b7e9b9ac5d212e17;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index f5bef8ef..6d05a2a6 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