Skip to content

felipetoffolo1/memory-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Awesome Memory Game

This is a classic memory game, the idea is just too have fun and use some JS. It is all made with only html, js e css. No js third-party libs

Play it here!!

How it works!

This game is made using ´OOP´ (Object-oriented Programing) Javascript.

Classes

Basically the game has to main classes Game and Card

Game

This is constructor is called every time we want to start a new Game. In there are all the game properties, as start time,number of moves, etc..

Cards

The Card class is used to add ao the Cards of the game. Each one with your icon and basic functions, as turn for example.

Style

The style uses mainly flexbox and media querys to be responsive.

Next steps

  • Build a leaderboard
  • Change the classes to es6 sintaxe