Created
February 15, 2020 04:21
-
-
Save parzibyte/ae7b0fc5f7842d956354946893742573 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
// Calcula coordenadas aleatorias para colocar la comida | |
void randomizarComida() { | |
comidaX = random(0, ANCHURA_TABLERO); | |
comidaY = random(0, ALTURA_TABLERO); | |
} | |
// Coloca la comida en el escenrio | |
void acomodarComida() { | |
escenario[comidaY][comidaX] = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment