X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=5c1e6024a273dee0196cf23920e8a502ab51bc1f;hb=70ff70ea6054d12f296e5d989b0601bddad244d4;hp=2897b1cd00f6abd5d0c61d8e488075f71be54dab;hpb=1221ac47836806efb287b0323b92957d9129c653;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 2897b1cd..5c1e6024 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