Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

Academic Year: 2022 -2023

Report
On
Micro Project
Title: TIC TAC TOE GAME
PROGRAM CODE : CO3I-B
COURSE NAME : Object Oriented Programming
COURSE CODE : OOP (22316)

Submitted by
Group-10
Submitted to
Mrs.Pratibha Pednekar
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION

Certificate

This is to certify that Mr. / Ms. Kapil , Bhumika , Dinky Roll No: 28,29,30 of Third Semester
Diploma in Computer Engineering of Vivekanand Education Society’s Polytechnic (Code
No 0004) has completed the Micro-Project work satisfactory in Object Oriented
Programming (22316) for the academic year 2022 - 2023as prescribed in the MSBTE
curriculum.

Place: Chembur, Mumbai - 71 Enrollment No.: 2100040242 - 45


Date: Exam Seat No: …………………………..

Subject Teacher Head of the Department Principal


(Mrs.Pratibha Pednekar)

Seal Of
Institution
Annexure-I
Micro-Project Proposal
Title: Tic Tac Toe Game

1.0 Aim/Benefits of the Micro-Project: -

To write a C++ program to develop a tic tac toe game


2.0 Course Outcomes: -

CO1: Develop C++ programs to solve problems using procedure-oriented approach

3.0 Proposed Methodology: -


 Discussion about topic with guide and among group members
 Program survey
 Submission of project proposal
 Collection of information
 Analysis of data
 Discussing about concepts to be used and taken into consideration
 Writing Algorithm
 Coding
 Compilation of the code
 Representation
 Editing and revising the content
 Report preparation

4.0 Action Plan


Sr. Planned Planned Finish Name of Team
No Details of activity Start date date Members

1. Formation of group and selection of topic All members


2. Project definition and design structure All members
3. Design procedure (Algorithm) All members
4. Coding All members
5. Output All members
6. Submission of Final Report All members
Demonstration of project and final
7. All members
submission
5.0 Resources Required

Sr.
Name of Resource/material Specifications Quantity Remarks
No

1. Computer System i5 10-10300H 3.0GHz, 16GB 1


RAM, 1TB SSD

2. Text Editor Visual Studio Code -

3. Operating System Windows 11 -

4. Internet 100 Mbps -

Names of Team Members with Roll Nos

Sr. Roll. Name of Team Members Enrollment No. Seat No.


No.
No.

1. 28 Kapil Kanjani 2100040242

2. 29 Bhumika Bhatia 2100040243

3. 30 Dinky Gurbani 2100040245

Teacher Signature
(Mrs.Pratibha Pednekar)

*************
Annexure-II
Micro-Project Report

Title: Sudoku Puzzle Solver Using Backtracking

1.0 Rationale:

An Object-Oriented programming is a way of programming which enables


programmers to think like they are working with real life entities (A thing with distinct
and independent existence) or objects. In real life people have knowledge and can-do
various works. In OOP objects have field to store knowledge/state/data and can-do
various works/methods. An object can be defined as a data field that has unique
attributes a behavior. The first step in OOP is to identify all of the objects a programmer
wants to manipulate and how they relate to each other, and exercise often known as
data modelling.

2.0 Aim/Benefits of the Micro-Project: -


To write a C++ program to develop a tic tac toe game.

3.0 Course Outcomes: -


CO1: Develop C++ programs to solve problems using procedure oriented approach

4.0 Literature Review: -

Tic-tac-toe is played on a three-by-three grid by two players, who alternately place


the marks X and O in one of the nine spaces in the grid. The following
representation represents the dashboard of tic tac toe game :-

The winning possibilities are:-


 Vertically
 Horizontally
 Diagonally

The game can also be draw where player1 and player2 both did not won the game but all
the boxes in dashboard are filled.
The following picture is just an example of draw game there are many more possibilities of
a draw game:-

5.0 Action Methodology Followed: -


 Discussed about topic with guide and among group members
 Prepared project proposal
 Submitted project proposal
 Collected the required information
 Analyzed the data
 Discussed about concepts to be used
 Wrote Algorithm
 Implemented the algorithm into code
 Compiled the code
 Prepared report
 Final submission
