Professional Documents
Culture Documents
Tic Tac Toe Game Using C: A Project Rreport Submitted by
Tic Tac Toe Game Using C: A Project Rreport Submitted by
Tic Tac Toe Game Using C: A Project Rreport Submitted by
A PROJECT RREPORT
Submitted by
TO
I M S ENGINEERING COLLEGE GHAZIABAD (U.P)
In mini project for the degree
Of
BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING
Project Supervisor :
Approved By:
MR. KKK
Contents
1. PREFACE……………………………………………….………….. 1
2. ACKNOWLEDGEMENTS….………………………….………2
3.WHAT IS TIC TAC TOE ? ………………………………………3
4. STRATEGY…………………………………………….………...... 4
5. PROGRAM FOR TIC TAC TOE GAME…………………… 11
6. RESULT………………………………………….………….19
7. CONCLUSION…………………………………….………….... 20
PREFACE
#include<stdio.h>
char
box[10]={'0','1','2','3','4','5','6','7','8','9'}
;
void creating_board();
void marking_board(int,char);
int chech_for_win();
int main()
{
int choice,player=1,i;
char mark;
do{
creating_board();
player=(player % 2) ? 1 : 2;
printf("player%d,enter a
number",player);
scanf("%d",&choice);
}
while(i == -1);
creating_board();
if(i==1)
void creating_board()
{
RESULT
There are 3 condition in result
1-player 2 win
2-player 1 lose
3-draw
1-player 2 win
2. player 1 win
3-DRAW