Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

ALPHA COLLEGE OF ENGINEERING

#30/2, KANNUR POST, 14TH KM, HENNUR-BAGLUR ROAD,


BANGALORE-560077
(Affiliated to Visvesvaraya Technological University Belgaum)

Mini Project Synopsis On


"TIC TAC TOE

Submitted By
SREE VIDYA SAGAR.R [1AC13CS030]

Under The Guidance Of


Ms. Chaitra Reddy
Asst. Professor
Dept. of CSE

Department of Computer Science and Engineering


Alpha College of Engineering, Bangalore-77

Tic tac toe


ABSTRACT:
Tic Tac Toe is one of the simple game, which is also called as noughts and
crosses but in our local terms we called it as cross-zero game. It is a penciland-paper game for two players, where player select X and O, as their playing
item. It is played on the grid of 33. The player who succeeds in placing three
respective marks in a horizontal, vertical, or diagonal row wins the game.

OVERVIEW OF THE PROJECT

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.

Aim of the project:

Some time it is necessary to display those memory chip based on the read and
writing content of the object.

Our aim is to draw attention of users toward computer graphics.

Our aim is to create dominant project which is simple in use.

Provide routines for drawing memory chip based on read and write.

The benefits of this project are as follows:


1. Simplicity: our project is easy and simple to use.
2. Usability: it is easy to use and implement.
3. Flexibility: It is very flexible since it is easy to add new features to it.
4. Portable: It offers portability. It can be run anywhere any time.
5. Self-learning: Coding of project itself is understandable to others.

Constraints on the project:


1. Project get executed only when glut is installed.
2. Output will differ if there is fault in graphic system.
3. May produce flickering image if colored buffer is not cleared properly
& We need to initialize glut library in order to interact with window system.

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.

Same Idea of this project can also be implement in animated movies.

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.

RULES FOR TIC-TAC-TOE:


1. The game is played on a grid that's 3 squares by 3 squares.
2. You are X, your friend (or the computer in this case) is O. Players take turns putting
their marks in empty squares.
3. The first player to get 3 of her marks in a row (up, down, across, or diagonally) is the
winner.
4. When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game
ends in a tie.

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.

You might also like