Skip to content

Rock Paper Scissors Lizard Spock is an online, fun game of chance - with a twist!

Notifications You must be signed in to change notification settings

richardreiter/rock-paper-scissors-lizard-spock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Lizard Spock Game

Rock Paper Scissors Lizard Spock is a website hosting a web based game invented by Sam Kass & Karen Bryla. This game was popularised by the American TV sitcom The Big Bang Theory, as an improvement of the classic Rock, Paper, Scissors game. The Lizard and Spock addition gives the game a twist and makes it more fun and exciting.

The player will test their luck against the computer, making a choice of their weapon in each round - Try and beat the computer, first to reach 5 points wins!

Responsive Rock Paper Scissors Lizard Spock

Visit the live project here.

UX (User Experience)

Project Goals

  • Create a clean, simple one page website to showcase a classic fun game (with a twist).
  • Provide the user/player with instructions/rules on how to play the game.
  • Provide feedback to the user on each round via a score tally.

Target Audience

  • People of all ages.
  • Anyone who wants to have a bit of fun with a game of chance.

User Stories

  • As a user, I want to understand what the website is about.
  • As a user, I want to know how to play the game.
  • As a user, I want to know the game's rules.

Wireframes

The mockups below were done with the help of Balsamiq (for both desktop and mobile screens), these were useful to help visualise the project.

  • Desktop: Desktop Mockup

  • Mobile: Mobile Mockup

Design

Fonts Used

Features

Existing Features

  • Header

    • Featured at the top of the page is the header. This shows the initials of the game, in a font that resembles The Big Bang Theory's font, combined with some emojis to convey a playful game.

Header

  • About / How to Play button

    • This button opens the modal with information and rules about the game.

About/How to play button

  • About / How to Play modal

    • This modal features information and rules about the game.

About/How to play modal

  • About / How to Play modal close button

    • This button features in the modal and will close once clicked, bringing the player/user back to the main screen.

About/How to play modal close button

  • Result area

    • The result area features the following:
      • "Computer choice" - The weapon chosen by the computer on this round.
      • "Your choice" - The weapon you chose on this round.
      • "You" - Win/lose/draw, depending on the outcome of the round in question.

Result area

  • Score area

    • The score area features the current score for both the player and computer.

Score area

  • Emoji container

    • The emoji container features a pixelated dynamic emoji, which changes depending on the outcome of the round (featuring four different emoji states).

Emoji container

  • Controls area

    • The controls area features the following:
      • Five button/icons with the options of Rock, Paper, Scissors, Lizard or Spock.
      • Reset button to reset the game/score board.

Controls area

Features Left to Implement

  • sessionStorage
    • A window sessionStorage is a feature to keep in mind so the user can type their name, this would be a nice addition to customise and personalise the experience for them.

Technologies Used

Languages Used

Frameworks, Libraries & Programs Used

  • Balsamiq
    • Balsamiq was used to make desktop/mobile mockups in order to visualise the project.
  • Git & Gitpod
    • Git was used for version control via the Gitpod terminal in order to commit to Git and push to GitHub.
  • GitHub
    • GitHub was used for hosting the project and version control.
  • Google Fonts
    • Google Fonts was used to import the fonts which are used on the website.
  • Font Awesome
    • Font Awesome was used to add icons to improve the design of the website.

Testing

Testing User Stories from User Experience (UX) Section

  • "As a user, I want to understand what the website is about."
    • Upon visiting the site the user can see a CTA button "About / How To Play", which will give the user more information about the site.
  • "As a user, I want to know how to play the game."
    • Once the user clicks on the CTA button, a modal will open up providing the game instructions.
  • "As a user, I want to know the game's rules."
    • Once the user clicks on the CTA button, a modal will open up providing the rules of the game.

Validator Testing

Google Lighthouse

  • Google's Lighthouse was used for measuring the quality of the pages.
    • Index Page (desktop) result: Index Lighthouse PC result

    • Index Page (mobile) result: Index Lighthouse PC result

Responsive Testing

  • Am I Responsive?
    • This design tool was used to show how responsive the website is and looks across 4 different viewports (Desktop, Laptop, Tablet and Mobile): Responsive Rock Paper Scissors Lizard Spock

Device Testing

  • The Rock Paper Scissors Lizard Spock game website was tested on several devices/environments (without any issues), including:
    • MacBook Air 13.3" M1 2020 (macOS Big Sur 11.5.2)
    • i5 Desktop PC (Windows 10 64x)
    • iPhone 11 Pro Max (iOS 14.8)
    • Xiaomi Mi A3 (Android 11)
    • Google Pixel 4a (Android 11)

Browser Testing

  • The Rock Paper Scissors Lizard Spock website was tested on several browsers without any issues (apart from Safari on iPhone 11 Pro Max - please see "Unfixed Bugs" section below):
    • Google Chrome (Version 94.0.4606.81 (Official Build) (arm64))
    • Mozilla Firefox (93.0 (64-bit))
    • Safari (Version 14.1.2 (16611.3.10.1.6))
    • Microsoft Edge (Version 94.0.992.50 (Official build) (64-bit))
    • Brave (Version 1.30.89 Chromium: 94.0.4606.81 (Official Build) (arm64))
    • Vivaldi (4.1.2369.21 (Stable channel) (arm64))

Fixed Bugs

  • The emoji state image disappeared from the live site when the website was deployed:
    • A wrong file path was being used for that specific image, once I deployed the site I couldn't see that image in particular - this was fixed once I changed the file path.

Unfixed Bugs

  • Buttons look stretched on iPhone 11 Pro Max (iOS 14.8) Safari 14:

    • When testing the website, a bug was found with the buttons' designs only on the iPhone device and Safari browser in particular:
  • iPhone 11 Safari Bug

Deployment

Credits

Content

Media

  • The website favicon.io was used to convert an image into a favicon.
  • The website tinypng.com was used to compress the images.
  • Many thanks to tulpahn for the Emoji Pixel pack images used for the emoji state images.

Other

  • Many thanks to my mentor, Gerry McBride, for his guidance and feedback.

About

Rock Paper Scissors Lizard Spock is an online, fun game of chance - with a twist!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published