Giter Club home page Giter Club logo

rock-paper-scissors-game-11's Introduction

Rock Paper Scissors Game

This game can help you and those around you, make difficult or fun decisions. Why choose this computer game when you can do it directly with your own hands? Because you can't cheat in this game because the computer chooses randomly. And in this way, you avoid unnecessary misunderstandings and quarrels.

The target audience for this game is adults and children who want to learn and play a simple and fun game.

The responsive appearance of the website

Landing Page

  • Layout

The layout is designed so that the user can quickly and easily understand and use the pages and the game. The Landing page has the following feature:

  • Title, are the game name and It is easy to read.

Screenshot title

  • Game rules that are easy to read and understand. This can make the user finish reading and understand the game which makes the game more enjoyable for the user.

Screenshot game rules

  • Play button, takes the user directly to the game. Which opens in another tab. This makes it easy for the user to navigate. The button has the same design as the remaining buttons in the game.

Screenshot play button

Game Page

  • Layout

The layout is designed so that the user can quickly and easily understand and use the page. The Game page has the following feature:

  • Home button, is located at the top of the page. And it takes the user back to the Landing page in a new tab. The button has the same design as the remaining buttons. This facilitates the user's navigation on the page.

Screenshot home button

  • Game selection and points. On the left, the user's choices and scores are displayed. And on the right is the computer's choice and score. This makes it easy for the user to keep track of the progress in the game.
  • Game notification, announces who wins the round and the entire game. This clarifies the result for the user. The game message is placed below the user and computer score in the center in the screen.

Screenshot game overview

  • Game option buttons, are placed under the game message, with a prompt to make their choice. This makes it easy for the user to understand what to do. The game option buttons are designed with a background image of rock scissors or paper.

Screenshot option buttons

  • Restart button, is located at the bottom of the page. And it restarts the game. This makes it easier for the user because the user can restart the game whenever he wants. And no need to wait for the game to end. The button has the same design as the remaining buttons.

Screenshot restart buttons

Features I want to add

  • Images for the user's and the computer's choice.
  • Add so two users can play against each other.

Testing

  • I have tested that everything works and looks good on different browsers: Chrome, Edge, and Firefox.
  • I have tested so the page looks good on all screen sizes using devtools in browsers and https://ui.dev/amiresponsive.
  • I was confirmed that the colors and fonts I have chosen work well for ease of use. I tested this through friends' reviews and lighthouse in dev tools. See the result from the lighthouse below.

Mobile

 Screenshot lighthouse mobile

Computer

 Screenshot lighthouse computer

Validator Testing

  • Html

    • The html code was approved in the W3C validator.
  • Css

    • The css code was approved in the W3C validator (jigsaw).
  • JavaScript

    • The javascript code was approved in the JSHint JavaScript Validator.

Bugs

  • Solved Bugs

    • I had problems removing the text decoration on my link and it was because I used spaces. I wrote like this:
      a #btn-play
      but I would write like this:
      a#btn-play.
  • Unfixed Bugs

    • None.

Deployment

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

  • Log in to GitHub and click on the repository you want to deploy.
  • Select settings and click on pages to the left in the menu.
  • From the source section in the left dropdown-menue select branch main.
  • In the right dropdown-menu for folder select /(rot).
  • Click save and the page deploy after auto-refresh.
  • It should look like the picture below.

Screenshot deployment

The live link can be found here - Rock, Paper, Scissors Game

Credits

Content

  • For my Game select buttons, I've used a lot of the code from Code insintute "Portfolio Project Scope-video".
  • I also got some help with the game over function from my mentor and tutor.
  • My starting code I get from this youtube video
  • The code for the background-image linear-gradient did I get from W3Schools.
  • I have used Code-Institute-Solutions/readme-template for the srukture in the README.md file.

Media

  • The images for the selection buttons did I take from Pixabay.
  • The color did I take from W3Schools.

rock-paper-scissors-game-11's People

Contributors

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