0% found this document useful (0 votes)
6 views

Project t

Uploaded by

ffg44314
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Project t

Uploaded by

ffg44314
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 17

Cluny Vidya Nikethan (CBSE)

Senior Secondary School


Attur Bye Pass Road, Erumapalayam, Salem-15
ACADEMIC YEAR: 2024-25

MINI PROJECT REPORT ON ROCK PAPER SCISSORS GAME

ROLL NO : 17

NAME : CIBIPRIYAN.M

CLASS : XI - A

SUBJECT : COMPUTER SCIENCE

SUB CODE : 083

PROJECT GUIDE: V.MARTIN SOLOMON PGT


(CS)
Cluny Vidya Nikethan
Senior Secondary School (CBSE)
Erumapalayam, Salem-15, Tamilnadu.
Cluny Vidya Nikethan (CBSE)
Senior Secondary School

CERTIFICATE

This is to certify that Student CIBIPRIYAN.M , Roll No:17 has


successfully completed the Mini Project Work entitled ROCK
PAPER SCISSORS GAME in the subject Computer Science (083)
laid down in the regulations of CBSE for the purpose of Practical
Examination in Class XI to be held in Cluny Vidya Nikethan(CBSE)
Senior Secondary School, on _____________.

V. Martin Solomon
Teacher in charge

School seal Principal


TABLE OF CONTENTS [ T O C]

SER DESCRIPTION PAGE NO

01 ACKNOWLEDGEMENT

02 INTRODUCTION

03 OBJECTIVES OF THE MINI PROJECT

04 SOURCE CODE

05 OUTPUT

06 HARDWARE AND SOFTWARE REQUIREMENTS

07 CONCLUSION

ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any Mini Project depends
largely on the encouragement and guidelines of many others. I take this
opportunity to express my gratitude to the people who have been instrumental in
the successful completion of this Mini Project.
I express deep sense of gratitude to almighty God for giving me strength for
the successful completion of the Mini Project.
I express my heartfelt gratitude to my parents for constant encouragement
while carrying out this Mini Project.
I gratefully acknowledge the contribution of the individuals who contributed
in bringing this Mini Project up to this level, who continues to look after me
despite my flaws,
I express my deep sense of gratitude to the luminary Rev.Sr. MARIE
THERESE, The Principal, Cluny Vidya Nikethan (CBSE) Senior Secondary
School who has been continuously motivating and extending their helping hand to
us.
I am overwhelmed to express my thanks to The Office staffs for providing me an
infrastructure and moral support while carrying out this Mini Project in the school.
My sincere thanks to Mr. V.MARTIN SOLOMON, Master In-charge, A
guide, Mentor all the above a friend, who critically reviewed my Mini Project and
helped in solving each and every problem, occurred during implementation of the
Mini Project
The guidance and support received from all the members who contributed
and who are contributing to this Mini Project, was vital for the success of the Mini
Project. I am grateful for their constant support and help.

TOPIC
ROCK PAPER SCISSORS

INTRODUCTION

Rock-Paper-Scissors is a classic hand game commonly played to


make quick, impartial decisions or as a fun pastime. The game
involves two or more players who simultaneously form one of three
hand shapes representing rock, paper, or scissors.

WHY ITS POPULAR?

Rock-Paper-Scissors is easy to learn, requires no equipment, and is


widely used in decision-making, competitions, and even as a
warmup game. It’s a mix of strategy, psychology, and chance,
making it enjoyable for players of all ages.

HOW TO PLAY THIS GAME?


The Rock-Paper-Scissors Python project successfully
demonstrates the application of fundamental programming concepts,
including conditional statements, loops, functions, and user
interaction. It provides an engaging way to practice coding and
problem-solving while reinforcing logical thinking and
decisionmaking skills.
Key takeaways from the project include:
1. Implementation of Core Logic: The project highlights the
importance of designing and implementing clear game rules
using conditional statements.
2. Randomization and AI Simulation: By integrating the
random module, the project effectively simulates a computer
opponent, introducing unpredictability and realism to the game.
3. User Interaction: Handling user input and providing feedback
enhances the player's experience and demonstrates how to
manage input validation.
4. Scalability: The basic structure of this project can be extended
to include advanced features such as:
o Score tracking across multiple rounds. o Additional

moves (e.g., "Lizard" and "Spock" in the expanded


version). o Graphical User Interface (GUI) for an
interactive experience.
5. Learning Outcome: This project serves as a strong foundation
for beginners in Python, helping them understand basic
programming principles and encouraging them to experiment
and build upon the code.
In conclusion, the Rock-Paper-Scissors project is not only a fun and
creative endeavor but also a valuable learning tool. It lays the
groundwork for more complex projects, fostering both technical
skills and creativity.

OBJECTIVES OF THE MINI PROJECT


