projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
loseOnRepetition: getter seems enough
[vchess.git]
/
client
/
src
/
views
/
Game.vue
diff --git
a/client/src/views/Game.vue
b/client/src/views/Game.vue
index
2968b8f
..
11a5925
100644
(file)
--- a/
client/src/views/Game.vue
+++ b/
client/src/views/Game.vue
@@
-374,7
+374,7
@@
export default {
id: my.id,
name: my.name,
tmpIds: {
id: my.id,
name: my.name,
tmpIds: {
-
tmpId
: { focus: true }
+
[tmpId]
: { focus: true }
}
}
);
}
}
);
@@
-1447,7
+1447,7
@@
export default {
? this.repeat[fenObj] + 1
: 1;
if (this.repeat[fenObj] >= 3) {
? this.repeat[fenObj] + 1
: 1;
if (this.repeat[fenObj] >= 3) {
- if (this.vr.loseOnRepetition
()
)
+ if (this.vr.loseOnRepetition)
this.gameOver(moveCol == "w" ? "0-1" : "1-0", "Repetition");
else this.drawOffer = "threerep";
}
this.gameOver(moveCol == "w" ? "0-1" : "1-0", "Repetition");
else this.drawOffer = "threerep";
}
@@
-1619,7
+1619,8
@@
export default {
this.curDiag = getDiagram({
position: position,
orientation: V.CanFlip ? this.game.mycolor : "w",
this.curDiag = getDiagram({
position: position,
orientation: V.CanFlip ? this.game.mycolor : "w",
- darkBottomRight: V.DarkBottomRight
+ color: this.game.mycolor,
+ score: "*"
});
document.querySelector("#confirmDiv > .card").style.width =
boardDiv.offsetWidth + "px";
});
document.querySelector("#confirmDiv > .card").style.width =
boardDiv.offsetWidth + "px";