Skip to content

Commit

Permalink
Lig 4:
Browse files Browse the repository at this point in the history
-Optimazations
-One of them maybe solve the run-time check error #2. Maybe
  • Loading branch information
FlyingWolFox committed Nov 25, 2019
1 parent 2c21747 commit 4cee1c0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Lig 4/Lig 4.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,9 @@ int main(int argc, char** argv)
setupConsole();
setBackgroundColorRGB(20, 20, 20);

clearScreenToTop();
moveTo(0, 0);

supergridPrinter(supergrid, grid, winCoordinates);
restoreConsoleMode();
printf("Jogue jogador %i\n", player);
Expand Down Expand Up @@ -426,6 +429,8 @@ int main(int argc, char** argv)
winCoordinates[count].col = (winVerifyerReturn.col - count);
}
}
clearScreenToTop();
moveTo(0, 0);
supergridPrinter(supergrid, grid, winCoordinates);
printf("Jogador %i venceu!", player);
win = true;
Expand All @@ -437,6 +442,8 @@ int main(int argc, char** argv)
{
if (tie == true)
{
clearScreenToTop();
moveTo(0, 0);
supergridTied(supergrid);
printf("Empate!");
fgets(trashCan, 5, stdin);
Expand Down

0 comments on commit 4cee1c0

Please sign in to comment.