public static bool TryGetMove(string notation, out Move move) { if (NotationParser.TryParseNotation(notation, out move)) { move._notation = notation; return(true); } else { return(false); } }
public static Move GetMove(string notation) { Move move; if (NotationParser.TryParseNotation(notation, out move)) { move._notation = notation; return(move); } else { throw new Exception("Bad move notation"); } }