Skip to content

Avatar: The Last Airbender Memory Game is a replica of the classic memory card game using Nickelodeon's Avatar The Last Airbender characters' images.

Notifications You must be signed in to change notification settings

Darnycya/Avatar-The-Last-Airbender-Memory-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avatar: The Last Airbender Memory Game

Avatar: The Last Airbender Memory Game is a replica of the classic memory card game using Nickelodeon's Avatar The Last Airbender characters' images, ReactJS, HTML and CSS.

Link to Play:

Click Here

Objective of the Game:

The objective of the game is to click on one card to flip it over and click on another to find it's match. The user does this until all of the cards on the board are matched and flipped over.

Benefits of the Game:

Playing memory games can improve other brain functions, such as attention, concentration, and focus. Memory games give space to critical thinking and that helps children nurture their attention to detail. Memory games also can improve visual recognition.

Timer:

I also installed a timer in the game so the user can keep track of how quickly they can win.

react-timer-hook

Modal:

There is also a Modal that pops up at the end of the game when the user wins.

In an onClick() function I included an if statement:

if (completed.length >= 11) { resetCompletedAfter(4000) toggle(); }

That checks to see if all of the characters are in the completed array and if they are the resetCompletedAfter() function that flipped all of the cards over and the Modal's toogle() function will be implemented:

function resetCompletedAfter(time) { setTimeout(() => { setCompleted([]) }, time) }

About

Avatar: The Last Airbender Memory Game is a replica of the classic memory card game using Nickelodeon's Avatar The Last Airbender characters' images.

Topics

Resources

Stars

Watchers

Forks