-
-
Save parzibyte/5999adddc1ff44a5f949aeab46e5a0d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def obtener_matriz_inicial(): | |
matriz = [] | |
for y in range(FILAS): | |
# Agregamos un arreglo a la matriz, que sería una fila básicamente | |
matriz.append([]) | |
for x in range(COLUMNAS): | |
# Y luego agregamos una celda a esa fila. Por defecto lleva "Mar" | |
matriz[y].append(MAR) | |
return matriz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment