Sie sind auf Seite 1von 15

Govt. Polytechnic College, Betul (M.

P)
Presentation on Project
Tic-Tac-Toe
Guided By:- Submitted By:-
Mr. Ritesh Pandey Nikita Soni
Mr. Satish Chadokar Payal Kamde
Rimjhim Rathore
Shaheda Perveen
CONTENTS
• INTRODUCTION TO JAVA
• INTRODUCTION TO GUI
• NETBEANS
• INTRODUCTION TO TIC-TAC-TOE
• OBJECTIVES
• THEORY OF GAME
• FIRST MOVE
• SECEND MOVE
• THIRD MOVE & FOUTH MOVE
• USER
• COMPUTER
INTRODUCTION TO JAVA

Java is a general-purpose computer programming language that


is concurrent, class-based, object-oriented, and specifically designed to have as
few implementation dependencies as possible. It is intended to let application
developers "write once, run anywhere" (WORA), meaning that compiled Java
code can run on all platforms that support Java without the need for
recompilation. Java applications are typically compiled to bytecode that can run
on any Java virtual machine (JVM) regardless of computer architecture. Java was
originally developed by James Gosling at Sun Microsystems (which has since
been acquired by Oracle Corporation) and released in 1995 as a core component
of Sun Microsystems java platform.
INTRODUCTION TO GUI

A Graphical User Interface (GUI) presents a user-friendly


mechanism for interacting with an application. A GUI gives an
application a distinctive “look and feel”. GUIs are built from
GUI components. These are sometimes called controls or
widgets – short for window gadgets. A GUI Component is an
object with which the user interacts via the mouse, the keyboard
or another form of input, such as voice recognition. Java’s so
called sowing GUI component form the javax. swing package.
NETBEANS

• NetBeans is a software development platform Witten in java.

• The NetBeans platform allows application to be developed


form is a set of modular software components called
modular.
INTRODUCTION TO TIC-TAC-TOE

Tic-tac-toe (or Naught and crosses, Xs and 0's) is a pencil-and-paper game for two players, X
and 0, who take turns marking the spaces in a 3*3 grid. The player who succeeds in placing
three respective marks in a horizontal, vertical, or diagonal row wins the game.
This program is a game program, Tic- Tac- Toe. Most of us have played this game in school
days, we have make a java program on it.
This game uses board to control players in each turn players enter a number and choose a
move.
OBJECTIVES
Our project name is Tic-Tac-Toe game. This game is very popular and
isfairly simple by itself. It is 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 goal of Tic-Tac-Toe is to be one of the players to get three


samesymbols in a row - horizontally, vertically or diagonally - on a 3 x
3 grid.
THEORY OF GAME

A player can choose between two 1 2 3

symbols with his opponent, usual games


use “X” and “O”. If first player choose “X”
then the second player have to play with
4 5 6
“O” and vice versa.
A player marks any of the 3x3 squares
with his symbol (may be “X” or “O”)and
his aim is to create a straight line 7 8 9
horizontally or vertically or diagonally
with two intensions:
FIRST MOVE

a) If the center is free, get the


center.
b) Otherwise, get any of the
corners.
SECEND MOVE
a) Block user from winning.
b) Option for winning by applying the
following logic:

If the center is occupied by user, get


any of the corners.
THIRD MOVE & FOUTH MOVE

a) Option for winning.


b) Block user from winning.
c) Randomly play a move
USER
COMPUTER
CONCLUSION

We make Tic-Tac-Toe Game Successfully With the help of core-


java language and it is very entertaining. It is a console based
game. It is a very interesting game and if we want to win this
game we have to use logic that in how many ways we can win
this game.

Das könnte Ihnen auch gefallen