Rock_Paper_Scissors_Mini_Project_Report_With_Flowchart (1)
Rock_Paper_Scissors_Mini_Project_Report_With_Flowchart (1)
Introduction
This project is a simple implementation of the classic game 'Rock, Paper, Scissors' using the Python
programming language. The objective of this mini-project is to demonstrate the basic concepts of Python
such as conditional statements, loops, user input, and random module usage.
Objective
To design a terminal-based Rock, Paper, Scissors game where a user plays against the computer. The game
randomly generates the computers choice and determines the winner based on traditional game rules.
- IDE: Any Python IDE or code editor (e.g., VS Code, PyCharm, IDLE)
System Requirements
Project Description
2. The computer randomly selects its choice using the random.choice() function.
Source Code
import random
def get_computer_choice():
def get_user_choice():
if user == computer:
else:
def play_game():
while True:
user = get_user_choice()
continue
computer = get_computer_choice()
print(result)
if play_again != 'yes':
break
play_game()
Output
Example output:
You win!
Conclusion
This project is a simple yet effective way to apply basic programming concepts in Python. It helps in
understanding user input handling, logic building, and use of built-in modules like random.
Future Enhancements
Flowchart
Mini Project Report
Rock, Paper, Scissors Game Using Python
References