projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Omega castling and pieces randomization, fix a bug when undoing partial multi...
[vchess.git]
/
client
/
src
/
components
/
Board.vue
diff --git
a/client/src/components/Board.vue
b/client/src/components/Board.vue
index
56f3488
..
6c26722
100644
(file)
--- a/
client/src/components/Board.vue
+++ b/
client/src/components/Board.vue
@@
-625,6
+625,13
@@
export default {
this.processArrowAttempt(e);
}
},
this.processArrowAttempt(e);
}
},
+ // Called by BaseGame after partially undoing multi-moves:
+ resetCurrentAttempt: function() {
+ this.possibleMoves = [];
+ this.start = null;
+ this.click = "";
+ this.selectedPiece = null;
+ },
processMoveAttempt: function(e) {
// Obtain the move from start and end squares
const [offsetX, offsetY] =
processMoveAttempt: function(e) {
// Obtain the move from start and end squares
const [offsetX, offsetY] =