Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions C/Es.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
//Function to show the Tic Tac Toe Frame
void showframe(int posx, int posy)
{

int hr=196, vr=179; // These are ascii character which display the lines
int crossbr=197; // Another ascii character
int x=posx, y=posy;
int i,j;

gotoxy(35,4); cprintf("TIC TAC TOE");
gotoxy(35,5); for(i=0;i<11;i++) cprintf("%c",223);


for(i=0;i<2;i++)
{
for(j=1;j<=11;j++)
{
gotoxy(x,y);
printf("%c",hr);
x++;p; x++;
}
x=posx; y+=2;
}
x=posx+3; y=posy-1;

for(i=0;i<2;i++)
{

for(j=1;j<=5;j++)
{
gotoxy(x,y);
printf("%c",vr);
y++;
}
x+=4;y=posy-1;
}


x=posx+3; y=posy;
gotoxy(x,y);
printf("%c",crossbr);

x=posx+7; y=posy;
gotoxy(x,y);
printf("%c",crossbr);

x=posx+3; y=posy+2;
gotoxy(x,y);
printf("%c",crossbr);

x=posx+7; y=posy+2;
gotoxy(x,y);
printf("%c",crossbr);

}