attrs: {
src:
"/images/pieces/" +
- V.getPpath(this.vr.board[ci][cj]) +
+ this.vr.getPpath(this.vr.board[ci][cj], this.userColor, this.score) +
".svg"
}
})
attrs: {
src:
"/images/pieces/" +
- this.vr.getReservePpath(playingColor, i) +
+ this.vr.getReservePpath(i, playingColor) +
".svg"
}
}),
attrs: {
src:
"/images/pieces/" +
- this.vr.getReservePpath(oppCol, i) +
+ this.vr.getReservePpath(i, oppCol) +
".svg"
}
}),
attrs: {
src:
"/images/pieces/" +
- V.getPpath(m.appear[0].c + m.appear[0].p) +
+ this.vr.getPpath(m.appear[0].c + m.appear[0].p) +
".svg"
},
class: { "choice-piece": true },
// Next condition: classList.contains(piece) fails because of marks
while (landing.tagName == "IMG") landing = landing.parentNode;
if (this.start.id == landing.id)
- //one or multi clicks on same piece
+ // One or multi clicks on same piece
return;
// OK: process move attempt, landing is a square node
let endSquare = getSquareFromId(landing.id);