main.py
def is_round(x):
    """Returns True if given string is a round of chess"""
    if x == '':
        return False;
    if x == 'O-O-O' or x == 'O-O':
        return True;
    if x == '1-0' or x == '0-1' or x == '0-0':
        return True;

    if x[-1] == '+' or x[-1] == '#':
        x = x.replace('+','');
        x = x.replace('#','');

    if x[-1].isupper() and is_piece_other_than_king(x[-1]) and x[-2] == '=' \
     and is_row(x[-3]) and is_column(x[-4]) and x[-4] == x[0]:
        return True;

    if len(x) == 2:
        if is_column(x[0]) and is_row(x[1]):
            return True;
    elif len(x) == 3:
        if is_piece(x[0]) and is_column(x[1]) and is_row(x[2]):
            return True;
    elif len(x) == 4:
        if is_piece(x[0]) and x[1] =='x' and is_column(x[2]) and is_row(x[3]):
            return True;
        elif is_piece(x[0]) and is_column(x[1]) and is_column(x[2]) and \
        is_row(x[3]):
            return True;
        elif is_column(x[0]) and x[1] =='x' and is_column(x[2]) and is_row(x[3]):
            return True;
    elif len(x) == 5:
        if is_piece(x[0]) and is_column(x[1]) and x[2]=='x' and is_column(x[3])\
        and is_row(x[4]):
            return True;
    else:
        return False;
Returns True if given string is a round of chess
Returns True if given string is a round of chess
Returns True if given string is a round of chess
def is_round(x):
    if x == '':
        return False;
    if x == 'O-O-O' or x == 'O-O':
        return True;
    if x == '1-0' or x == '0-1' or x == '0-0':
        return True;
    if x[-1] == '+' or x[-1] == '#':
        x = x.replace('+','');
        x = x.replace('#','');
    if x[-1].isupper() and is_piece_other_than_king(x[-1]) and x[-2] == '=' \
     and is_row(x[-3]) and is_column(x[-4]) and x[-4] == x[0]:
        return True;
    if len(x) == 2:
        if is_column(x[0]) and is_row(x[1]):
            return True;
    elif len(x) == 3:
        if is_piece(x[0]) and is_column(x[1]) and is_row(x[2]):
            return True;
    elif len(x) == 4:
        if is_piece(x[0]) and x[1] =='x' and is_column(x[2]) and is_row(x[3]):
            return True;
        elif is_piece(x[0]) and is_column(x[1]) and is_column(x[2]) and \
        is_row(x[3]):
            return True;
        elif is_column(x[0]) and x[1] =='x' and is_column(x[2]) and is_row(x[3]):
            return True;
    elif len(x) == 5:
        if is_piece(x[0]) and is_column(x[1]) and x[2]=='x' and is_column(x[3])\
        and is_row(x[4]):
            return True;
    else:
        return False;
def is_round ( x ) : if x == '' : return False ; if x == 'O-O-O' or x == 'O-O' : return True ; if x == '1-0' or x == '0-1' or x == '0-0' : return True ; if x [ - 1 ] == '+' or x [ - 1 ] == '#' : x = x . replace ( '+' , '' ) ; x = x . replace ( '#' , '' ) ; if x [ - 1 ] . isupper ( ) and is_piece_other_than_king ( x [ - 1 ] ) and x [ - 2 ] == '=' and is_row ( x [ - 3 ] ) and is_column ( x [ - 4 ] ) and x [ - 4 ] == x [ 0 ] : return True ; if len ( x ) == 2 : if is_column ( x [ 0 ] ) and is_row ( x [ 1 ] ) : return True ; elif len ( x ) == 3 : if is_piece ( x [ 0 ] ) and is_column ( x [ 1 ] ) and is_row ( x [ 2 ] ) : return True ; elif len ( x ) == 4 : if is_piece ( x [ 0 ] ) and x [ 1 ] == 'x' and is_column ( x [ 2 ] ) and is_row ( x [ 3 ] ) : return True ; elif is_piece ( x [ 0 ] ) and is_column ( x [ 1 ] ) and is_column ( x [ 2 ] ) and is_row ( x [ 3 ] ) : return True ; elif is_column ( x [ 0 ] ) and x [ 1 ] == 'x' and is_column ( x [ 2 ] ) and is_row ( x [ 3 ] ) : return True ; elif len ( x ) == 5 : if is_piece ( x [ 0 ] ) and is_column ( x [ 1 ] ) and x [ 2 ] == 'x' and is_column ( x [ 3 ] ) and is_row ( x [ 4 ] ) : return True ; else : return False ;
Returns True if given string is a round of chess
Returns True if given string is a round of chess
"""Returns True if given string is a round of chess"""
x