Giter VIP home page Giter VIP logo

javascript-project2-game's Introduction

Brain Wizzz

Brain Wizzz memory game is a game that challenges people visual memory in order to match two cards to clear the board.

Welcome to Brain Wizzz Wireframes

Wireframes

The wireframes for Brain Wizzz were produced in Lucidchart. wireframe

Site Structure

Brain Wizzz Memory game website one landing-page and a pop up modal with game description and 3 difficulty levels to chose from.

  • Intuitve instructions modal -easy to use and understand.
  • Call to action: Encourage the user to take action.

Game Board

  • Cards: clickable, and turn on click.
  • Logic: if the cards match ,they will remain revealed.
  • Moves counter: after each move (when two cards turned) the counter updates.
  • Congratulations modal -when all the pair have been found this modal will pop up.
  • Call to action: encourage the user to take action. Chose a different level.
  • Refresh and ifor button will restart the game and the info modal will reappear .

Design

  • Font

The fonts chosen were 'Josefin' and 'Lobster'.The fall back is sans-serif. The two fonts chosen go really good together and it provides really good contrast .

  • Colour Scheme

The color scheme chosen is based on pink,purple and black .The colors are consistent throughout the website . Color-scheme

Features

Brain Wizzz website is set up to be easy to use . It contains features that a user would be fimiliar with ,such as game levels Easy,Medium and Hard.Also user will be able to see the moves he made,how many cards he matched and how long did he take to play. Landing-Page

Existing Features

  • Heading and Title

  • Includes the name of the game . Title

  • Game Area

  • Section dedicated to the game area board where all the cards are loaded for the purpose of playing and matching the cards. Depending on the level chosen it can be 8 , 12 or 16.

  • It includes a Refresh button with the purpose of reloading the page but also loading the game info modal. Game-Area

  • The Pop up Modal

  • Section controled with JavaScript that will pop up on loading the page for the user to understand the game and select the desired level of difficulty. Modal1

  • The Congratulations Modal

  • Section controled with JavaScript that will pop up on finishing the level and showing the results , for example the cards that have been matched ,time and how many moves.The player will also have a choice of a different level. Congrats

    Future Features :

    Brain Wizzz website will be definetly updated in the future with following :

    • Multiple player option will be added;
    • Performance stars will be added;
    • Best score and best time will be also added to the game
    • Timed mode: add a timer to make the game more challenging, i.e. finish game before timer runs out.

Technologies Used

  • HTML5 - provides the content and structure for the website.

  • CSS - provides the styling.

  • JavaScript-provides interactivity.

  • Gitpod - used to deploy the website.

  • Github - used to host and edit the website.

    Testing:

Brain Wizzz website has been properly tested ,all the code has been run through the W3C html Validator,W3C CSS Validator and JavaScript Validator. Minor errors were found on the first About us page. After fixing and retesting, no errors were found .

HTML validator results are :

  • Landing Page W3C Validator test result

CSS validator results are below:

CSS Validator test result

Javascript Validator results are below:

JS Hint Test: JS-hint

Javascript Validator test results

Responsiveness Test

  • The responsive design tests were carried out manually with Responsive Design Checker ,I can confirm that all the tests were passed. Responsive-design-checker-image-desktop Responsive-design-checker-image-mobile
  • The testing was also done through Google Chrome Dev Tools by selecting a device of your choice as follows :

Dev-Tools-image

Dev-Tools-Devices-image

Browser Compatibility

Brain Wizzz site was tested on the following browsers with no visible issues for the user:

  1. Google Chrome
  2. Safari
  3. Mozilla Firefox
  • Appearance, functionality and responsiveness were consistent throughout for a range of browsers and device sizes.

Known Bugs

  • Resolved

  • html 1 error - of empty heading. empty-heading-resolved
  • Favicon icon not loading into the console - fixed- the icon could not be found because of the name so renaming it fixed the error .

    Additional Testing

Lighthouse

The website was tested using Google Lighthouse in Chrome Developer Tools to test each of the pages for:

  • Performance - How the page will be loading.
  • Accessibility - Checking if the website is accessible for all users and how can it be improved.
  • Best Practices
  • SEO - Search Engine Optimisation. This helps us to understand if the website is optimised for search engine result rankings.

The results are as follows:

  1. For the Desktop:

Lighthouse-Desktop

  1. For the Mobile:

Lighthouse-mobile

Deployment:

The site was deployed to GitHub pages. The steps to deploy a site are as follows:

  1. In the GitHub repository, navigate to the Settings tab.
  2. Once in Settings, navigate to the Pages on the left side menu.

Deploying

The live link to the Github repository can be found here : https://mihayounas.github.io/javascript-project2-game/ .

To create a local clone of this project

The method from cloning a project from GitHub is below:

  1. Under the repository’s name, click on the code tab. Clone-img
  2. In your preffered IDE open Git Bash
  3. Change the working directory with the location where you would like your clone to be created .
  4. Type git clone and the paste the URL copied previously.
  5. Enter button to be pressed and the clone will be created.

Credits

Content

Media

  • The photos all came from Google

    Acknowledgements

The site was completed as a Portfolio 2 Project 2 (JavaScript+Html+Css)for the Full Stack Software Developer at the Code Institute. As such I would like to thank my mentors Precious Ijege, and Anton Zaharia for their help and support.

Mihaela Younas 2022.

javascript-project2-game's People

Contributors

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