main.py
def write_round(self):
        """Prompts the user for the next moves."""
        white_move = str(input("Ingresa la jugada de las blancas ")).strip();
        black_move = str(input("Ingresa la jugada de las negras ")).strip();
        try:
            if is_round(white_move) and is_round(black_move):
                    self.game.append(white_move);
                    self.game.append(black_move);

                    if 'x' in white_move:
                        in_1 = white_move.index('x');
                        self.black_piece_captured(white_move[in_1+1:in_1+3], \
                        self.black_captured_pieces);
                    if 'x' in black_move:
                        in_2 = black_move.index('x');
                        self.white_piece_captured(black_move[in_2+1:in_2+3], \
                        self.white_captured_pieces);
            else:
                print("Notación inválida. Por favor, intente nuevamente.");
                self.write_round();
        except:
            print("Ha ocurrido un error. Por favor intente nuevamente.")
Prompts the user for the next moves.
Prompts the user for the next moves.
Prompts the user for the next moves .
def write_round(self):
        white_move = str(input("Ingresa la jugada de las blancas ")).strip();
        black_move = str(input("Ingresa la jugada de las negras ")).strip();
        try:
            if is_round(white_move) and is_round(black_move):
                    self.game.append(white_move);
                    self.game.append(black_move);
                    if 'x' in white_move:
                        in_1 = white_move.index('x');
                        self.black_piece_captured(white_move[in_1+1:in_1+3], \
                        self.black_captured_pieces);
                    if 'x' in black_move:
                        in_2 = black_move.index('x');
                        self.white_piece_captured(black_move[in_2+1:in_2+3], \
                        self.white_captured_pieces);
            else:
                print("Notación inválida. Por favor, intente nuevamente.");
                self.write_round();
        except:
            print("Ha ocurrido un error. Por favor intente nuevamente.")
def write_round ( self ) : white_move = str ( input ( "Ingresa la jugada de las blancas " ) ) . strip ( ) ; black_move = str ( input ( "Ingresa la jugada de las negras " ) ) . strip ( ) ; try : if is_round ( white_move ) and is_round ( black_move ) : self . game . append ( white_move ) ; self . game . append ( black_move ) ; if 'x' in white_move : in_1 = white_move . index ( 'x' ) ; self . black_piece_captured ( white_move [ in_1 + 1 : in_1 + 3 ] , self . black_captured_pieces ) ; if 'x' in black_move : in_2 = black_move . index ( 'x' ) ; self . white_piece_captured ( black_move [ in_2 + 1 : in_2 + 3 ] , self . white_captured_pieces ) ; else : print ( "Notación inválida. Por favor, intente nuevamente."); self . write_round ( ) ; except : print ( "Ha ocurrido un error. Por favor intente nuevamente." )
Prompts the user for the next moves.
Prompts the user for the next moves .
"""Prompts the user for the next moves."""
self