You are on page 1of 17

Summer Project Report on

“Tic-Tac-Toe(GUI)”
Submitted by

Nandani Kotak (180760107022)

Under the guidance of

Prof. Dhruven Prajapati (Guide)

In partial fulfillment for the award of the

degree of

BACHELOR OF ENGINEERING

in

COMPUTER ENGINEERING

SHREE SWAMI ATMANAND SARASWATI INSTITUTE OF TECHNOLGY,


SURAT

Gujarat Technological University, Ahmedabad


October – 2021

I
SHREE SWAMI ATMANAND SARASWATI INSTITUTE OF
TECHNOLOGY
Shree Swami Atmanand Saraswati Vidya Sankul
Opp. Kapodra Police Station,
Varachha Road,
Surat – 395006

CERTIFICATE
This is to certify that Nandani Kotak(180760107022) has successfully completed
Summer Project (3170001) as Tic-tac-toe(GUI) and Completed all the activity in
PMMS Portal under my guidance in partial fulfillment for the degree of Bachelor of
Engineering in Computer Engineering Department 7th Semester of Gujarat
Technological University, Ahmedabad during the academic year 2021-22.

Place: SSASIT, Surat


Date:

Prof. Prof. Vrutti Shah


Dhruven prajapati HOD, Computer Department

II
Shree Swami Atmanand Saraswati Institute of Technology
Computer Engineering Department
SELF - DECLARATION
I Nandani Pradipbhai Kotak the student of Computer Branch /Enrollment
number Computer/180760107022 , enrolled at Shree Swami
Atmanand Saraswati Institute of Technology hereby certify and declare the following:

1. I have defined my Project based on inputs at _ Tic-Tac-Toe and each of us will


make significant efforts to make attempt to solve the challenges. I will attempt the
Project work at my college or at any location under the direct and consistent
monitoring of Prof.dhruven prajapati .We will adopt all ethical practices to share credit
amongst all the contributors based on their contributions during the Mini project work.
(We will work on the project work under the direct and consistent monitoring of
industry mentors and Faculty Guides.)
2. I have not purchased the solutions developed by any 3rd party directly and the efforts
are made by me under the guidance of guides.
3. The Mini project work is not copied from any previously done projects directly.
(Same project can be done in different ways but if it has been done in same manner
before then it may not be accepted.)
4. We understand and accept that the above declaration if found to be untrue, it can
result in punishment/cancellation of project definition to me/us including failure in the
subject of Mini Project work.

Name(Enrollment No.) : Nandani Kotak(180760107022)

Contact number/numbers: 9327761552

Date: Sign:
Place : SSASIT

III
Acknowledgement
The success of any task relies on the efforts made by person but it cannot be
achieved without cooperation of other persons which are being helpful. So, we would
like to thank SHREE SWAMI ATMANAND SARASWATI INSTITUTE OF
TECHNOLOGY for giving us the opportunity of doing this Summer Project.
The entire session of our project completion was a great experience providing us
with the insight & invocation into learning various software engineering concepts &
benefits of team work. We would like to take this opportunity to express our sincere
thanks to all those people without whose support and co-operation, it would have been
difficult to complete this project.
Primarily, we are very much thankful to PMMS Project guide Dhruven
Prajapati for his leading guidance and sincere efforts throughout project work. He
took deep interest in simplifying the difficulties. Also he has been consistent source of
inspiration for us.
We also express thanks to Prof. Dhruven Prajapati as class coordinator for
her personal involvement, constructive suggestion and thoughtful idea for betterment of
the project.
We are grateful to our H.O.D. Prof. Vrutti Shah and our beloved Principal
Prof. Jignesh Vaghasia for providing us deep knowledge and all necessary resources.
We are also thankful to our Friends and Non-teaching Staff for their valuable
time & help for completion project.
Once again we are grateful to all those without whom this work would not have
been successful.

Student Name
Nandani Kotak

IV
ABSTRACT

Tic-tac-toe is GUI (Graphical User Interface) based project. Actually, tic-tac-toe is a


game which we are used to play. It 2 player game having cross and circle for players.
In the project second player is computer with whom you are going to play. Tic-tac-
toe is played on 3x3 board. In which when a player gets his sign(X or O) in a row or
in a column or in a diagonal then that player will win that round. Tic-tac-toe ( GUI )
is implemented in JavaFX. JavaFX is Java but through it you can implement gui
stage using java. The Main feature in my project is that it has 3x3 , 4x4 as well as
5x5 boards in it. When a player wins 3x3 it will be moved to 4x4 and then 5x5. But if
player will lose a match it will lose a life. It is providing max 6 life. You can play 6
time if you loose everytime.

