1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
#include <stdio.h>
#include <conio.h>
void currentposition(char a,char b,char c,char d,char e,char f,char g,char h ,char i){
a = '*',b = '*',c = '*',d = '*',e = '*',f = '*',g = '*',h = '*',i = '*';
printf("\nCurrent Position\n\n");
printf(" %c %c %c \n",a,b,c);
printf(" %c %c %c \n",d,e,f);
printf(" %c %c %c \n",h,g,i); }
void enteroptions(char choice)
{
printf("\nEnteroptions\n",choice);
printf(" \n a b c");
printf(" \n d e f");
printf(" \n g h i\n");
}
int main ()
{
char a,b,c,d,e,f,g,h,i;
char choice;
printf("\n|T I C T A C T O E|");
printf("\n|I O|");
printf("\n|C Lets play T|");
printf("\n|T C|");
printf("\n|A TIC A|");
printf("\n|C TAC T|");
printf("\n|T TOE C|");
printf("\n|O I|");
printf("\n|E O T C A T C I T|\n\n");
fflush(stdin);
system("pause");
system("cls");
currentposition(a,b,c,d,e,f,g,h,i);
enteroptions(choice);
scanf("\%c",choice);
/*????
????*/
}
|