Python Microproject Final
Python Microproject Final
Python Microproject Final
Academic Year
2023-24
Submitted by:-
Certificate
Software Requirements
The software used for the development of the project is:
● Action Plan:
● Resources Required:
Name of Resource Specification Qty. Remarks
59 Darshan S. Navlakha
60 Atharv V. Rane
69 Kamesh S. Nemade
71 Vishal S. Pasarate
Annexure – II
theBoard = {'1': ' ' , '2': ' ' , '3': ' ' ,
'4': ' ' , '5': ' ' , '6': ' ' ,
'7': ' ' , '8': ' ' , '9': ' ' }
board_keys = []
def printBoard(board):
print("\n")
print(' '+board['1'] + ' | ' + board['2'] + ' | ' + board['3'])
print(' ---+---+---')
print(' '+board['4'] + ' | ' + board['5'] + ' | ' + board['6'])
print(' ---+---+---')
print(' '+board['7'] + ' | ' + board['8'] + ' | ' + board['9'])
print("\n")
# Now we'll write the main function which has all the gameplay functionality.
def game():
turn = 'X'
count = 0
for i in range(10):
printBoard(theBoard)
move=input("It's your turn," + turn + ". Move to which place? ")
# Now we will check if player X or O has won,for every move after 5 moves.
if count >= 5:
if theBoard['1'] == theBoard['2'] == theBoard['3'] != ' ': # across the top
printBoard(theBoard)
print("\nGAME OVER.\n\n")
print(" ****** CONGRATULATIONS! " +turn + " YOU WON THE GAME
******\n\n")
break
# Check other winning conditions...
The resources used during the completion of project are mentioned in the below
We learnt,
1. To demonstrate the use of Operators.
2. To perform operations on data structures in Python.
3. To develop functions for given problems.
4. Efficient communication skills.
5. Working as a team member for developing c program.
6. Developing leadership qualities.
1. This project can be used as an interesting game for children to pass their free time.
2. The project can be also used to understand.
3. The project can be used in learning.