This is the project based on tic tac toe game. It is a game for two players. And x and 0 used in this game. When any of them placed in horizontal, vertical or diagonal form the player wins.
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Tic tac toe
1. Aryabhatta International College
of Technical Education
Ajmer, Rajasthan
A
PROJECT REPORT
ON
Tic Tac Toe: C++
Submitted in partial fulfilment for the
Award of the Degree of
BACHELOR OF COMPUTER APPLICATIONS
2017-2018
Submitted to:
Aryabhatta International College of Technical Education
Submitted by:
Harshita Bhargava
2. ACKNOWLEDGEMENT
I am thankful to Kriti Sankhla Ma’am for her valuable time she has devoted to
me and given me a lot of knowledge and help for the project. I am also thankful
to other teachers for their expert guidance. It was a great experience for me to
work and learn under their guidance.
Words defeat us in expressing our deep sense of gratitude for our friends, whose
continued resourceful support and guidance enabled me to overcome all the
challenges that I have faced while developing the project.
Harshita Bhargava
3. TIC TAC TOE
#include<iostream.h>
#include<conio.h>
char a[10]={'0','1','2','3','4','5','6','7','8','9'};
class Tic_tac
{
private:
int player,choice,i;
char mark;
public:
void board();
void game();
int checkwin();
};
Tic_tac obj;
void Tic_tac::game()
{
clrscr();
int player=1;
int choice,i;
char mark;
obj.board();
do
{
player=(player%2==1)?1:2;
cout<<endl<<"Player "<<player<<endl<<"Enter a number:";