Giter Club home page Giter Club logo

rock-paper-scissors-game-8's Introduction

Rock Paper Scissors Game

The Rock Paper Scissors Game is a game website where you can test your luck vs the AI to see if your chances can land you a win vs your oponent. Using a dice role in the code to determin the computers outcome ( rock player or Scissors) to demonstrate the uses of JavaScript.

fetures

heading with logs

The heading and logos are spit up into colours with all three, Rock, Papper and scissors having their own logo next to the name all in a diffrent colour to show appeal.

the game board

The game board is where the game takes place. it uses the same logos and colours from the heading and addes them into 6 diffrent buttons. three for the player and three for the Ai. the player would then pick one of the 3 items. the AI will then pick a number between 0-2 each number representing a diffrent item of its own. the outcome will then be displayed as a alert. telling the player if the round has been won or lose. the results will them determing who loses a life.

lives

I have added a life system. each side gets 3 lives counting down to 0 the player to lose all of their lives 1st loses. This is then followed by a congratulations or a better luck nect time depending on the out come. this will be shown through another alert.

testing

Validator Testing

html

No errors were returned when passing through the official W3C validator https://validator.w3.org/nu/

CSS

No errors were found when passing through the official https://jigsaw.w3.org/css-validator/validator

javaScript

No errors were found when passing through the official Jshint validator. The following metrics were returned:

There are 6 functions in this file.

Function with the largest signature take 0 arguments, while the median is 0.

Largest function has 7 statements in it, while the median is 7.

The most complex function has a cyclomatic complexity value of 4 while the median is 3.5.

unfixed bugs

i have discoved one bug where one game reset. if one of the players had 2 or more lives when the game was over the losing player would only recive 2 lives instead of 3 this bug would be solved by clicking the play again button again.

Deployment

he site was deployed to GitHub pages. The steps to deploy are as follows: In the GitHub repository, navigate to the Settings tab From the source section drop-down menu, select the Master Branch Once the master branch has been selected, the page will be automatically refreshed with a detailed ribbon display to indicate the successful deployment.

The live link can be found here - https://8000-frankbrownn-rockpapersc-qeirrfuh3e7.ws-eu47.gitpod.io/

credits

content

i got the logos for my work form fontawesome https://fontawesome.com/

rock-paper-scissors-game-8's People

Contributors

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