- if (move.vanish.length == 0) {
- if (move.appear.length == 1) toNextPlayer();
- else {
- // Removal (subTurn == 0 --> 1)
- this.reserve[this.turn][move.start.p]--;
- this.subTurn++;
- }
- return;
- }
- const start = { x: move.vanish[0].x, y: move.vanish[0].y };
- const end = { x: move.appear[0].x, y: move.appear[0].y };
- if (start.x == end.x && start.y == end.y) {
- // Specialisation (subTurn == 1 before 2)
- this.reserve[this.turn][move.appear[0].p]--;
- V.PlayOnBoard(this.board, move);
- this.definitions.push(move.end);
+ if (this.movesCount <= 1) toNextPlayer();
+ else if (move.vanish.length == 0) {
+ // Removal (subTurn == 0 --> 1)
+ this.reserve[this.turn][move.start.p]--;