castlingRights function

CastlingRights castlingRights(
  1. String crString
)

Implementation

CastlingRights castlingRights(String crString) {
  CastlingRights cr = 0;
  Castling.symbols.forEach((k, v) {
    if (crString.contains(k)) cr += v;
  });
  return cr;
}