Mini Project
Mini Project
HYDERABAD – 500072
(2024-2025)
UNDERTAKING
Students Name
B. AMIT (22D01A0522)
B. CHAITANYA (22D01A0525)
E. DAYASAGAR (22D01A0566)
G. SAI KUMAR (22D01A0570)
H. HARI PRIYA (22D01A0584)
Place: Hyderabad
CERTIFICATE
This is to certify that the project work “ROCK PAPER SCISSOR GAME” is
submitted in partial fulfillment of the requirement for the award of the Degree
Bachelor of Technology in COMPUTER SCIENCE & ENGINEERING from
JAWAHARLAL TECHNOLOGICAL UNIVERSITY, HYDERABAD is a bonafide work
carried under the guidance of Ms. Geetha
We would like to thank Dr. Joy, HOD St. Mary’s Group of Institutions.
We are deeply indebted to our mentor Ms. Geetha
We further thank to all the staff members of St. Mary’s Group of
Institutions.
We owe our sincere gratitude towards St. Mary’s Group of Institutions.
Our heartfelt thanks to JNTU.
We also express our deepest gratitude to our parents.
Finally, we would like to wind up by paying our heartfelt thanks to all our
near and dear ones.
B. AMIT 22D01A0522
B. CHAITANYA 22D01A0525
E. DAYASAGAR 22D01A0566
G. SAI KUMAR 22D01A0570
H. HARI PRIYA 22D01A0584
CONTENTS
1. Abstract of Project.
2. Introduction of the Project.
3. Problem Statement.
4. Software Requirements & Software Environment.
5. Python Coding.
6. Output of the Project.
7. Compiled Output.
8. Conclusion.
9. Future Enhancements.
10. Bibliography / References
Abstract of Project
"Rock, Paper, Scissors" is a simple yet engaging hand game that is widely used for
decision-making or as a pastime activity. The game involves two players who
simultaneously form one of three shapes with an outstretched hand: rock (a fist),
paper (an open hand), or scissors (a fist with the index and middle fingers extended,
forming a V). The rules are straightforward:
In each round, players count to three and reveal their chosen shape simultaneously.
The winner is determined based on the interactions mentioned above. If both players
choose the same shape, the round is a tie and no points are awarded.
The simplicity of "Rock, Paper, Scissors" makes it accessible to players of all ages
and backgrounds. It requires no special equipment and can be played anywhere,
making it a versatile and portable game. The game also introduces elements of
strategy and psychology, as players may attempt to predict and counter their
opponent's choices.
Overall, "Rock, Paper, Scissors" is a timeless and universally recognized game that
combines luck, strategy, and quick decision-making, offering both entertainment and
a method for resolving minor disputes in a fair and enjoyable manner.
Introduction of the Project
The Python-based Rock, Paper, Scissors game aims to achieve the following objectives:
Software Requirements
• Python 3.8+: The core programming language for developing the
application.
Software Environment
class RockPaperScissors:
def __init__(self):
self.choices = ["rock", "paper", "scissors"]
self.player_score = 0
self.computer_score = 0
def play_game(self):
print("Welcome to Rock, Paper, Scissors Game!")
while True:
print("\nChoose your move:")
print("1. Rock")
print("2. Paper")
print("3. Scissors")
print("4. Quit")
if player_choice == '4':
break
elif player_choice in ['1', '2', '3']:
player_move = self.choices[int(player_choice) - 1]
computer_move = random.choice(self.choices)
print(f"\nYou chose: {player_move}")
if result == 'win':
self.player_score += 1
print("You win this round!")
else:
print("It's a tie!")
self.display_scores()
else:
return 'tie'
elif (player_move == 'rock' and computer_move == 'scissors') or \
(player_move == 'paper' and computer_move == 'rock') or \
(player_move == 'scissors' and computer_move == 'paper'):
return 'win'
else:
return 'lose'
def display_scores(self):
def main():
game = RockPaperScissors()
game.play_game()
if __name__ == "__main__":
main()
Output:
1. Rock
2. Paper
3. Scissors
4. Quit
Your score: 1
Computer's score: 0
1. Rock
2. Paper
3. Scissors
4. Quit
Enter your choice (1-4): 2
Computer's score: 1
1. Rock
2. Paper
3. Scissors
4. Quit
Enter your choice (1-4): 4
Your score: 1
Computer’s Score: 1
Compiled Output:
Conclusion:
1. Python.org
2. GeeksforGeeks
3. Chatgpt.AI
4. Perplexity.AI
5. Code Academy
6. PythonChallenge.com