Giter Club home page Giter Club logo

ejkington-lizard-spock-ms2_augresub's Introduction

Rock paper scissors lizard Spock game

Link to Live Website

GitHub Repo

The game

It is first used to settle a dispute about what to watch on TV between Sheldon and Raj in "The Lizard-Spock Expansion". It is mentioned again in "The Euclid Alternative" and "The Rothman Disintegration", where Sheldon explains the rules to Penny and Barry Kripke.

The game was originally created by Sam Kass with Karen Bryla. According to an interview with Kass, the series producers did not originally ask for permission to use the game, but Kass was officially referenced by Sheldon as the creator of the game during the "The Rothman Disintegration", after which he states, "Hail Sam Kass!" to which Leonard, Howard, Raj, and Sheldon all then chant "Hail!" while raising their hands.

Rules

How To Play The Game:

(1.) Scissors cuts Paper ( > )
(2.) Paper covers Rock ( > )
(3.) Rock crushes Lizard ( > 🦎)
(4.) Lizard poisons Spock (🦎 > 🖖)
(5.) Spock smashes Scissors (🖖 > )
(6.) Scissors decapitates Lizard ( > 🦎)
(7.) Lizard eats Paper (🦎 > )
(8.) Paper disproves Spock ( > 🖖)
(9.) Spock vaproizes Rock (🖖 > )
(10.) Rock crushes Scissors ( > )

Responsive Mockup

Features

A simple game of rock paper scissors lizzard spock.

  • Showing images of the button pressed.
  • Randomizes computers choice.
  • Display text if user wins or lose.
  • Scoreboard.

Existing Features

Start Screen and Heading

  • Scoreboard at the top of the screen.
  • Header text presenting what game is to be played.
  • Start button.
  • Reset button to return to start screen and reset the score to 0.
  • Rules button to see the rules of the game.

The Game Area

  • This section will allow the user to play the RPSLS game. The user will be able to easily see start button fading in to the game section ,
  • Pressing the start button will fade in the game area and present the user with the choices presented with green buttons.
  • An image of rock will be presented as default and will change accordingly to what button the user presses.
  • The reset button is at the top of the screen and will reset the game to homescreen
  • The rules button will direct the user too the rules page displaying the rules of the game

start

The game section

  • The match section is where the game happens. buttons for each choice and the images of what the user choose and what the computer has choosen
  • score showing above the user and ai choosen move.

match

Rules

  • Page showing the rules of the game with a picture and explanation on what beats what.
  • Play game button at the bottom to direct user to main page.

rules
rules
rules

Testing

Test Test action Expected outcome Test outcome
Correct images show up Clicking the diffrent buttons images changes according too button pressed PASS
Scoreboard works pressing a button score awarded to computer or user PASS
Start game button Clicking the start button from home screen Home page fades out and match page fades in with a small delay PASS
Reset button Clicking the reset button directed back to startscreen and score resets PASS
Rules button Clicking the rules button user is directed to page with rules of the game PASS
Play game button on rules page Clicking the play game button from rules page returns user to homepage PASS
  • Bug where the expected outcome of a press would give a point to the loser.
  • Bug where rock would beat everything.

Validator Testing

  • HTML

    • No errors were returned when passing through the official W3C validator
  • CSS - No errors were found when passing through the official (Jigsaw) validator

  • JavaScript

    • esversion: 6 was used in this project
    • No errors were found when passing through the official Jshint validator
    • The following metrics were returned:
    • There are 9 functions in this file.
    • Function with the largest signature take 2 arguments, while the median is 0.
    • Largest function has 54 statements in it, while the median is 4.
    • The most complex function has a cyclomatic complexity value of 17 while the median is 1.

Adding and commiting files

To add files to the repository take the following steps

In the command line type - git add .
git commit -m "This is being committed" git push

To add all new files or modified file use " ." - To add a single file use the pathway to the file eg .index.html or assets/css/style.css When committing make sure your comments are clear about what changes have been made. Pushing will send your work to the repository

Deployment

The project was deployed with the following steps

  • Logged into git hub
  • Clicked the "Settings" button in the menu above the Repository.
  • Scroll down the Settings page to the "GitHub Pages" Section.
  • Under "Source", click the dropdown called "None" and then select "Master Branch".
  • The page will automatically refresh, and a link displaced. It may take some time for the link to show the website.
  • If the page will not load go down to "template" under the "source" and select a template.
  • Scroll back down through the page to locate the now published site link in the "GitHub Pages" section.

The live link can be found here - https://ejkington.github.io/lizard-spock-ms2/

Credits

  • Brian Machina my mentor for guidens in project planing.
  • Slack community for help when i got stuck.
  • Ed Dev, youtuber.

Content

ejkington-lizard-spock-ms2_augresub's People

Contributors

ejkington avatar

Watchers

 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.