Skip to content

Commit 4cee1c0

Browse files
committed
Lig 4:
-Optimazations -One of them maybe solve the run-time check error #2. Maybe
1 parent 2c21747 commit 4cee1c0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Lig 4/Lig 4.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,9 @@ int main(int argc, char** argv)
361361
setupConsole();
362362
setBackgroundColorRGB(20, 20, 20);
363363

364+
clearScreenToTop();
365+
moveTo(0, 0);
366+
364367
supergridPrinter(supergrid, grid, winCoordinates);
365368
restoreConsoleMode();
366369
printf("Jogue jogador %i\n", player);
@@ -426,6 +429,8 @@ int main(int argc, char** argv)
426429
winCoordinates[count].col = (winVerifyerReturn.col - count);
427430
}
428431
}
432+
clearScreenToTop();
433+
moveTo(0, 0);
429434
supergridPrinter(supergrid, grid, winCoordinates);
430435
printf("Jogador %i venceu!", player);
431436
win = true;
@@ -437,6 +442,8 @@ int main(int argc, char** argv)
437442
{
438443
if (tie == true)
439444
{
445+
clearScreenToTop();
446+
moveTo(0, 0);
440447
supergridTied(supergrid);
441448
printf("Empate!");
442449
fgets(trashCan, 5, stdin);

0 commit comments

Comments
 (0)