Computer Project
Computer Project
Gaming Python
Aryan. M
Adviath.A
11
ST.THOMAS ENGLISH MEDIUM SCHOOL, MYSURU
(Affiliated to CBSE, New Delhi, Affiliation No. 830085, School Code-45067
CERTIFICATE
This is to certify that the project titled Python Code is a bonafide work carried out by Aryan.M and
Adviath.A of Standard XI of St. Thomas English Medium School, Mysuru, submitted in partial fulfilment
of the requirements for the AISSCE certificate from C.B.S.E under our guidance during the year 2023-2024.
Principal Teacher–In–Charge
Submitted for the AISSCE Examination held in the year 2023-2024 at St.Thomas English Medium
School, Mysuru
First I take this opportunity to thank the Almighty God, who really enabled me to do this
project successfully. I would also like to express my gratitude to all those who have guided me.
I acknowledge my heartfelt thanks to the Principal Mr. Lintomon T. A, and my teacher Mrs.
Seem for her valuable guidance and encouragement. I thank all my teachers and friends who
have helped me to complete this task successfully.
I bow down to my parents for their inspiration and prayers without which this project might
not have been a success
DECLARATION
I hereby declare that this project entitled Python Code is a bonafide record of the project
work done by me, during the course of my studies in the academic year 2023-2024.This
report has not been previously formed the basis for the award of any certificate,
diploma or other similar title to me by any other board or society.
Date: 3-1-2024
INDEX
Sl.no Topics Pg.no
1 Introduction 1
How to Play:
1. Enter your choice when prompted (rock, paper, or scissors).
2. The computer will randomly choose its move.
3. The winner is determined, and the result is displayed.
4. You can choose to play again or exit the game.
Features:
- User-friendly interface with clear prompts.
- Randomized computer moves for unpredictability.
- Simple yet engaging gameplay for quick entertainment.
Software and Hardware Requirements
Software specification:
Operating System:Windows 10
Database:MySQL
Language:Python
Hardware specification:
Procceser:Dual core or above
Hard disk:40GB
RAM:1GB
Code for Rock Paper Scissor game
# import random module
import random
while True:
if choice == 1:
choice_name= 'Rock'
elif choice == 2:
choice_name= 'Paper'
else:
choice_name= 'Scissors'
# of random module
comp_choice = random.randint(1,3)
comp_choice = random.randint(1,3)
if comp_choice == 1:
comp_choice_name = 'rocK'
elif comp_choice == 2:
comp_choice_name = 'papeR'
else:
comp_choice_name = 'scissoR'
print(choice_name,'Vs',comp_choice_name)
if choice == comp_choice:
print('Its a Draw',end="")
result="DRAW"
result='papeR'
result='Rock'
result='rocK'
result='scissoR'
result='Scissors'
if result == 'DRAW':
if result == choice_name:
else:
ans = input().lower
if ans =='n':
break
1 - Rock
2 - Paper
3 - Scissors
:2 User choice is
Paper
Computer choice is
rocK
Paper Vs rocK
1 - Rock
2 - Paper
3 - Scissors
User choice is
Rock
Computer choice is
papeR
Rock Vs papeR
1 - Rock
2 - Paper
3 - Scissors
User choice is
Scissors
Computer choice is
rocK
Scissors Vs rocK
geeksforgeeks.org/
chat.openai.com