Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 22, 2021 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/5999adddc1ff44a5f949aeab46e5a0d2 to your computer and use it in GitHub Desktop.
Save parzibyte/5999adddc1ff44a5f949aeab46e5a0d2 to your computer and use it in GitHub Desktop.
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