Rohan PPR
Rohan PPR
1
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI
CERTIFICATE
2
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI
CERTIFICATE
curriculum.
3
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI
CERTIFICATE
(EAST) Shahapur 421601 has completed the Micro Project satisfactorily in the
subject PPR (22478) in the academic year 2023-2024 prescribed in the
curriculum.
4
INDEX
Sr.
Title name Page No.
No
1. Introduction 5
Aim of the
2. Micro-Project 5
3. Action Plan 6
Resources
4. Require 6
5. Algorithm 7
6. Code 8
7. Output 9
8. Conclusion 10
9. References 11
5
PART-A
TIC-TAC TOE GAME
1.0 Brief Introduction
Object oriented programming – As the name suggests uses objects in
programming. Object oriented programming aims to implement real
world entities like inheritance, hiding, polymorphism etc. in
programming. The main aim of OOP is to bind together the data and the
functions that operates on them so that no other part of code can access
this data except that function. Object-oriented programming (OOP) is
a programming paradigm based on the concept of "objects", which may
contain data, in the form of fields, often known as attributes; and code,
in the form of procedures, often known as methods. A feature of objects
is that an object's procedures can access and often modify the data fields
of the object with which they are associated (objects have a notion of
"this" or "self"). In OOP, computer programs are designed by making
them out of objects that interact with one another. There is significant
diversity of OOP languages, but the most popular ones are class-based,
meaning that objects are instances of classes, which typically also
determine their type.
6
3.0Action Plan
Name of
Sr. Planned Planned
Details of activity Responsible Team
No. Start date Finish date
Members
ROHAN
1 Project Survey 06-30-2018 07-07-2018
ROHAN
2 Gathering Information 07-21-2018 07-28-2018
SANSKRUTI
3 Executed 08-04-2018 08-04-2018
KHUSHAL
4 Create Report 08-11-2018 08-18-2018
Sr.
Name of Resource / Material Specification Quantity Remark
No.
7
PART B
Tic Tac Toe Game Project
1.0 Brief Description
This python program on TIC Tic-Tac Game is a simple text base game. This
program is without graphics to focus on logic /algorithm used in game. Two
players can play this game.
8
6.0 Outputs of the Micro-Projects
ALGORITHM
Algorithm Name : TIC-TAC TOE GAME
STEP 1 :- START
STEP 2 :- Initialize int player 1,i,choice char mark
ELSE
Till 9;
ELSE
PRINT - “Invalid
move” player--
icheckwin()
player++
STEP 6:- WHILE(i is equal to -1)
board( )
IF(i is equal to1)
PRINT –“ Win”
ELSE
print(row1)
print(row2)
print(row3)
# Check columns
for i in range(3):
if board[i] == board[i+3] ==
board[i+6] and board[i] != ' ':
return board[i]
# Check diagonals
if board[0] == board[4] == board[8]
and board[0] != ' ':
return board[0]
if board[2] == board[4] == board[6]
and board[2] != ' ':
return board[2]
# No winner yet
return False
11
# Function to play the game
def play_game():
player = 'X'
while True:
draw_board()
if check_winner():
draw_board()
if check_winner() == 'T':
print('It\'s a tie!')
else:
print('Player {}
wins!'.format(check_winner()))
break
get_move(player)
if player == 'X':
player = 'O'
else:
player = 'X'
12
13
CONCLUSION
The provided Store Management System offers a basic framework for product
management. Its strengths lie in its simplicity, user-friendly interface, and
structured data handling. However, limitations like scalability issues, lack of
data persistence, and absence of advanced features hinder its suitability for
real-world applications. To enhance its functionality, one could implement
data validation, user authentication, and GUI integration. Additionally,
incorporating file I/O for data storage would enable persistence between
program runs. With these enhancements, the system could evolve into a more
robust and practical solution for managing products in a store environment.
From this project we learned about functions, arrays, loops and conditional
statements. We learned to implement various C++ concepts.
14
REFERENCES
https://github.com/topics/tic-tac-toe-game
https://www.coursera.org/projects/introduction-to-cpp-programming...
15
7.0 Skill Developed / learning out of this Micro-Project
• Basic knowledge: Apply knowledge of basic mathematics,
science and basic engineering to solve the broad-based computer
engineering problems.
• Ethics: Apply ethical principles for commitment to professional
ethics, responsibilities and norms of the practice also in the field
of computer engineering.
• The engineer and society: Assess societal, health, safety, legal
and cultural issues and the consequent responsibilities relevant to
practice in field of computer engineering.
• Communication: Communication effectively in oral and written
form.
• Life-long learning: Engage in independent and life-long learning
activities in the context of technological changes also in the
computer engineering and allied industry.
16
8. Advantage and Disadvantage
Tic-Tac-Toe: advantages:
Playing Tic-Tac-Toe may seem like a game of chance at first, but after playing a
few rounds, players usually notice that there’s a certain strategy and pattern
of movements that can end up in a win. Because of this, it teaches players
(both young and old) to start thinking strategically, which can be highly
beneficial in other areas of life too.
Both kids and adults can benefit from learning how to be graceful when
winning and losing. This is called good sportsmanship. Players of Tic-Tac-Toe
must be able to handle themselves whether they win or lose. It’s a great lesson
to learn from the game.
17
Tic-Tac-Toe: Disadvantages:
1. It can get boring knowing that you are going to win every single time.
If you are looking for a game to while away a few hours of the afternoon or
evening, Tic-Tac-Toe might not be it. The game is quick and easy, which means
that it usually takes less than a minute for one of the players to win.
If you want to play Tic-Tac-Toe, you need some paper and a pencil or pen. If you
don’t have these available, you aren’t going to be able to play. This can be
rather inconvenient. It’s even more inconvenient or frustrating if you have the
paper but no pen!
Not everyone likes change. Over the years, Tic-Tac-Toe has changed, and this is
not something that is appreciated by everyone. Those who enjoy the original
version of Tic-Tac-Toe may feel that the new variations have ruined it.
8. The game can be addictive and can lead to wasting a lot of time.
We all know that certain games can become addictive. Everyone is different.
Some people get addicted to video games, while others get addicted to paper
and pencil games, like Tic-Tac-Toe.
18