X-Git-Url: https://git.auder.net/images/diag_mark.svg?a=blobdiff_plain;f=client%2Fsrc%2Fviews%2FGame.vue;h=d88ac1e2aa8dfc2d0d0b916e20337774ca90d2aa;hb=45d52e8a6a0faa784a545eae7b1ea551c3e8061b;hp=d66716c2545b277ea7ea188ab32e7cde1f7f99b2;hpb=70c9745d34b705eb8a4dc72b6e4655739d31347c;p=vchess.git diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index d66716c2..d88ac1e2 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1391,7 +1391,11 @@ export default { !!this.repeat[fenObj] ? this.repeat[fenObj] + 1 : 1; - if (this.repeat[fenObj] >= 3) this.drawOffer = "threerep"; + if (this.repeat[fenObj] >= 3) { + if (V.LoseOnRepetition) + this.gameOver(moveCol == "w" ? "0-1" : "1-0", "Repetition"); + else this.drawOffer = "threerep"; + } else if (this.drawOffer == "threerep") this.drawOffer = ""; if (!!this.game.mycolor && !data.receiveMyMove) { // NOTE: 'var' to see that variable outside this block