0% found this document useful (0 votes)
2K views8 pages

Rock Paper Scissors

This document is a certificate for a group project on the game "Rock Paper Scissors" completed by 4 students during the 2021-2022 academic year. It includes an acknowledgements section thanking their teacher and principal for guidance. The introduction explains the project uses Python for the front end interface and MySQL for the backend database. It lists modules used like Colorama and describes the codes, which use random number generation and conditions to determine wins, losses and ties between player and computer choices.

Uploaded by

Hdkkbdh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views8 pages

Rock Paper Scissors

This document is a certificate for a group project on the game "Rock Paper Scissors" completed by 4 students during the 2021-2022 academic year. It includes an acknowledgements section thanking their teacher and principal for guidance. The introduction explains the project uses Python for the front end interface and MySQL for the backend database. It lists modules used like Colorama and describes the codes, which use random number generation and conditions to determine wins, losses and ties between player and computer choices.

Uploaded by

Hdkkbdh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Project of computer

science
Jawahar Navodaya Vidyalaya
JALANDHAR
Certificate
this is to certified that the bonafide
work of students in computer science
laboratory during academic session of
2021 - 2022
Name of the group members:-
MEMBERS ROLL No
1.gagandeep kaur 1217
2. shrishti Sharma 1212
3.komal 1223
4. mehak 1224

TEACHER’S SIGN. PRINCIPAL Sign.


ACKNOWLEDGEMENT
WE WOULD LIKE TO EXPRESS OUR
SPECIAL THANKS OF GRATITUDE TO
OUR TEACHER , mr lovenish lamba,
PGT COMPUTER SCIENCE As well as
our principal , mr surya Prakash
singh who gave us the golden
opportunity to do this wonderful
project on the topic
“Rock paper scissor”
Which also helped us In doing a
lot of attempts and we came to
know about so many new things
we are really thankful to them .
Secondly , we would also like to
thank our parents and friends
who helped us a lot in finalizing
this project within the limited
time frame.
INTRODUCTION OF THE PROJECT
❖ NAME OF THE PROJECT :
”Rock paper SCISSoR”
❖EVERY SOFTWARE HAS TWO ENDS FRONT
END AND BACK END THIS SOFTWARE ALSO
HAVE FRONT AND BACK END.
1. FRONT END : PYTHON FOR USER INTERFACE
2. BACK END: MYSQL FOR DATABASE OR DATA
MANAGEMENT
❖Developer of python language

Guido van rossum


❖ Database: mysql
❖Modules of the python used in the
project:
1.colorama :for the colour of the
characters
2. Tabulate: for showing the data in
the form of a table
3. Mysql connecter:for connecting the
user interface to database
• Etc. are the modules that are used
in this project.
CODES OF THE PROJECT:
Codes of the project end

#importing module
Import random as r
Import time as t
Print(‘\tROCK!,PAPER!,SCISSOR! GAME’)
Dict1={1:’rock’,2:’paper’,3:’scissor’}
Print(‘instruction\nrock>scissor,rock<paper,scissor>pa
per’)
Print(‘press 3 to stop’)
Print()
Player=0
Computer=0
I=1
Round=1
While i==1:#infinite loop
Print(‘\tround’,round)
Wpn=input(‘enter rock or paper or scissor:-
‘).lower()#input
If wpn==’3’:
Break
Else:
Pass#stop loop on particular input (3)
A=r.randint(1,3)#pickup random No. between 1 to 3
Print(‘rock!’,end=’ ‘)
t.sleep(0.5)#delaying output by 0.5 seconds
print(‘paper!’,end=’ ‘)
t.sleep(0.5)#delaying output by 0.5 seconds
print(‘scissor!’,end=’ ‘)
t.sleep(0.5)#delaying output by 0.5 seconds
print(‘shoot!’)
#Result for different kind of combination
If dict1[a]==wpn:
Print(‘comp choose-‘,dict1[a])
Print(‘tie’)
Elif dict1[a]==’rock’ and wpn==’scissor’:
Print(‘comp choose’,dict1[a])
Print(‘Computer Win’)
Computer+=1
Elif dict1[a]==’rock’ and wpn==’paper’:
Print(‘comp choose-‘,dict1[a])
Print(‘Player Win’)
Player+=1
Elif dict1[a]==’paper’ and wpn==’scissor’:
Print(‘comp choose-‘,dict1[a])
Print(‘Player Win’)
Player+=1
Elif dict1[a]==’paper’ and wpn==’rock’:
Print(‘comp choose-‘,dict1[a])
Print(‘Computer Win’)
Computer+=1
Elif dict1[a]==’scissor’ and wpn==’rock’:
Print(‘comp choose’,dict1[a])
Print(‘Player Win’)
Player+=
Elif dict1[a]==’scissor’ and wpn==’paper’:
Print(‘comp choose-‘,dict1[a])
Print(‘Computer Win’)
Computer+=1
Else:
Print(‘invalid input’)
Print()
Print(‘player’,player,’computer’,computer)
Round+=1#no. of round increment
Print()#space
Print()#space

You might also like