src/main.c
/*
 * Function To Draw Tic-Tac-Toe Board With Players Mark
 */
Function To Draw Tic-Tac-Toe Board With Players Mark
Function To Draw Tic - Tac - Toe Board With Players Mark
void displayBoard() {
    system("cls");
    printf("\n\tTic Tac Toe\n\n");
    printf("Player1 (X) - Player2 (O)\n\n");
    printf("    |    |   \n");
    printf(" %c  | %c  | %c\n",square[1], square[2], square[3]);
    printf("____|____|____\n");
    printf("    |    |    \n");
    printf(" %c  | %c  | %c\n",square[4], square[5], square[6]);
    printf("____|____|____\n");
    printf("    |    |   \n");
    printf(" %c  | %c  | %c\n",square[7], square[8], square[9]);
    printf("    |    |   \n\n");
}
void displayBoard ( ) { system ( " " ) ; printf ( " \n \t \n \n " ) ; printf ( " \n \n " ) ; printf ( " \n " ) ; printf ( " \n " , square [ 1 ] , square [ 2 ] , square [ 3 ] ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " , square [ 4 ] , square [ 5 ] , square [ 6 ] ) ; printf ( " \n " ) ; printf ( " \n " ) ; printf ( " \n " , square [ 7 ] , square [ 8 ] , square [ 9 ] ) ; printf ( " \n \n " ) ; }
Function To Draw Tic-Tac-Toe Board With Players Mark
Function To Draw Tic - Tac - Toe Board With Players Mark