Professional Documents
Culture Documents
Tic Tac Toe
Tic Tac Toe
Submitted By
SREE VIDYA SAGAR.R [1AC13CS030]
The development of this project would improve the users knowledge about
computer graphics and OpenGL. This project provides good understanding of OpenGL
prominent functions like Transformation, Rotation, Scaling and Shear.
Keeping the factors of usability in mind we have develop this project to provide
ease of use. This project will allow user to interact with it through the use of devices like
keyboard or mouse.
This is a project mainly concern with 3D graphics, this project also contains some
keyboard functions and mouse functions.
Some time it is necessary to display those memory chip based on the read and
writing content of the object.
Provide routines for drawing memory chip based on read and write.
Application of Project:
Following are the application of the project:
Can be used whenever & wherever there is the need of TIC TAC TOE.
Can be used as demonstration package for the function like transformation, Scaling,
rotation etc.
Description:
The grid is structured mapping the objects in the array while each have some value to
them. Next is the X and O which are simply made by using cylinders and tours. Then
mouse variables, Win = windows size, mouse = mouse positions are defined to keep record
of click on the grid. Now time is to declare the players to keep track them, player and com
is given a value which determine them. The win and start game is given a value so to keep
who wins the game and where to start from with considering tie as another option.
Logic was made as Computer seek the spaces and determine where to keep the next move.
Computer move is what made the logic how it plays the move on the board by check at the
corner and in the middle space.
User interactions:
First time Computer is given a move show use can either follow it or right click to choose
whether to play as X or with O.
Press V to toggle between the orthogonal to perspective views.
Strategy:
To beat the computer (or at least tie), you need to make use of a little bit of
strategy. Strategy means figuring out what you need to do to win.
Part of your strategy is trying to figure out how to get three Xs in a row. The
other part is trying to figure out how to stop the computer from getting
three Os in a row.
After you put an X in a square, you start looking ahead. Where's the best
place for your next X? You look at the empty squares and decide which ones
are good choiceswhich ones might let you make three Xs in a row.
You also have to watch where the computer puts its O. That could change
what you do next. If the computer gets two Os in a row, you have to put your
next X in the last empty square in that row, or the computer will win. You are
forced to play in a particular square or lose the game.
If you always pay attention and look ahead, you'll never lose a game of TicTac-Toe. You may not win, but at least you'll tie.
Screenshot:
Conclusion:
Working on this project has been a rewarding experience to me. This project was bit time
consuming, but gave lots of knowledge, skills to us.
While developing this project we assume that this project will serve its needful work at its
best with minimum conflict.
The project shows usage of clipping, transformation, rotation in all the three dimensions.
At most care has been taken to make it easier to use as much as possible.