SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
TIRUCHIRAPALLI
PYTHON PROJECT
ROCK PAPER SCISSOR GAME
MENTORED BY TEAM MEMBERS
Dr. Devipriya VISHNUPRIYAN DS(RA2211030050030)
Department of CSE KISHORE KUMAR P(RA2211030050016)
MOHAMED ATIF ANSARI M (RA2211030050040)
1
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
TIRUCHIRAPALLI
INDEX
S.no Title Page no.
3
1 Abstract
4
2 Project Description
5
3 Source code
24
4 Output
27
5 Conclusion
2
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
TIRUCHIRAPALLI
1.ABSTRACT:
Rock, Paper, Scissors is a simple hand python
game that is often used as a decision-making tool
between two people. In this game, each player
simultaneously forms one of three shapes with an
outstretched hand. The possible shapes are "rock,"
"paper," and "scissors." The winner is determined
based on a set of simple rules:
Rock beats scissors (Rock crushes scissors).
Scissors beats paper (Scissors cut paper).
Paper beats rock (Paper covers rock).
The Rock, Paper, Scissors (RPS) game is a simple yet
engaging game that involves two players making
simultaneous hand signs, leading to one of them
winning based on the game's rules. This project aims to
create a Python-based RPS game that provides an
interactive and enjoyable gaming experience.
3
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
TIRUCHIRAPALLI
2.PROJECT DESCRIPTION:
How to Play:
1. The game starts with a welcoming message and
prompts the player to choose a hand sign.
2. The player types their choice ("rock," "paper," or
"scissors") into the command line.
3. The computer's choice is randomly generated.
4. The game determines the winner based on the rules
and displays the result (e.g., "You win!", "Computer
wins!", or "It's a tie!").
5. The game asks if the player wants to play another
round.
6. The player's score is updated based on the outcome of
each round.
7. The game continues until the player decides to quit.
To enhance the game and make it more engaging, you
can consider adding the following features:
1. GUI: Implement a graphical user interface using a library
like Tkinter for a more user-friendly experience.
2. Difficulty Levels: Add different difficulty levels for the
computer opponent, making it easier or harder to win.
3. Sound Effects: Include sound effects to make the game
more immersive.
4
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
TIRUCHIRAPALLI
4.SOURCE CODE:
4.OUTPUT:
5
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
TIRUCHIRAPALLI
6
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
TIRUCHIRAPALLI
5. CONCLUSION:
In the end, we can conclude that we have successfully
developed the rock paper scissors game using the
Python programming language. We utilized
the Tkinter library in order for us to render graphics.
We also made use of the random module to generate
random choices. From this project, we learned the
way to create different widgets like labels, text fields,
and buttons. We have also seen how to call the
functions with the help of buttons. Hence, in the
following way, we were able to create a rock paper
scissors game in Python.