0% found this document useful (0 votes)
9 views9 pages

Rock 1

Uploaded by

ayushmaity7189
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)
9 views9 pages

Rock 1

Uploaded by

ayushmaity7189
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/ 9

Rock, Paper, Scissors Game in Python

Name – AYUSH MAITY


Roll No – 45

Class – 10A
Session- –2024-25
School - PM Shri Kendriya Viyalaya Command Hospital
1
INDEX
S.NO TOPIC PG.NO T.SIGN
1. ACKNOWLEDGEMENT 2
2. AIM OF THE PROJECT 3

3. EXPLANATION 4

4. INPUT 6

5. OUTPUT 7

6. BIBLEOGRAPHY 8

1
ACKNOWLEDGEMENT
I would like to express my sincere gratitude to all
these individuals for mentoring and supporting me
in completing this project.
My teacher Abhilasha Dubey for providing me with
invaluable insights and direction.
To my parents, their constant encouragement,
patience, and understanding have been the pillars
of my success.

I am grateful to my friends who contributed ideas


and perspectives that enriched the project. Thank
you everyone for shaping this project and
enhancing my learning experience

2
AIM OF THE PROJECT
The aim of this project is to create a simple "Rock, Paper,
Scissors" game in Python that allows a player to compete
against the computer. The game logic determines the
winner by comparing the choices of the player and the
computer, following the classic rules:

• Rock beats Scissors.


• Scissors beats Paper.
• Paper beats Rock.

The game provides feedback on each round's result (win,


lose, or tie) and asks the player if they want to play again.
The game ends when the player chooses not to continue,
displaying a farewell message.

3
EXPLANATION
This project is a simple "Rock, Paper, Scissors" game
coded in Python. It allows a player to play against the
computer, following the basic rules of the game:
• Rock beats Scissors.
• Scissors beats Paper.
• Paper beats Rock.

➢ How It Works:

1. Game Setup: The program defines the three options


(rock, paper, and scissors) and uses Python's random
module to let the computer randomly pick one of them in
each round.

2. Player Input: In each round, the player is asked to type


their choice (either "rock," "paper," or "scissors").

3. Game Logic:

The program compares the player's choice with the


computer's choice.If both choices are the same, it’s a tie. If
the player's choice beats the computer's choice, the player
wins. Otherwise, the player loses.

4
4. Play Again Option: After each round, the program asks
the player if they want to play another round. If the player
types "y" (for yes), the game restarts. If the player types "n"
(for no), the game ends.

5. End of Game: When the player chooses to stop playing, a


final message, "Thanks for playing!" is displayed, and the
game exits.

❖ Purpose:

The project is a fun and interactive way to practice basic


Python skills, including:

• Using loops and conditional statements.


• Getting user input and validating it.
• Generating random choices.

Creating a simple game structure with replay functionality.

This game is a good beginner-level project that helps


develop a foundational understanding of programming
logic and user interaction in Python.

5
INPUT

6
OUTPUT
PROVIDING CHOICE TO THE USER:

LOOP:

PLAYER WINNING:

PLAYER LOSING:

PLAYER TIED WITH COMPUTER:

7
BIBLEOGRAPHY
1.Friends
Aditya Kumar, provided guidance on structuring the
"Rock, Paper, Scissors" game logic in Python.

2. Books
Arora, Sumita. Computer Science with Python (Class 10).
New Delhi: Dhanpat Rai & Co., [2020].
Reference for foundational Python programming
concepts.

3. Websites and Online Resources


Programiz. "Python Input, Output and Import."
URL: https://www.programiz.com/

GitHub. "Rock Paper Scissors Game Examples."


URL: https://github.com/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy