Monday, April 12, 2010

This is the display part of the game tick tack toe in C language


void display()
{
//--------------------------------------------------------------------
printf("\n");
printf( "\t\t\t -------------------------\n");
printf("\t\t\t | | | |\n");
printf("\t\t\t | %c | %c | %c |\n",A[0][0],A[0][1],A[0][2]);
printf("\t\t\t | | | |\n");
printf( "\t\t\t -------------------------\n");
printf("\t\t\t | | | |\n");
printf("\t\t\t | %c | %c | %c |\n",A[1][0],A[1][1],A[1][2]);
printf("\t\t\t | | | |\n");
printf( "\t\t\t -------------------------\n");
printf("\t\t\t | | | |\n");
printf("\t\t\t | %c | %c | %c |\n",A[2][0],A[2][1],A[2][2]);
printf("\t\t\t | | | |\n");
printf( "\t\t\t -------------------------\n");
printf("\n");
//--------------------------------------------------------------------
}

No comments:

Post a Comment

Please give your comments.

Thanks
Razye :)