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.
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 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.
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.
No errors were returned when passing through the official W3C validator https://validator.w3.org/nu/
No errors were found when passing through the official https://jigsaw.w3.org/css-validator/validator
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.
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.
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/
i got the logos for my work form fontawesome https://fontawesome.com/