- if (moves.length == 0)
- return moves;
- const color = this.getColor(moves[0].start.x, moves[0].start.y);
- const oppCol = C.GetOppCol(color);
- // Remove captures (NOTE: altering canTake has side effects,
- // Benedict is still based on captures even if they are forbidden):
- moves = super.postProcessPotentialMoves(moves)
- .filter(m => this.board[m.end.x][m.end.y] == "");