The objectives of Rock-Paper-Scissors are straightforward and
align with its nature as a simple hand game. These objectives
include:
1. Winning the Round:
The primary goal is to beat your opponent by selecting the
çhandsign that wins against theirs based on the game’s rules:
- Rock crushes scissors.
- Scissors cut paper.
- Paper covers rock.
2. Strategy and Anticipation:
Players aim to predict their opponent’s move and select a
sign that will counter it. This involves reading patterns,
psychological tactics, or random guessing.
3. Decision Resolution:
The game is often used as a quick and fair decision-making
tool in situations where a choice needs to be made (e.g., who
goes first in a game or who takes a turn).
4. Fun and Interaction:
The game provides a lighthearted and engaging way to
interact socially, encouraging friendly competition.
5. Testing Luck or Intuition:
While simple, the game tests a mix of intuition, strategy, and
randomness.
SOURCE CODE

Import random
# Print multiline instruction
Print(‘Winning rules of the game ROCK PAPER SCISSORS are:\n’
+ “Rock vs Paper -> Paper wins \n”
+ “Rock vs Scissors -> Rock wins \n”
+ “Paper vs Scissors -> Scissors wins \n”)
While True:
Print(“Enter your choice \n 1 – Rock \n 2 – Paper \n 3 – Scissors \
n”)

# Take the input from user


Choice = int(input(“Enter your choice: “))
# Looping until user enters valid input
While choice > 3 or choice < 1:
Choice = int(input(‘Enter a valid choice please : ‘))

# Initialize value of choice_name variable corresponding to the


choice value
If choice == 1:
Choice_name = ‘Rock’
Elif choice == 2:
Choice_name = ‘Paper’
Else:
Choice_name = ‘Scissors’

# Print user choice


Print(‘User choice is:’, choice_name)
Print(“Now it’s Computer’s Turn…”)
# Computer chooses randomly any number among 1, 2, and 3
Comp_choice = random.randint(1, 3)

# Initialize value of comp_choice_name variable corresponding to


the choice value
If comp_choice == 1:
Comp_choice_name = ‘Rock’
Elif comp_choice == 2:
Comp_choice_name = ‘Paper’
Else:
Comp_choice_name = ‘Scissors’

Print(“Computer choice is:”, comp_choice_name)


Print(choice_name, ‘vs’, comp_choice_name)

# Determine the winner


If choice == comp_choice:
Result = “DRAW”
Elif (choice == 1 and comp_choice == 2) or (comp_choice == 1 and
choice == 2):
Result = ‘Paper’
Elif (choice == 1 and comp_choice == 3) or (comp_choice == 1 and
choice == 3):
Result = ‘Rock’
Elif (choice == 2 and comp_choice == 3) or (comp_choice == 2
and choice == 3):
Result = ‘Scissors’

# Print the result


If result == “DRAW”:
Print(“ It’s a tie! ➔”)
Elif result == choice_name:
Print(“ User wins! ➔”)
Else:
Print(“ Computer wins! ➔”)

# Ask if the user wants to play again


Print(“Do you want to play again? (Y/N)”)
Ans = input().lower()
If ans == ‘n’:
Break

# After coming out of the while loop, print thanks for playing
Print(“Thanks for playing!”)
OUTPUT
HARDWARE AND SOFTWARE REQUIREMENTS
I.OPERATING SYSTEM : WINDOWS 10 AND ABOVE

II. PROCESSOR : PENTIUM (ANY) OR AMD

ATHALON (3800+- 4200+ DUAL CORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIA K8M800+8237R PLUS


CHIPSET FOR AMD ATHALON

IV. RAM : 4GB+

V. Hard disk : SATA 256 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up required)

VII. PEN DRIVE 1 GB : (If Backup required)

VIII. MONITOR : 14.1 or 15 -17 inch

IX. Key board and mouse

X. Printer : (if print is required – [Hard copy])

SOFTWARE REQUIREMENTS:

• Windows OS
• Python IDLE
• PyCharm Community
• MySQL server
• Connector module
• Internet
CONCLUSION

The Rock-Paper-Scissors Python project successfully demonstrates


the application of fundamental programming concepts, including
conditional statements, loops, functions, and user interaction. It
provides an engaging way to practice coding and problem-solving
while reinforcing logical thinking and decision-making skills.
Key takeaways from the project include:
Implementation of Core Logic:
The project highlights the importance of designing and
implementing clear game rules using conditional statements.
Randomization and AI Simulation:
By integrating the random module, the project effectively simulates
a computer opponent, introducing unpredictability and realism to the
game.
User Interaction:
Handling user input and providing feedback enhances the player’s
experience and demonstrates how to manage input validation.
Scalability:
The basic structure of this project can be extended to include
advanced features such as: Score tracking across multiple
rounds.
Additional moves (e.g., “Lizard” and “Spock” in the expanded
version).
Graphical User Interface (GUI) for an interactive experience.
Learning Outcome:
This project serves as a strong foundation for beginners in Python,
helping them understand basic programming principles and
encouraging them to experiment and build upon the code.
In conclusion, the Rock-Paper-Scissors project is not only a fun and
creative endeavor but also a valuable learning tool.

You might also like