projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix incheck bug
[vchess.git]
/
client
/
src
/
components
/
BaseGame.vue
diff --git
a/client/src/components/BaseGame.vue
b/client/src/components/BaseGame.vue
index
1240bcb
..
ea07a6d
100644
(file)
--- a/
client/src/components/BaseGame.vue
+++ b/
client/src/components/BaseGame.vue
@@
-17,7
+17,7
@@
div#baseGame(tabindex=-1 @click="() => focusBg()"
#boardContainer
Board(:vr="vr" :last-move="lastMove" :analyze="analyze"
:user-color="game.mycolor" :orientation="orientation"
#boardContainer
Board(:vr="vr" :last-move="lastMove" :analyze="analyze"
:user-color="game.mycolor" :orientation="orientation"
- :vname="game.vname" @play-move="play")
+ :vname="game.vname"
:incheck="incheck"
@play-move="play")
#turnIndicator(v-if="game.vname=='Dark' && game.score=='*'")
| {{ turn }}
#controls
#turnIndicator(v-if="game.vname=='Dark' && game.score=='*'")
| {{ turn }}
#controls
@@
-71,6
+71,7
@@
export default {
cursor: -1, //index of the move just played
lastMove: null,
firstMoveNumber: 0, //for printing
cursor: -1, //index of the move just played
lastMove: null,
firstMoveNumber: 0, //for printing
+ incheck: [], //for Board
};
},
watch: {
};
},
watch: {