Skip to content

Make this Hacktoberfest a learning period and contribute to Great Open Source Projects.

License

Notifications You must be signed in to change notification settings

sunalii/Hacktoberfest-2020

 
 

Repository files navigation

Rock Paper Scissors

Description

Play more options than simple rock-paper-scissor, this script includes other options for you to try.

Author

Swarag-N

How to Play

Create a rating.txt file to store your score aganist computer.

$python rock-paper-scissors.py
Option Description
!rating Shows score of current user
!exit Saves current score and exits

Output:

$ python rock-paper-scissors.py
Enter Your name: Swarag
Hello, Swarag
Press Enter to cont. with default options or give options
rock,paper,wolf
Okay, let's start
wolf
There is a draw wolf
rock
Sorry, but computer chose paper
wolf
Sorry, but computer chose rock
!rating
Your rating:  50
!exit
Swarag 50
Data Saved
Bye!
$ python rock-paper-scissors.py
Hello, Swarag
Loaded Score from Last Game
Press Enter to cont. with default options or give options

Okay, let's start
!rating
Your rating:  50
rock
Sorry, but computer chose paper
paper
Well done. Computer chose rock and failed
!exit
Swarag 150
Data Saved
Bye!

Few changes made to the rec.html

About

Make this Hacktoberfest a learning period and contribute to Great Open Source Projects.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 25.6%
  • Python 19.4%
  • HTML 12.7%
  • C++ 11.1%
  • CSS 10.2%
  • Hack 9.7%
  • Other 11.3%