makeSanUnchecked method

(Position, String) makeSanUnchecked(
  1. Move move
)

Returns the SAN of this Move and the updated Position, without checking if the move is legal.

Implementation

(Position, String) makeSanUnchecked(Move move) {
  final san = _makeSanWithoutSuffix(move);
  final newPos = playUnchecked(move);
  final suffixed = newPos.outcome?.winner != null
      ? '$san#'
      : newPos.isCheck
          ? '$san+'
          : san;
  return (newPos, suffixed);
}