Giter VIP home page Giter VIP logo

portfolio2-let-splay's Introduction

Let's Play Rock, Paper, Scissors, Lizard and Spoke

Rock Paper Scissors Lizard Spock is an extension of the classic game of chance, Rock Paper Scissors, created by Sam Kass and Karen Bryla.

Sam Kass explains he created the expanded game because it seemed like most games of Rock Paper Scissors with people you know would end in a tie.

Rock Paper Scissors Lizard Spock was first mentioned in the Season 2 episode, The Lizard-Spock Expansion, the title of which references the game. It was last mentioned in The Rothman Disintegration.

As Sheldon explains, "Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard, lizard eats paper, paper disproves Spock, Spock vaporizes rock, and as it always has, rock crushes scissors."

To play you must choose one of the available elements and the machine will choose another randomly. Then the result of your play will be shown according to the rules on the next screen.

You can access the page through this link

FEATURES

  • HEADER

    • The header is at the top and shows the name of the and the score that the user has, which starts at 0.

    • The name of the page corresponds to the name of the game.

    • The score will add a point when the user wins, it will remain the same when it draws and it will subtract one when it loses. If the user has reached zero, he does not continue subtracting but remains at zero until he wins again.

  • Game Board

    • On the game board, we find five images forming a pentagon.

    • Each of the images is of a different colour and corresponds to the different elements that we have to choose from.

    • When we pass over each image it has an animation that makes the image stand out from the others.

  • Result Board

    • This section shows the winner after the user chooses one of the options they have.

    • In the first place, a descriptive text is shown below the header of why it has won, lost or tied.

    • Below are the images of what the user and the CPU have chosen.

    • In the middle of the two images, the user's result is shown and a button that allows him to return to the initial game board in case he wants to play again.

  • Footer

    • This part shows a button that opens a modal window with the rules of the game.

TESTING

  • I have tested the game on Firefox, Microsoft Edge, and Chrome.

  • In all search engines, it works correctly, it also maintains the same font and dimensions to adapt to various devices. So it is confirmed to be responsive.

  • Tested on mobile devices, the game works. The user can interact with the game on a touch screen.

  • The dimensions are also correct. The letters are the right size for reading, the rules are explained simply and clearly.

  • The button images are clear and intuitive and they are the correct size. On mobile, you can interact and press buttons with ease and space.

  • I used the lighthouse test to confirm that the page is responsive, accessible and complies with the established standards for its correct operation.

BUGS

  • I ran into the following error in console: Failed to load resource: the server responded with a status of 400 ()

  • It occurred because in the imported link for the font when putting the weight I separated it with a quotation mark.

  • I solved it by putting "&" between 600 and 700 to separate both thicknesses.

VALIDATOR TESTING

  • HTML
    • I passed the W3C HTML Validator but with several warnings.

  • CSS
    • No errors were found when passing the W3C CSS Validator (Jigsaw)

UNFIXED BUGS

No unfixed bugs

DEPLOYMENT

  • I deploy the site on GitHub pages. The steps to do it were the following:

    • Firs in our GitHub repository, you must got to Settings tab

    • Once there, I from the source section drop-down menu and selected my main branch.

    • Finally, selecting the branch creates a link that takes me to my web page.

    • You can access the page through this link

CREDITS

Images

Media

portfolio2-let-splay's People

Contributors

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