A Project On Python
A Project On Python
Bachelor of technology
in
CSE(6th SEM)
A PROJECT ON
STONE PAPER SCISSOR GAME
Submitted by :
Anjali Singh Rajput
CONTENTS
Introduction to Project
Symbols of the game
Abstract
Approach used
Algorithms used
Flowchart
Source Code
Output
Result
Conclusion
INTRODUCTION TO PROJECT
Stone Paper Sessor (which is also called Rock Paper Scissor) is a hand
game and played between two people, in which each player
simultaneously forms one of three shapes.
In this game, the user will be asked to make choice and according to
the choice of user and computer and then the result will be displayed
along with the choices of both computer and user.
SYMBOLS OF THE GAME
ABSTRACT
Stone-paper-scissors is a hand game that is played by two people.
The players count to three in unison and simultaneously "throw" one
of three hand signals that correspond to stone, paper or scissors. The
winner is determined by the rules:
In our first mini-project, we will build a Python function that takes as input the string
(name) which is one of Stone-paper-scissors the function then simulates playing a
round of Rock-paper-scissors by generating its own random choice from these
alternatives and then determining the winner using a simple rule that we will next
describe.
While Stone-paper-scissor has a set of ten rules that logically determine who wins a
round of RPS, coding up these rules would require a number of if/elif/else clauses in
this mini-project code.
A simpler method for determining the winner is to assign each of the three choices a
number:
1. Stone
2. Paper
ALGORITHM USED