In this project I replicated the famous rock, paper and scissors game. It is a game originated from China, usually played between two people, in which each player simultaneously forms one of three shapes with an outstretched hand. These shapes are "rock", "paper", and "scissors".
A deployed link of the project can be found: here
- The user will be asked to provide his/her name.
- The user will be informed about the rules of the game.
- The user will have to follow the rules and win the game.
The outcome of the game is determined by 3 simple rules:
- Rock wins against scissors.
- Scissors win against paper.
- Paper wins against rock. The user needs to win the game against the computer.
I created a flowchart of the game.
- Landing Page.
- Game Screen.
- End game alert.
- I plan to add 3 rounds for the game and the user and computer scores.
- I validate the code through the PEP8 Linter.
- Tried to give invalid inputs to test my validation of the input.
PEP8 was used yto validate the Python code to ensure that there is no error.
- I tested the all the screens works in different browsers: Chrome, Safari, Firefox and Edge.
- I confirmed that this project is responsive, looks good and works on all standard screens using the devtools device toolbar.
- When adding a string in the user_action input we get an error. I'm planning to fix it as soon as possible.
The program was deployed to Heroku. These are the steps:
- Log in to Heroku.
- Click on "create a new app".
- Click on settings.
- Added these build packs: Python and nodejs.
- go to the Gitpod terminal:
- type heroku login -i
- enter your email
- enter your password
- type heroku apps
- heroku git:remote -a rock-paper-scissors-p3
- git add .
- git commit -m "Deploy to heroku CLI"
- git push origin main
- git push heroku main
- W3schools Great source of information and inspiration
- Udemy 100 Days of Code: The Complete Python Pro Bootcamp for 2022
- Devdojo I found inspiration for my project
- I want to thank all the Code Institute's tutors for the great support, and Martina Terlevic for reviewing my project and for giving me a lot of useful feedback.