-
-
Save parzibyte/7ac0900015111f7e72b9cef97b1acf41 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
// Debería llamarse después de verificar si alguien gana | |
// Indica si hay un empate | |
int empate(char tableroOriginal[FILAS][COLUMNAS]) | |
{ | |
int y; | |
for (y = 0; y < FILAS; y++) | |
{ | |
int x; | |
for (x = 0; x < COLUMNAS; x++) | |
{ | |
// Si hay al menos un espacio vacío se dice que no hay empate | |
if (tableroOriginal[y][x] == ESPACIO_VACIO) | |
{ | |
return 0; | |
} | |
} | |
} | |
return 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment