Browse Source

Write clearScreen function

main^2
fdai7726 11 months ago
committed by Peter Wiebe
parent
commit
5d3e06d2a7
  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