V
Table of Contents
NO. Content name Page No.
1. Title page I
2. certificate II
3. Self-Declaration Form III
4. Acknowledgement IV
5. Abstract V
Chapter-1 Introduction 3
Chapter-2 Splash 4
Chapter-3 Level 5
Chapter-4 Conclusion 10
Future plans 11
Reference 12

1
List of Figures
Figure No. Figure Name Page No.

1.1 File structure 3

2.1 Splash 4

3.1 Ready 5

3.2 Round 1 6

3.3 X and O 6

3.4 You loose 7

3.5 Match Draw 7

3.6 You Won 8

3.7 Round 2 8

3.8 Round 3 9

3.9 Game over 9

2
Chapter-1:Introduction
• We have used game development technology. Language to implement
project is java. Reason to choose java is that, It works fast in almost all type
of devices. It uses oop concepts.
• Some OOP concepts like abstraction, inheritance, objects, classes are mainly
used to implement project.

• Tic-tac-toe is a game known to almost everyone.


• Tic-tac-toe
Everyone hasis played
a gameit known
at least to almost
once. So, to implement it
as project
everyone. Everyone has is havingit fun.
played at least once. So, to
• We have used classes to implement every object in a
implement it asproject.
projectWhich
is having
wasfun.
very useful when we want to access
• it.
We have used classes to implement
• Game was developed in two phases: 1.Splash
every object in2.Level
a project. Which was very useful when
we want to •access
Splash
it. is a starting phase in which title arrives.
•• Level iswas
Game a phase where game
developed is going
in two on.
phses:
1.Splash • Image in the left shows the structure of
projects. Also shows the images used in
2.Level
project.
•• There isisanother
Splash file
a starting named
phase config.title
in which It is used to access
some basic information like height and width of stage
arrives.
and image path in it.
•• Level is a phase
File named whereallgame
Main links otherisfile
going
as well as it defines
on. attributes for projects.

[fig:1.1-File structure in netbeans


with java files and used images]

3
Chapter-2: Splash
In introduction chapter we have seen how java is used in to make game. In this chapter
we are going to see splash is working.
Below figure is showing that how title will arrive. Title is provided animation. When we
press any key on keyboard or click anywhere in window then it will start next phase.

[FIG:2.1: Splash—Starting phase of project]

Splash is having some elements like background, tic, tac, toe, press any key image. These are
accessed from config file. Splash will arrange elements and animate them according to instruction.

4
Chapter-3: Level Phase
Level phase is a phase where actual game will start. As shown below ready will appear at
the start of level phase and immediately after Splash phase.

[FIG:3.1: Ready—window arrives immediately after splash]

In above figure red area shown in left part is Field area. Black Area in right part is
InfoPanel. Field area will have gaming related elements like board, strikes etc. InfoPanel consist
of some information like lives, title, round no. , score etc. When a person lose a round life will
decrease and 30 points are decreased. When a person wins a round then round no will increase by
1, score will increase by 100. When a player draw a match it will get 50 points. As round increase,
board will be changed.

The symbols in the blocks of 3x3 board are called Strikes. When a person click in
particular block Strike in that block will be changed into X. Then computer will take a turn and O
will arrive at some position in board according to provided logic.

5
[FIG:3.2: Round 1—Initial round at starting of game]

After playing when game reaches to the result state, at that time some result will appear on screen.
Which could be “You won” or “You Loose” or “Match draw”.

[FIG:3.3: X and O—After clicking in block strike changes to X and computer takes turn and
changes any strike in O]

6
[FIG:3.4: You loose—state when we lose a game life is lost and 30 points are decreased]

[FIG:3.5: Match draw—state when match is drawn and 50 points increased]

7
[FIG:3.6: You won—state when you win a game and 100 points are increased and round no
is increased]

After winning round 1, round 2 will start.

[FIG:3.7: Round 2—after winning round 1 round 2 appears on screen]

8
After winning round 2, round 3 will start.

[FIG:3.8: Round 3-- after winning round2 round 3 appears on screen]


When a player looses all lives, game over state appears.

[FIG:3.9: Game Over—state when you lose all


lives]
9
Chapter-4 :Conclusion
We have discussed all the things like how game works, it takes decision at the
end and shows content accordingly. It is easy to play and understand working. You don’t
require anything else other than, rules of game. So, it is user friendly. Project uses technologies
of game development as well as software development. Because it is written in java, it works
fast and accurate. Some animations are making it cool and stress reliever. After playing in it,
user will feel relax from his stress.

10
Future plans
According to the above mention figures and chapters, Game has to be updated
day by day because, nowadays user wants to see something new. Therefore not only the product
need updation but design also need to be updated. Moreover updation will make it faster and
more cool. May in upcoming future using some other technology game can be updated. We can
use networking to make it better and database to make it cool. It could be the trending game like
ludo nowadays.

11
Reference

• https://www.github.com
• https://www.stackoverflow.com
• https://www.quora.com/

12

You might also like