C > Games and Graphics
Tic Tac Toe Game
Tic Tac Toe Game #include
#include
#include
void main() { start: int a[3][3]={5,6,7,8,9,10,11,12,13},i,j,k,x,y,t,cn=0,co=0; char c; static int nod=0,nn=0,sc[2]={0,0}; nod++; clrscr(); int driver=DETECT,mode; initgraph(&driver,&mode,"c:\tc\bgi"); setbkcolor(RED); line(100,200,400,200); line(100,300,400,300); line(200,100,200,400); line(300,100,300,400); gotoxy(20,2); cout<<"TIC TAC TOE"; gotoxy(20,3); cout<<"Unregistered Vesion 1.0"; gotoxy(10,5);cout<<" BOX NO "; gotoxy(15,7);cout<<"0"; gotoxy(30,7);cout<<"1"; gotoxy(45,7);cout<<"2"; gotoxy(15,14);cout<<"3"; gotoxy(30,14);cout<<"4"; gotoxy(45,14);cout<<"5"; gotoxy(15,21);cout<<"6"; gotoxy(30,21);cout<<"7"; gotoxy(45,21);cout<<"8"; gotoxy(55,22);cout<<"RESULT"; gotoxy(55,23);cout<<"*************************"; gotoxy(55,15);cout<<"P1-"<
C Codes
Beginners
C on Unix
Code Snippets
Data Structures
File Operations
Games Graphics
Gnu-Linux
Hardware
Mathematics
Miscellaneous
Small Programs
Sorting