Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/gana.c

Created Jun 8, 2020
Embed
What would you like to do?
// Para saber si el usuario ganó
int noHayCasillasSinAbrir(char tablero[FILAS][COLUMNAS]) {
int l;
for (l = 0; l < FILAS; l++) {
int m;
for (m = 0; m < COLUMNAS; m++) {
char actual = tablero[l][m];
if (actual == ESPACIO_SIN_DESCUBRIR) {
return 0;
}
}
}
return 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment