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