PROGRAM CODE:-
#include<iostream>
#include<conio.h>
#include<string.h>
using namespace std;
char board [3][3]={{'1','2','3'},{'4','5','6'},{'7','8','9'}};
char turn='X';
int row,column;
bool draw=false;
char ply1[30],ply2[30];
void dashboard()
{
system("cls");
cout<<"\t\t WELCOME"<<endl;
cout<<"\n\t\t-------------TIC TAC TOE GAME---------------";
cout<<"\n\n\t\t-------------PRESENTED BY GROUP 10----------"<<endl;
cout<<"\n\n\t\tPlayer1[X]-"<<ply1;
cout<<"\n\t\tPlayer2[O]-"<<ply2;
cout<<"\n\n";
cout<<"\t\t | | "<<endl;
cout<<"\t\t "<<board[0][0]<<" | "<<board[0][1]<<" | "<<board[0][2]<<"
"<<endl;
cout<<"\t\t______|______|______ "<<endl;
cout<<"\t\t | | "<<endl;
cout<<"\t\t "<<board[1][0]<<" | "<<board[1][1]<<" | "<<board[1][2]<<"
"<<endl;
cout<<"\t\t______|______|______ "<<endl;
cout<<"\t\t | | "<<endl;
cout<<"\t\t " <<board[2][0]<<" | "<<board[2][1]<<" | "<<board[2][2]<<"
"<<endl;
cout<<"\t\t | | "<<endl;

}
void playerturn()
{
int ch;
if(turn=='X')
cout<<"\n\t\t"<<ply1<<"'s turn:-";
if(turn=='O')
cout<<"\n\n\t\t"<<ply2<<"'s turn:-";
cin>>ch;
switch(ch)
{
case 1:
row=0;column=0;
break;
case 2:
row=0;column=1;
break;
case 3:
row=0;column=2;
break;
case 4:
row=1;column=0;
break;
case 5:
row=1;column=1;
break;
case 6:
row=1;column=2;
break;
case 7:
row=2;column=0;
break;
case 8:
row=2;column=1;
break;
case 9:
row=2;column=2;
break;
default:
cout<<"\n\t\tInvalid choice try again!";
getch();
}
if(ch<=9)
{
dashboard();
if(turn=='X'&&board[row][column]!='X'&&board[row][column]!='O')
{
board[row][column]='X';
turn='O';
}
else if(turn=='O'&&board[row][column]!='X'&&board[row][column]!='O')
{
board[row][column]='O';
turn='X';
}
else
{
cout<<"\n\t\t Box is already filled\n\t\t Please try again!";
getch();
playerturn();
}
dashboard();
}
}
bool gameover()
{
int i,j;
for(i=0;i<3;i++)
{
if(board[i][0]==board[i][1] && board[i][0]==board[i][2] ||
board[0][i]==board[1][i] && board[0][i]==board[2][i])
return false;
}
if(board[0][0]==board[1][1] && board[0][0]==board[2][2] ||
board[0][2]==board[1][1] && board[0][2]==board[2][0])
return false;
for(i=0;i<3;i++){
for(j=0;j<3;j++){
if(board[i][j]!='X' && board[i][j]!='O')
return true;
}
}
draw=true;
return false;
}
int main()
{
system("cls");
cout<<"\t\t WELCOME"<<endl;
cout<<"\n\t\t-------------TIC TAC TOE GAME---------------";
cout<<"\n\n\t\t-------------PRESENTED BY GROUP 10----------"<<endl;
cout<<"\n\n\t\tPlayer1[X]"<<ply1;
cout<<"\n\t\tPlayer2[O]"<<ply2<<endl;
cout<<"\n\t\tEnter name of player1";
gets(ply1);
cout<<"\n\t\tEnter name of player2";
gets(ply2);
while(gameover())
{
dashboard();
playerturn();
gameover();
}
if(turn=='X'&&draw==false)
cout<<"\n\n\t\t--------Congragulations"<<ply2 <<" won the game------------";
else if(turn=='O'&&draw==false)
{
cout<<"\n\n\t\t--------Congragulations"<<ply1 <<" won the game------------";
}
else
cout<<"\n\n\t\t------------GAME DRAW----------------";
return 0;
}

6.0 Actual Resources Used: -

Sr. Name of Resource/material Specifications Quantity Remarks

No.

1. Computer System i5 10-10300H 3.0GHz, 16GB 1


RAM, 1TB SSD

2. Text Editor Visual Studio Code -

3. Operating System Windows 11 -


7.0 Output of the Micro-Project: -
8.0 Skill Developed / Learning Outcomes: -
The following skills were developed while performing and developing this micro-project.
1. Designing: Designing of micro project with minimum required resources and at low cost.
2. Teamwork: Learned to work in a team and boost individual confidence.
3. Time Management: Timely completion of micro project as scheduled.
4. Data Analysis: Interpretation of data
5. Problem-solving: Develop good problem-solving habits.
6. Technical writing: Preparing a report of the proposed plan and final report.

