X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBaseGame.vue;h=1253c0634ea161e1ffd3c934033dee0a3a4de3f5;hp=488567b5b3ec9b22cc4f1c2261104c6482f19702;hb=311cba767e3c461edb0c8c758bfb193ef670a68f;hpb=e71161fbfffe53b0f4b174e0467cdd98cc70b7b0 diff --git a/client/src/components/BaseGame.vue b/client/src/components/BaseGame.vue index 488567b5..1253c063 100644 --- a/client/src/components/BaseGame.vue +++ b/client/src/components/BaseGame.vue @@ -255,9 +255,10 @@ export default { }); }); if (firstMoveColor == "b") { - // 'end' is required for Board component to check lastMove for e.p. + // 'start' & 'end' is required for Board component this.moves.unshift({ notation: "...", + start: { x: -1, y: -1 }, end: { x: -1, y: -1 } }); } @@ -413,7 +414,7 @@ export default { if (!navigate && this.game.mode != "analyze") this.$emit("gameover", score, message); // Just show score on screen (allow undo) - else this.showEndgameMsg(score + " . " + message); + else this.showEndgameMsg(score + " . " + this.st.tr[message]); } if (!navigate && this.game.mode != "analyze") { const L = this.moves.length;