Giter Club home page Giter Club logo

rock-paper-scissors-46's Introduction

Rock paper scissors

picture alt

Table of Content

  1. Introduction
  2. UX
  3. Logic
  4. Features
  5. Technologies Used
  6. Testing
  7. Deployment
  8. Credits

Introduction

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

UX

User Stories

  • 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.

User Goals

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.

Logic

I created a flowchart of the game.

picture alt

Features

Existing features:

  • Landing Page.
  • Game Screen.
  • End game alert.

Landing Page

picture alt

Game Screen

picture alt

End game screen

picture alt

Features Left to Implement

  • I plan to add 3 rounds for the game and the user and computer scores.

Technologies Used

Main Language Used

Python Modules

Libraries, Framework & Tools

Testing

  • I validate the code through the PEP8 Linter.
  • Tried to give invalid inputs to test my validation of the input.

PEP8 Online

PEP8 was used yto validate the Python code to ensure that there is no error.

picture alt

Further Testing

  • 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.

Unfixed Bugs

  • When adding a string in the user_action input we get an error. I'm planning to fix it as soon as possible.

Deployment

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

Credit

  • 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

Acknowledgements

  • 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.

rock-paper-scissors-46's People

Contributors

nicolascagna96 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.