- getPotentialMovesFrom([x, y], noPostprocess) {
- const L = this.lastMoveEnd.length;
- if (
- !!this.lastMoveEnd[L-1] &&
- (
- x != this.lastMoveEnd[L-1].x ||
- y != this.lastMoveEnd[L-1].y
- )
- ) {
- // A capture must continue: wrong square
- return [];
- }
- let moves = [];