Giter Club home page Giter Club logo

milestone-project-24's Introduction

André's memory game!

In this project I created a memory game based on my knowledge of HTML5, CSS3, and JavaScript. During the creation of this project, I encountered several problems and new concepts that I have learned a lot from. I had to look up numerous new things that I had not previously experienced with, but I am happy with the result and it taught me a lot of new things (like the arrow function to name one).

I hope you enjoy playing my game. My intention when creating this game was to make a game that can help you train your brain and I think this does that very well as it is very difficult to keep track on which card is where while playing. The goal is to find all the matching cards with the least amount of flips!

UX

This game is for anyone that is interested in wanting to improve their memory or just to enjoy the game (and the beautiful pictures).

Features

My game is pretty straight forward. Once you load the game, you can just click on any card with the leaf on it and then try to remember where it is and thereafter find its' pair. (I included a litte description in the game itself aswell)

Techonologies used

I used HTML5 to structure the webpage. I then used CSS3 to style the webpage. Lastly I used JavaScript to implement logic to my game so that it would work correctly.

Testing

During the creation of my project I came across several problems that I had to solve. One of them was that if I clicked to cards to quickly after the previous two that were click, the first two cards would stay flipped (as a pair) regardless if they were a pair or not. To solve this I used the lockBoard function and set a timer on it so that new cards could not be clicked before the current ones were determined a pair or not, in which they would flip back and let me try again.

Another thing was that I noticed that the cards were always in the same order. To solve this I had to do a little research on how to shuffle the cards using the Math.random function, which I made work.. Eventually. I also came across a lot of new and useful properties that I made us of, like the transform: scale() and perspective.

Deployment

Had some trouble with deploying because I didn't specify the right repository in the beginning, so it was a little bit of a hassle to connect to a new one, but I managed and I am pleased with the result.

Credits

Media

The photos used in this site were obtained from pexels.com

Acknowledgements

I received the idea for this project from Code Institute's Milestone Project 2 ideas. I was struggling for a long time on where to go with my project, but the suggestions from the course really helped me settle at a memory game.

milestone-project-24's People

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.