Browse Source

Write clearScreen function

remotes/origin/Ahmad
fdai7726 11 months ago
parent
commit
e5e445ec0f
  1. 9
      src/main/c/VierGewinnt.c

9
src/main/c/VierGewinnt.c

@ -125,4 +125,11 @@ void printBoard(char board[ROWS][COLS]) {
printf(" 1 2 3 4 5 6 7\n\n"); printf(" 1 2 3 4 5 6 7\n\n");
} }
// Write clearScreen function
void clearScreen() {
#ifdef _WIN32
system("cls");
#else
system("clear");
#endif
}
Loading…
Cancel
Save