Giter VIP home page Giter VIP logo

pokemon-memory-game's Introduction

Pokemon Memory Game

Pokemon Memory Game is game for children and adults. The goal of the game is to match the cards together that contains the same pokemon. The game is finished when all the cards with same pokemon are matched. The game let the user train their memory capability. The player can try to match the cards as many times as they want, without failing the challenge. The game has no time limit either. The player can take all the times needed to complete the challenge.

pokemon-memory-game-amiresponsive

Features

Page Title

  • The page title (h1) is placed on top of the game board. The title refers to the Pokemon slogan "Gotta Catch 'Em All". It also gives the player instructions of what the game is about.
  • The most common Pokemon colors are blue and yellow. That is why the title is styled with a yellow color.

page-title

Start of the game

  • Before the game starts all the 12 cards gets placed in random positions on the board.
  • All of the 12 cards have their back faced against the player. So the player doesn't know where the cards are positioned.
  • The card gets bigger when the player is hovering the mouse over it. This helps the player to know what card they are about to click on.

before-game

Playing the game

  • The cards flips over when the player clicks on it. The player can then see the Pokemon behind the clicked card.
  • The first clicked card stays revealed until the player has clicked on the second card. If the player find the matching Pokemon card, then both of the cards stays revealed. If the player choose the wrong card, then both cards flips back.

playing-the-game

Completing the game

  • The game is complete when the user has matched all the Pokemon cards.
  • The player knows the challenge is completed, when all Pokemons are visible.

completing-the-game

Features for the future

  • In the future when there is more time. I would like to add a time limit to the game.

Testing

  • I have tested playing this game on Chrome, Firefox and Safari.
  • I confirm that the fonts and colors are easy to read for the user.
  • I confirm that the game result are always correct.
  • I confirm that the game looks good and works on all standards screen sizes using the devtools toggle device toolbar.
  • I have run the website through lighthouse in devtool. The overall result is good. The game gets a lower score in performance because of all the images used in the game.

lighthouse

Bugs

Solved Bugs

  • When I tested the game in JSHint I got 11 warnings that I need to use 'esversion: 6' or Mozilla JS extensions.
  • I solved this issue by adding the following comment in my script.js file: /*jshint esversion: 6 */.

jshint

Validator Testing

htmlw3c

  • No errors were found when testing the css file in the W3C CSS validator.

cssw3c

  • Two unsolved warnings found when testing the script file in JSHint.

jshint

Unfixed Bugs

  • Two unsolved warnings in script. No unfixed bugs that affects the game.

Deployment

  • The website was deployed to GitHub pages. The following steps were taken:
  1. First log in to Github.
  2. Select Ehnvik/pokemon-memory-game from the repositories list.
  3. Select Settings from the Menu items.
  4. Click on pages.
  5. Change Branch: None to Branch: Main and then save.
  6. The page has now provided the link.

Pokemon Memory Game

Credit

Content

Media

pokemon-memory-game's People

Contributors

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