9.0 Applications of the Micro-Project: -


 It can be utilized in man-made brain power
 It improves your memory and rationale, work next to each other when you are
playing tic tac toe.
 It invigorates your brain.
 It figures out how to do things rapidly.

Teacher Signature
(Mrs.Pratbha Pednekar)

*************
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)

Sr. Characteristic to Poor Average Good Excellent


be assessed
No. (Marks 1 - 3) (Marks 4 - 5) (Marks 6 - 8) (Marks 9- 10)
1 Relevance to the Related to very few Related to some LOs Addressed at-least Addressed more than
course
LOs one CO one CO

Literature Review Not more than two At-least 5 relevant At –least 7 relevant About 10 relevant
sources (primary and sources, at least 2 latest sources, latest sources, latest
2 /Information secondary), very old
collection
reference

Completion of the Completed 50 to 60% Completed 60 to 80% Completed more than


Target as per project 80%
3 proposal Completed less than 50%

Enough data collected by


sufficient and appropriate
Sufficient and appropriate Sufficient and appropriate sample size. Proper
sample, enough data sample, enough data inferences by organizing
Sample Size small, data generated but not generated which is and presenting data
neither organized nor organized and not organized and presented
Analysis of Data and through tables,
presented well presented well. No or poor well but poor inferences
representation
4 inferences are drawn are drawn charts and graphs.

Just Well, Well,


assembled/fabricated and assembled/fabricated assembled/fabricated
parts are not functioning with proper functioning with proper functioning
well. Not in proper shape, parts. In proper shape, parts. In proper shape,
Incomplete
dimensions beyond within tolerance within tolerance
fabrication/assembly.
Quality of tolerance limit. dimensions and good dimensions and good
Prototype/Model Appearance/ finish is finish/appearance. But no finish/appearance.
5 shabby. creativity in design and
use of material Creativity in design and
use of material

Very short, poor-quality Nearly sufficient and Detailed, correct and clear Very detailed, correct,
sketches, Details about correct details about description of methods, clear description of
methods, material, methods, material, materials, precautions methods, materials,
precaution and precautions and and Conclusions. precautions and
conclusions omitted, some conclusion. But clarity is Sufficient Graphic conclusions. Enough
6 Report Preparation details are wrong not there in a Description. tables, charts and
presentation. But not sketches
enough graphic
description.

Major information is not Includes major Includes major Well organized, includes
included, information is information but not well information and well major information, well
7 Presentation not well organized. organized and not organized but not presented
presented well presented well

Could not reply to a Replied to a considerable Replied properly to a Replied most of the
considerable number of number of questions but considerable number of questions properly
8 Viva questions. not very properly questions.
Annexure-IV
Micro-Project Evaluation Sheet
Name of Student: Kapil Kanjani , Bhumika Bhatia, Dinky Gurbani Enrollment No: 2100040242 - 45

Name of Program: Computer Engineering Semester: Third

Course Title: Object Oriented Programming Course Code: 22316

Title of the Micro-project: Tic Tac Toe game

Roll No. : 28,29,30

Course Outcomes Achieved:

 Develop C++ programs to solve problems using procedure oriented approach

Sr. Characteristic to be Poor (Marks Average Good (Marks Excellent Sub


assessed 1-3) (Marks 4-5) 6-8) (Marks 9- 10) Total
No.

A. Process and Product Assessment (6 Marks)

1 Relevance to the course

2 Literature Survey /

Information Collection

3 Completion of the Target as


per project proposal

4 Analysis of Data and


representation

5 Quality of Prototype/Model

6 Report Preparation

B. Individual Presentation/ Viva (4 Marks)

7 Presentation

8 Viva
MICROPROJECT EVALUATION SHEET

Roll no. Name (A) Process (B) Individual Total


of and Presentation marks
student Product /viva (4 marks) (10 marks)
Assessment (6
marks)

28 Kapil Kanjani

29 Bhumika
Bhatia
30 Dinky
Gurbani

Comments/Suggestions about teamwork/leadership/interpersonal communication (if any)


............................................................................................................................
............................................................................................................................
............................................................................................................................
Name and designation of the Faculty Member: Mrs. Pratibha Pednekar, Lecturer

Dated Signature: ...........................................

*************

You might also like