You are on page 1of 20

Project Report Tic Tac Toe

1. Objectiv
es:
Our project nam
e is Tic-Tac-Toe 
game. This gam
e is very popular 
and isfairly sim
ple by itself. It i
s actually a two 
player game. In 
this game, there 
isa board with
n

 x
n

 squares. In our 
game, it is 3 x 3 
squares.The goa
l of Tic-Tac-
Toe is to be one 
of the players to 
get three sames
ymbols in a row 
- horizontally, v
ertically or diag
onally - on a 3 x 
3 grid.
2. Overvie
w:
This game can b
e played in a
 
3x3 grid (shown 
in the figure 2.1
) .The gamecan 
be played by tw
o players. There 
are two options 
for players:(a) 
Human (b) Com
puter
Figure: 2.1
 
2.1 Players:
For the option h
uman, both the p
layers are huma
n and for the opt
ioncomputer, the 
first player is hu
man and the sec
ond player is co
mputer.
 

 
 2.2 Theory o
f Game:
 
A player can ch
oose between t
wo symbols wit
h his opponent, 
usual gamesuse 
“X”and “O”. If 
first player choo
se “X” then the 
second player h
ave to play with 
“O” and vice ve
rsa.A player ma
rks any of the 3
x3 squares with 
his symbol (ma
y be “X” or “O”
)and his aim is t
o create a straig
ht line horizonta
lly or vertically 
or diagonallywit
h two intensions
:a) Create a strai
ght line before h
is opponent to 
win the game. b
) Restrict his op
ponent from cre
ating a straight l
ine first.In case 
logically no one 
can create a stra
ight line with hi
s own symbol, t
hegame results 
a tie.Hence ther
e are only three 
possible results 
– a player wins, 
his opponent(hu
man or compute
r) wins or it’s a 
tie.
 

 
1 2 34 5 67 8 9
Figure: 2.2
If any player is 
able to draw thr
ee Xs or three O
s in the followin
gcombinations t
hen that player 
wins. The comb
inations are:a) 1
, 2, 3 b) 4, 5, 6c) 
7, 8, 9 d) 1, 4, 7
e)
 2, 5,
8 f) 3, 6, 9
h) 1, 5,
9 i)
 3, 5, 7

DOWNLOAD PDF

 Find new research papers in:

 Physics

 Chemistry

 Biology

 Health Sciences
 Ecology

 Earth Sciences

 Cognitive Science

 Mathematics

 Computer Science

You might also like