X-Git-Url: https://git.auder.net/images/pieces/current/gitweb.js?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=2a9a701817af5cbaf980fbac0ff9ec72d62fba6d;hb=444615475746b98a4338de2a6bb9e70f5735780b;hp=2897b1cd00f6abd5d0c61d8e488075f71be54dab;hpb=1221ac47836806efb287b0323b92957d9129c653;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 2897b1cd..2a9a7018 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -240,38 +240,76 @@ Vue.component('my-game', { ); } elementArray.push(gameDiv); - if (!!this.vr.reserve) //TODO: table, show counts for reserve pieces - // - // 3 + if (!!this.vr.reserve) { - let reservePiecesArray = []; + const shiftIdx = (this.mycolor=="w" ? 0 : 1); + let myReservePiecesArray = []; for (let i=0; i