What is the Memory Game?
- Link view the live project 🏠 here
The memory game consists of fifth cards arranged randomly in a grid. The deck is made up of eight different pairs of cards, each with different symbols on one side.
Each turn:
- When it starts, you will have about 1.5 seconds to help you memorize the comics' characters
- A player flips one card over to reveal its underlying comics character
- The player then turns over a second card, trying to find the corresponding card with the same comics character
- If the cards match, both cards stay flipped over
- If the cards do not match, both cards are returned to their initial hidden state
- The game ends once all cards have been correctly matched
It is designed to have easy access on a range of devices, with simple navigation.
- 1 Theme: DC and Marvel Comics
- Sounds on winning or losing
- New record pop - up
- Keep record of top 10
Match cards in less time with less moves.
- Click on a card
- Keep revealing cards and working your memory to remember each unveiled card
- Match cards properly with less moves and in faster time
I manipulated the DOM with. JavaScript altered part of the HTML and style the game.
- Created a deck of cards that shuffles when game is refreshed
- Created a counter to count the number of moves mad by player and timer to know the duration of the play
- Added effects to cards when they match and are unmatched
- Create a pop-up modal when player wins or loose game
Languages Used
- HTML5
- CSS3
- jQuery
- JavaScript
- Bootstrap5
- Color Scheme
- The two main colors used are Black and white.
- Typography
- Default Bootstrap 5 web font family - reference
- Bootstrap 5.0.1
- Bootstrap was used to assist with the responsiveness and styling of the game
- jsDoc
- jsDoc was used as format to comment JavaScript code
- jQuery 3.6.0
- jQuery was used to make buttons and containers
- Git
- Git was used for version control by utilizing the IDE terminal to commit to git and push to GitHub
- GitHub
- GitHub is used to store the project after being pushed from Git
The W3C Markup Validator and W3C CSS Validator Services were used to validate every page of the project to ensure there were no syntax errors in the project.
- W3C Markup Validator - Results
- First Time players Goals
- Upon entering the game, user is automatically greeted with an easily visible center page panel
- Over the top of the panel tile figures, you can find number of moves in heart shape symbols, score and time left
- The player has the options to subscribe his name for further record
- The memory game was tested on Google Chrome, Microsoft Edge, and Safari browsers
- The memory game was viewed on a variety of devices such as Desktop, Laptop, IPhone7, IPhone8
The project was deployed to GitHub Pages using the following steps:
- Log in to GitHub and locate the GitHub Repository
- At the top of the Repository (not top of the page), locate the
Settings
Button on the menu - Scroll down the Setting page until you locate the
GitHub Pages
Section - Under
Source
, click the dropdown called “None” and select “Master Branch” - The Page will automatically refresh
- Scroll back down through the page to locate the now published site Link in the
GitHub Pages
section
- Clone the Repository
- Pen
index.html
file to view the project in your browser
- All content was written by the developer
- Logo custom made by the developer with Adobe Illustrator
- All images found [https://www.pinterest.ie/pin/277252920797320654/]