isMoveValid method

bool isMoveValid(
  1. String move
)

Checks whether an algebraic move string (e.g. e2e4, f7f8q) is a valid move.

Implementation

bool isMoveValid(String move) => getMove(move) != null;