projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Interweave, remove unused Dynamo images
[vchess.git]
/
client
/
src
/
components
/
BaseGame.vue
diff --git
a/client/src/components/BaseGame.vue
b/client/src/components/BaseGame.vue
index
ddfe1e7
..
dd15f13
100644
(file)
--- a/
client/src/components/BaseGame.vue
+++ b/
client/src/components/BaseGame.vue
@@
-409,6
+409,8
@@
export default {
smove.unambiguous = V.GetUnambiguousNotation(smove);
this.vr.play(smove);
this.lastMove = smove;
smove.unambiguous = V.GetUnambiguousNotation(smove);
this.vr.play(smove);
this.lastMove = smove;
+ // Is opponent (or me) in check?
+ this.incheck = this.vr.getCheckSquares(this.vr.turn);
if (!this.inMultimove) {
// Condition is "!navigate" but we mean "!this.autoplay"
if (!navigate) {
if (!this.inMultimove) {
// Condition is "!navigate" but we mean "!this.autoplay"
if (!navigate) {
@@
-470,8
+472,6
@@
export default {
if (!smove.fen)
// NOTE: only FEN of last sub-move is required (=> setting it here)
smove.fen = this.vr.getFen();
if (!smove.fen)
// NOTE: only FEN of last sub-move is required (=> setting it here)
smove.fen = this.vr.getFen();
- // Is opponent in check?
- this.incheck = this.vr.getCheckSquares(this.vr.turn);
this.emitFenIfAnalyze();
this.inMultimove = false;
this.score = computeScore();
this.emitFenIfAnalyze();
this.inMultimove = false;
this.score = computeScore();