From 4cee1c0290ff44596b46ad4fc518a5ce2f365a1e Mon Sep 17 00:00:00 2001 From: FlyingWolFox <49326973+FlyingWolFox@users.noreply.github.com> Date: Mon, 25 Nov 2019 11:29:00 -0300 Subject: [PATCH] Lig 4: -Optimazations -One of them maybe solve the run-time check error #2. Maybe --- Lig 4/Lig 4.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lig 4/Lig 4.c b/Lig 4/Lig 4.c index d1e3a58..6c74a41 100644 --- a/Lig 4/Lig 4.c +++ b/Lig 4/Lig 4.c @@ -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); @@ -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; @@ -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);