if (!!lm) {
if (!Array.isArray(lm)) lm = [lm];
lm.forEach(m => {
- lmHighlights[m.start.x + sizeX * m.start.y] = true;
- lmHighlights[m.end.x + sizeX * m.end.y] = true;
+ if (V.OnBoard(m.start.x, m.start.y))
+ lmHighlights[m.start.x + sizeX * m.start.y] = true;
+ if (V.OnBoard(m.end.x, m.end.y))
+ lmHighlights[m.end.x + sizeX * m.end.y] = true;
});
}
const showLight = (
</script>
<style lang="sass" scoped>
+@import "@/styles/_board_squares_img.sass";
+
// NOTE: no variants with reserve of size != 8
.game.reserve-div
margin-bottom: 18px
background-color: #9f9fff
.dark-square.chesstempo.highlight-dark
background-color: #557fff
-
</style>