X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBoard.vue;h=6c26722a4420e73885966196b25db5af90bb4aa3;hp=56f34880e93dcfd75744a1d68bcb9680382518ae;hb=e90bafa8fb5fb7641728231bf2398590d96c672a;hpb=2f8dce6a81063289d9d4cbca7971f80b1b194b84 diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 56f34880..6c26722a 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -625,6 +625,13 @@ export default { 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] =