Coder Social home page Coder Social logo

rock-paper-scissors-lizard-spock's Introduction

Rock, Paper, Scissors, Lizard, Spock

A classic game brought to us by the hit TV show: The Big Bang Theory. A spin off on the still popular game of Rock, Paper, Scissors. The site hopes to entertain mostly a younger audience and get them familiar with the concepts of the game.

Features

Existing features

- Title

Introduces the user to the name of the game, and basic instructions urging them to try it out.

title

- Controls

The interactive elements where the user chooses which gesture he or she wants to challenge the computer.

buttons

- Game-Area

At first the rules of the game are displayed to show which gesture takes and is taken by other gestures. Then when the user starts the game by choosing a gesture, the images change, showing which gesture was chosen by the user and which gesture was chosen by the computer. This is the main element of the site.

game-area

It also shows the player score and computer score to keep tabs on whether the user is winning or not. The score is updated after each click on a gesture, starting the game. Here is also an element which declares who is the winner of the game.

game-area2

- Rules Refresh Button

If the user wants to get reacquainted with the rules of the game one simply pushes the button at the bottom of the site to get the initial introductory images to reappear in the game-area.

Rules Refresh Button

Features Left to Implement

- Highscore

A highscore element would increase the competitive aspect of the game and consequently the level of fun but it would require back-end code to store highscore data.

Testing

The site has passed through the appropriate testing channels without any problems. The Dev-tools Lighthouse test rewarded the site with high marks, testifying to its accessible and user-friendly layout.

Dev Tools Lighthouse

Save for some unadded or superfluous semicolons the validator testing did not discover any unsolved bugs or significant errors.

Validator Testing

- HTML

  • No errors were returned when passing through the official w3c validator.

- CSS

- JavaScript

  • No significant errors were returned when passing through Jshint.

Deployment

The site was deployed to GitHub pages. The steps to deploy are as follows:

  • In the GitHub repository, navigate to the Settings tab and then the Pages 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.

Live link to the site can be found here.

Credits

Content

  • The buttons and game-area in index.html as well as the const variables, eventListeners and runGame function were taken from the Code Institure tutorial on Portfolio 2 Project Scope.

Media

  • The grouped image was taken from this site.

  • The individual images were taken from this site.

Attribute Buttons, game-area in HTML and const variables, eventListeners and runGame function to CI tutorial of Portfolia Project Scope

rock-paper-scissors-lizard-spock's People

Contributors

martin-kod 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.