Professional Documents
Culture Documents
Tic Tac Toe MP
Tic Tac Toe MP
Report
On
Micro Project
Submitted by
Roll No. 09 Name:-Vaishnavi Mahesh Patil
Roll No. 48 Name:-Aditi Kiran Ghugarkar
Roll No. 51 Name:-Dnyaneshwari Umesh Navathar
Submitted to
Ms. Borhade S.S.
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION
Certificate
in Subject Advance Java Programming (22517) for the academic year 2021 to 2022 as
Seal of
Institutio
n
Annexure – I
Micro-Project Proposal
Title of Micro-Project
Develop Tic Tac Toe game using Advanced Java Programming Language.
Teacher Signature
(Ms.S.S.Borhade)
Annexure – II
Micro-Project Report
Title of Micro-Project
1.0 Rationale
This project is all about how to create the Tic Tac Toe game in advanced java programing.
We have applied concept of advanced java for creating tic tac toe game. In this game there
are module by which we can play the game we can play with computer and we can play
with friends.
Develop Tic Tac Toe game using Advanced Java Programming Language.
An early variant of Tic Tac Toe was played in the roman empire around the first century
BC.Tic tac toe became the first known vedio game ,OXO for the EDSAC computer. Tic tac
toe was also used by MIT students to demonstrate the computational power of tinkertoy
elements.The game is developed for full time entertainment and enthusiasms.It teaches
the gamer to be altert at every situation he/she face.
5.0 Actual Methodology Followed
Program
import java.awt.GridLayout;
import
java.awt.ev
ent.ActionE
vent;
import
java.awt.ev
ent.ActionLi
stener;
import
javax.swing.
*;
public TicTacToe()
{
setLayout(new
GridLayout(3,3));
initializebuttons();
}
// when a button is clicked, it generates an ActionEvent. Thus, each button needs an ActionListener. When
it is clicked, it goes to thislistener class that I have created and goes to the actionPerformed method. There
(and in this class), we decide what we want to do. private class buttonListener implements
ActionListener
{
public void actionPerformed(ActionEvent e)
{
JButton buttonClicked = (JButton)e.getSource(); //get the particular button that was clicked
if(alternate%2 == 0)
buttonClicked.setTex
t("X");
else
buttonClicked.setText("O"
buttonClicked.setTex
t("X");
else
buttonClicked.setText("O"
if(checkForWin() == true)
{
JOptionPane.showConfirmDialog(null, "Game
Over.");resetButtons();
}
alternate++;
return true;
else if ( checkAdjacent(6,7) && checkAdjacent(7,8))
return true;
return true;
else if ( checkAdjacent(1,4) && checkAdjacent(4,7))
return true;
else if ( checkAdjacent(2,5) && checkAdjacent(5,8))
return true;
returntrue;
else
return false;
}
• Easy to use
• It teaches to gamer to be alert
Teacher Signature
(Ms. Borhade S.S)
Annexure – III
Suggested Rubric for Assessment of Micro-Project
(The marks may be allowed to the characteristics of the Micro Project by considering the suggested rubrics)
6 Report Preparation
7 Presentation
8 Viva
(A) (B)
Total Marks
Process and Product Individual Presentation/Viva
10
Assessment (6 marks) (4 marks)