projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move 'anonymousCount' which was computed to a method in Hall. Seems more accurate
[vchess.git]
/
client
/
src
/
components
/
BaseGame.vue
diff --git
a/client/src/components/BaseGame.vue
b/client/src/components/BaseGame.vue
index
471c139
..
4162dfc
100644
(file)
--- a/
client/src/components/BaseGame.vue
+++ b/
client/src/components/BaseGame.vue
@@
-291,7
+291,7
@@
export default {
if (this.game.mode == "analyze") {
this.$emit(
"fenchange",
if (this.game.mode == "analyze") {
this.$emit(
"fenchange",
- this.lastMove ? this.lastMove.fen : this.game.fenStart
+
!!
this.lastMove ? this.lastMove.fen : this.game.fenStart
);
}
},
);
}
},
@@
-309,6
+309,7
@@
export default {
const playSubmove = (smove) => {
if (!navigate) smove.notation = this.vr.getNotation(smove);
this.vr.play(smove);
const playSubmove = (smove) => {
if (!navigate) smove.notation = this.vr.getNotation(smove);
this.vr.play(smove);
+ this.lastMove = smove;
if (!navigate) {
if (!this.inMultimove) {
if (this.cursor < this.moves.length - 1)
if (!navigate) {
if (!this.inMultimove) {
if (this.cursor < this.moves.length - 1)
@@
-356,7
+357,6
@@
export default {
smove.fen = this.vr.getFen();
// Is opponent in check?
this.incheck = this.vr.getCheckSquares(this.vr.turn);
smove.fen = this.vr.getFen();
// Is opponent in check?
this.incheck = this.vr.getCheckSquares(this.vr.turn);
- this.lastMove = smove;
this.emitFenIfAnalyze();
this.inMultimove = false;
if (!noemit) {
this.emitFenIfAnalyze();
this.inMultimove = false;
if (!noemit) {