Project 1: Scissors Paper Stone (Part 1)
✂️📃💎😜
Last updated
✂️📃💎😜
Last updated
For our first project we will make our own version of the classic game. We have split this project into 2 parts to cater to the pace of Rocket's Fundamentals course. See the for when we have assigned each part.
Part 1 works with the technologies we have learnt so far in Fundamentals, and Part 2 adds additional technologies that we learn in subsequent course days.
Create a project
directory in your fundamentals
code folder to host your projects if you haven't already.
Make a copy of the for your Scissors Paper Stone project.
Create a basic version of Scissors Paper Stone where the user inputs one of "scissors", "paper", or "stone", the program internally randomly chooses scissors, paper, or stone, and the program outputs whether the user won, the program won, or it's a draw.
Rules: scissors beats paper, paper beats stone, and stone beats scissors. If both parties choose the same object, it's a draw.
You decide to prank your friends and create an SPS game where the rules are reversed: scissors beat stone, stone beats paper, and paper beats scissors. Create a version where the rules are reversed. The user can choose to try their luck at reversed mode by adding the word "reversed" to their choice. For example: "reversed stone".
Sometimes the user types something other than "scissors", "paper", or "stone" during gameplay. Add to check if what the user types is a valid choice, and if not, kindly let the user know that there are only 3 input options, and ask them to try again.
Make the output of your game look nice. You can use string '<br>'
to create in the output. Your output might look something like this:
for SPS-Part1 (up till More Comfortable). Please only refer to the reference solution after you have attempted the project. Note that there are many ways to implement the project and the reference solution is only 1 way.