Giter VIP home page Giter VIP logo

rock-paper-scissor-3's Introduction

Rock, Paper, Scissors, Lizard, Spock Game

Responsiveness

Demo

A live demo of the site can be found here

Table of contents

User Stories

External user’s goal

  • The site’s users want to play an online game that has elements of chance.
  • The site’s users want to play an online game that has diffrent levels.
  • The site’s users want to leave a feedback.
  • The The site’s users want to play again.

Site owner's goal

  • The site’s goal is to provide a challenging game with increasing levels of difficulty to entertain online users.
  • To learn javascript.
  • To gain feedback.

Potential features to include

  • Pattern matching functionality
  • A limited number of tries before the game is over
  • A score tracking system
  • The ability to play against the computer

Design

Colour Scheme

The main colours used throughout the website are a mixture of rgb(255, 235, 205), #2b2a28, #7cc5e8, #f1ce32 and white.

Typography

Main fonts used are Verdana and Tahoma which are browser native and the Sans Serif as the fallback font in case of not being supported failure.

Images

only 2 images were used one for background and other to describe the rules.

Features

  • Main content

  • Header only has a clickable h1 element which main function is to redirect you back to the index page. header

  • Footer has only social links and contact link

  • The footer has 3 fontawesome icons for facebook, instagram and twitter and are connect to respective homepages.Footer stays at the bottom of the screen even if no content. Footer

  • Landing page Has only left whit 1 button in the middle of the screen to redirect you to the game page, rest being header and footer that contains the social links . Footer has only social links and contact link homepage

  • Game page has the game and its options both of which have simple style. Game option has 3 difficulties baing Classic(3 hands and 3 lives), Spock(5 hands 5 lives) and 99Lives(5 hands and 99 lives). Rules shows a div over everything showing the rules of the game and can be closed by either clicking on it or clicking rules button again. When game ends a play again button appears which brings you back to options.

  • Options has diffrent levels options

  • Maingame has score couter and ai choice is random Gamepage

  • Rules rules

  • Contact page i 1 simple form that sends me a mail with the form info and prevents embty submits. formpage

  • My simple mail.

mail

Features left to implement

  • Plan to change last of the difficulties to 8 hand moves.
  • Adding a top score board.
  • Increasing lives and difficulty settings.
  • Ability to change color options.
  • Adding more text to the game .

Technologies Used

Wireframes

Figma was used to a lesser extent to make wireframes. Wireframes are very simple only ment to show the layout. here

Languages

  • HTML
  • CSS
  • Pen, Paper and English
  • Javascript

Programs

  • little wireframes.
  • Pen and Paper wireframes.
  • Virtual code studio for code.
  • Git to store the code changes.
  • Github used to store the repository.
  • Fontawesome used for icons.
  • famicon.io for famicon.
  • Emailjs.
  • W3C Markup validation and W3C Jigsaw CSS validation.
  • JShint.

Testing

Basic user testing works.

Did not have time implement all changes.

Ran in to a lot of difficulties whit CSS which took up 50% of the coding time other half divided to 20% javascript and html, the rest 30% looking up info on emailjs tutorials and trying to implement my more radical ideas which sadly did not come to life since they were not written in plain javascript.

During testing box images did nothold size properly so had to add lots of media queries, buttons did not stay in place.

Multiple times javascript did return undefined. This was mainly caused by multiple ids whit same name or inline style not behaving.

The live site has been tested on Firefox and Chrome. The site has also been tested on several devices using dev tools to confirm that its responsive on all devices.

Validator Testing

  • HTML 2 warnings were returned when passing through the official W3C validator since they were left embty to store javascript values.

result

  • CSS no errors were returned when passing through the official Jigsaw validator

Here

Lighthouse Testing

I ran several tests in Lighthouse and noticed that the performance was high, the reason for this was that the actual content was 2 picture and a game. The score for Desktop was higher than for Mobile but I am satisfied with the results.

Light house

For more lighthousetests go Here

JShint

ran some test dont know why it gives error on emailjs

jshint jshint

Deployment

This site was deployed using GitHub Pages with the following the steps below:

  1. Login or Sign Up to GitHub
  2. Create a new repository named "medical-plant-site".
  3. Once created, click on "Settings" on the navigation bar under the repository title.
  4. Click on "Pages", on the left hand side below Secrets.
  5. Under "Source" choose branch you wish to deploy in most cases it will be "main".
  6. Choose which folder to deploy from, generally from "/root".
  7. Click "Save", then wait for it to be deployed.
  8. The URL will be displayed above the "source" section in GitHub Pages.

Credits

Content

Media

  • The image from the landing page was taken from bing

Code

I looked in multiple sites in order to better understand the code i was trying to implement.

The following sites were used on a more regular basis:

Acknowledgement

Self learned. Mentor Mo helped me to notice what was still lacking in the project.

rock-paper-scissor-3's People

Contributors

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