Commit 086d2294 by Silvia Barrientos

Update ta-te-ti.c

parent b9fc2f43
...@@ -139,7 +139,7 @@ char validarJugada(char mat[][TRES], char turno, int contador, char ganador){ ...@@ -139,7 +139,7 @@ char validarJugada(char mat[][TRES], char turno, int contador, char ganador){
} }
imprimirTabla(mat); imprimirTabla(mat);
if(fila(mat)==0 || columna(mat)==0 || diagonalPrincipal(mat)==0 || diagonalSecundaria(mat)==0){ if(fila(mat)==1 || columna(mat)==1 || diagonalPrincipal(mat)==1 || diagonalSecundaria(mat)==1){
ganador = turno; ganador = turno;
} }
turno = turnoVal(turno); turno = turnoVal(turno);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment