You are on page 1of 18

MAHARASHTRA STATE BOARD OF TECHNICAL

EDUCATION – MUMBAI
A
Micro-Project Report On
“Tic Tack Toe”

Submitted by,
Mohit Khandale [11]
Anurag Mhaske [29] Sahil Gaikwad [50]

Guided by,
Prof. P.M.Takate,
Lecturer,
Department of Information Technology
Academic Year
2022-23
MET’S INSTITUTE OF TECHNOLOGY - POLYTECHNIC
BHUJBAL KNOWLEDGE CITY, ADGAON, NASHIK
MET’s Institute of Technology, Polytechnic
Bhujbal Knowledge City,
Adgaon, Nashik-422 003
Tel.: ( 0253)2303515, 2303267, 2303268 Telefax : ( 0253 )2303305,
Toll-free: 1800 22 0234 Email:principal_iot@bkc.met.edu

CERTIFICATE
This is to Certify that this report,
“Tic Tack Toe”

Submitted by,
Mohit Khandale [11]
Anurag Mhaske [29] Sahil Gaikwad [50]

The students of Second year Information Technology Department


In 2022-23
As a part of project work as prescribed by
The Maharashtra State Board of Technical Education, Mumbai
And that I have guided them for the said work from time to time
And I found them satisfactorily progressive.
And that, the said work has been assessed by me and I am satisfied that the
same is up to the standard envisaged for the level of the course.

Prof . S.B.Patil Prof . P.M.Takate


Head of Department (Project Guide)
ACKNOWLEDGEMENTS

We take this opportunity to express our deepest sense of gratitude and sincere thanks
to those who have helped us in completing this task.
We express our sincere thanks to our Project Guide Prof. P.M.Takate , Information
Technology Department, who has given us excellent guidance, continuous Encouragement
for the completion of this work. His kind assistance and constant inspiration will always help
us in our future also.
We are very thankful to Principal. Dr. R.S. Narkhede, for encouraging us to
undertake this project and he has taken keen interest in making the project and report
absolutely flawless.
We are very thankful to Prof. S.B.Patil , for encouraging us to undertake this project
and he has taken keen interest in making the project and report absolutely flawless.
Annexure –I A

PART A - Plan
“Tic Tack Toe”
1.0 Brief Introduction

1. Our project name is Tic-Tac-Toe game. This game is very popular and is fairly simple by
itself. It is actually a two player game. In this game, there is a board with n x n squares. In
our game, it is 3 x 3 squares.
2. The goal of Tic-Tac-Toe is to be one of the players to get three same symbols in a row -
horizontally, vertically or diagonally - on a 3 x 3 grid.

2.0 Aim of the Micro-Project


This Micro-Project aims at :
1. To apply artificial intelligence in our program.
2. To check the combination whether any two symbols(X or O) are same for winning
or blocking .
3. To create scope for computer to win in the third move.

3.0 Action Plan


S. No. Details of activity Planned Planned Name of Responsible
Start date Finish Team Members
date
1 Discuss with the subject teacher regarding
the concept of “micro-project” which include 15/08/2022 23/08/2022 Mohit Khandale
in the I scheme.
2 Discuss with the subject teacher how to write
a diary and report of micro-project. 28/08/2022 06/09/2022 Sahil Gaikwad

3 Discuss with the subject teacher regarding


the micro-project topic. 19/09/2022 12/10/2022 Anurag Mhaske

4 Selection of Micro-project topic and form a 25/10/2022 15/11/2022


group. Mohit Khandale

5 Discuss with the subject teacher how to


search information of micro-project from 20/11/2022 25/11/2022 Anurag Mhaske
internet and reference books.
6 Project Report Preparation 28/11/2022 01/12/2022 Mohit Khandale
7 Project Report submission 03/12/2022 06/12/2022 Sahil Gaikwad
8 Presentation of Project 7/11/2022 10/12/2022 All members
4.0 Resources Required
S. No. Name of Resource/material Specifications Qty Remarks
1 Computer system Windows 10,11 - -
2 Internet Connection - - -

**************
Annexure –II A
PART B
“Tic Tack Toe”
1.0 Brief Introduction

1. Our project name is Tic-Tac-Toe game. This game is very popular and is fairly simple by
itself. It is actually a two player game. In this game, there is a board with n x n squares. In
our game, it is 3 x 3 squares.
2. The goal of Tic-Tac-Toe is to be one of the players to get three same symbols in a row -
horizontally, vertically or diagonally - on a 3 x 3 grid.

2.0 Aim of the Micro-Project


This Micro-Project aims at :
1. To apply artificial intelligence in our program.
2. To check the combination whether any two symbols(X or O) are same for winning
or blocking .
3. To create scope for computer to win in the third move.

3.0 Action Plan


S. No. Details of activity Planned Planned Name of Responsible
Start date Finish Team Members
date
9 Discuss with the subject teacher regarding
the concept of “micro-project” which include 15/08/2022 23/08/2022 Mohit Khandale
in the I scheme.
10 Discuss with the subject teacher how to write
a diary and report of micro-project. 28/08/2022 06/09/2022 Sahil Gaikwad

11 Discuss with the subject teacher regarding


the micro-project topic. 19/09/2022 12/10/2022 Anurag Mhaske

12 Selection of Micro-project topic and form a 25/10/2022 15/11/2022


group. Mohit Khandale

13 Discuss with the subject teacher how to


search information of micro-project from 20/11/2022 25/11/2022 Anurag Mhaske
internet and reference books.
14 Project Report Preparation 28/11/2022 01/12/2022 Mohit Khandale
15 Project Report submission 03/12/2022 06/12/2022 Sahil Gaikwad
16 Presentation of Project 7/11/2022 10/12/2022 All members

4.0 Resources Required


S. No. Name of Resource/material Specifications Qty Remarks
3 Computer system Windows 10,11 - -
4 Internet Connection - - -

**************
Program Code:
#include<iostream.h>
#include<conio.h>

char square[10] = {'o','1','2','3','4','5','6','7','8','9'};

int checkwin();
void board();

int main()
{
int player = 1,i,choice;
clrscr();

char mark;
do
{
board();
player=(player%2)?1:2;

cout << "Player " << player << ", enter a number: ";
cin >> choice;

mark=(player == 1) ? 'X' : 'O';

if (choice == 1 && square[1] == '1')

square[1] = mark;
else if (choice == 2 && square[2] == '2')

square[2] = mark;
else if (choice == 3 && square[3] == '3')

square[3] = mark;
else if (choice == 4 && square[4] == '4')

square[4] = mark;
else if (choice == 5 && square[5] == '5')

square[5] = mark;
else if (choice == 6 && square[6] == '6')

square[6] = mark;
else if (choice == 7 && square[7] == '7')

square[7] = mark;
else if (choice == 8 && square[8] == '8')
square[8] = mark;
else if (choice == 9 && square[9] == '9')

square[9] = mark;
else
{
cout<<"Invalid move ";

player--;
cin.ignore();
cin.get();
}
i=checkwin();

player++;
}while(i==-1);
board();
if(i==1)

cout<<"==>\aPlayer "<<--player<<" win ";


else
cout<<"==>\aGame draw";

cin.ignore();
cin.get();
return 0;
getch();
}

/*********************************************
FUNCTION TO RETURN GAME STATUS
1 FOR GAME IS OVER WITH RESULT
-1 FOR GAME IS IN PROGRESS
O GAME IS OVER AND NO RESULT
**********************************************/

int checkwin()
{
if (square[1] == square[2] && square[2] == square[3])

return 1;
else if (square[4] == square[5] && square[5] == square[6])

return 1;
else if (square[7] == square[8] && square[8] == square[9])

return 1;
else if (square[1] == square[4] && square[4] == square[7])

return 1;
else if (square[2] == square[5] && square[5] == square[8])

return 1;
else if (square[3] == square[6] && square[6] == square[9])

return 1;
else if (square[1] == square[5] && square[5] == square[9])

return 1;
else if (square[3] == square[5] && square[5] == square[7])

return 1;
else if (square[1] != '1' && square[2] != '2' && square[3] != '3'
&& square[4] != '4' && square[5] != '5' && square[6] != '6'
&& square[7] != '7' && square[8] != '8' && square[9] != '9')

return 0;
else
return -1;
}

/*******************************************************************
FUNCTION TO DRAW BOARD OF TIC TAC TOE WITH PLAYERS MARK
********************************************************************/

void board()
{
// system("cls");
cout << "\n\n\tTic Tac Toe\n\n";

cout << "Player 1 (X) - Player 2 (O)" << endl << endl;
cout << endl;

cout << " | | " << endl;


cout << " " << square[1] << " | " << square[2] << " | " << square[3] << endl;

cout << "_____|_____|_____" << endl;


cout << " | | " << endl;

cout << " " << square[4] << " | " << square[5] << " | " << square[6] << endl;

cout << "_____|_____|_____" << endl;


cout << " | | " << endl;

cout << " " << square[7] << " | " << square[8] << " | " << square[9] << endl;

cout << " | | " << endl << endl;


}
/*******************************************************************
END OF PROJECT
********************************************************************/
Output:
Teacher Evaluation Sheet

Name of Student: Khandale Mohit Deepak Enrollment No. : 2107760266


Name of Department: Information Technology Semester: Third
Course Title: Object Oriented Language (OOP) Subject Code: 22316

Title of the Micro-Project : “Tic-Tac-Toe”

Course Outcomes Achieved:


1) Learned about programming language.
2) Reduce the ambiguity of intangible topics.
3) Computer knowledge is developed.

Evaluation as per Suggested Rubric for Assessment of Micro Project

Sr. No. Characteristic to be assessed Poor Average Good Excellent


( Marks 1 - ( Marks 4 - ( Marks 6 - ( Marks
3) 5) 8) 9- 10 )
1 Relevance to the course
2 Literature Survey / Information
Collection
3 Project Proposal
4 Completion of the Target as per
project proposal
5 Analysis of Data and
representation
6 Quality of Prototype/Model

7 Report Preparation
8 Presentation
9 Defense
Micro-Project Evaluation Sheet

Process Assessment Product Assessment Total


Part A - Project Methodology Part B - Project individual Marks
Project (2 marks) Report/Working Presentation/Viva
Proposal Model (4 marks) 10
(2 marks) (2 marks)

Note:
Every course teacher is expected to assign marks for group evolution in first 3
columns & individual evaluation in 4TH columns for each group of students as
per rubrics.

Comments/Suggestions about team work/leadership/inter-personal communication (if


any)
……………………………………………………………………………………………

……………………………………………………………………………………………..
……………………………………………………………………………………………..
……………………………………………………………………………………………..

Any Other Comment:


……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………

Name and designation of the Faculty Member: Prof. P.M.Takate and Lecturer

Signature………………………………………………………………………………………
…...
Teacher Evaluation Sheet

Name of Student: Mhaske Anurag Sandeep Enrollment No. : 2107760287


Name of Department: Information Technology Semester: Third
Course Title: Object Oriented Language (OOP) Subject Code: 22316

Title of the Micro-Project : “Tic-Tac-Toe”

Course Outcomes Achieved:


1) Learned about programming language.
2) Reduce the ambiguity of intangible topics.
3) Computer knowledge is developed.

Evaluation as per Suggested Rubric for Assessment of Micro Project

Sr. No. Characteristic to be assessed Poor Average Good Excellent


( Marks 1 - ( Marks 4 - ( Marks 6 - ( Marks
3) 5) 8) 9- 10 )
1 Relevance to the course
2 Literature Survey / Information
Collection
3 Project Proposal
4 Completion of the Target as per
project proposal
5 Analysis of Data and
representation
6 Quality of Prototype/Model

7 Report Preparation
8 Presentation
9 Defense
Micro-Project Evaluation Sheet

Process Assessment Product Assessment Total


Part A - Project Methodology Part B - Project individual Marks
Project (2 marks) Report/Working Presentation/Viva
Proposal Model (4 marks) 10
(2 marks) (2 marks)

Note:
Every course teacher is expected to assign marks for group evolution in first 3
columns & individual evaluation in 4TH columns for each group of students as
per rubrics.

Comments/Suggestions about team work/leadership/inter-personal communication (if


any)
……………………………………………………………………………………………

……………………………………………………………………………………………..
……………………………………………………………………………………………..
……………………………………………………………………………………………..

Any Other Comment:


……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………

Name and designation of the Faculty Member: Prof. P.M.Takate and Lecturer

Signature………………………………………………………………………………………
…...
Teacher Evaluation Sheet

Name of Student: Gaikwad Sahil Bhaskar Enrollment No. : 2107760317


Name of Department: Information Technology Semester: Third
Course Title: Object Oriented Language (OOP) Subject Code: 22316

Title of the Micro-Project : “Tic-Tac-Toe”

Course Outcomes Achieved:


1) Learned about programming language.
2) Reduce the ambiguity of intangible topics.
3) Computer knowledge is developed.

Evaluation as per Suggested Rubric for Assessment of Micro Project

Sr. No. Characteristic to be assessed Poor Average Good Excellent


( Marks 1 - ( Marks 4 - ( Marks 6 - ( Marks
3) 5) 8) 9- 10 )
1 Relevance to the course
2 Literature Survey / Information
Collection
3 Project Proposal
4 Completion of the Target as per
project proposal
5 Analysis of Data and
representation
6 Quality of Prototype/Model

7 Report Preparation
8 Presentation
9 Defense
Micro-Project Evaluation Sheet

Process Assessment Product Assessment Total


Part A - Project Methodology Part B - Project individual Marks
Project (2 marks) Report/Working Presentation/Viva
Proposal Model (4 marks) 10
(2 marks) (2 marks)

Note:
Every course teacher is expected to assign marks for group evolution in first 3
columns & individual evaluation in 4TH columns for each group of students as
per rubrics.

Comments/Suggestions about team work/leadership/inter-personal communication (if


any)
……………………………………………………………………………………………

……………………………………………………………………………………………..
……………………………………………………………………………………………..
……………………………………………………………………………………………..

Any Other Comment:


……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………
……………………………………………………………………………………………

Name and designation of the Faculty Member: Prof. P.M.Takate and Lecturer

Signature………………………………………………………………………………………
…...

You might also like