generate functionTue, 18 Apr 2023

hacer un programa que sea un tablero de ajedrez con dos jugadores

def tablero(filas, columnas, jugador1, jugador2): print("\nBienvenido a Ajedrez") for i in range(filas): for j in range(columnas): if (i+j) % 2 == 0: print("| ", jugador1, " ", end = "") else: print("| ", jugador2, " ", end = "") print("|") print("\nFin del juego") tablero(8, 8, "♜", "♞")

Questions about programming?Chat with your personal AI assistant