Memory Game
Last Updated:
In 30 Seconds
Memory Game is a simple browser game where players flip cards and match identical pairs before the timer runs out.
I built it while learning game development with vanilla JavaScript. It was one of my first games and introduced me to building interactive game logic.
Screenshot
Spark
After getting comfortable with small web projects, I wanted to build something more exciting. Games felt like the perfect way to practice programming while creating something fun.
While searching for game development tutorials on YouTube, I found a FreeCodeCamp video by Ania Kubów about building games with vanilla JavaScript.
The video contained several games, but the Memory Game caught my attention the most. So I decided to build it myself.
Journey
I followed the tutorial to understand how the game logic worked instead of simply copying the code.
As I built the project, I started changing parts of it to make it feel like my own. I redesigned the user interface, replaced the image-based cards with emojis, and added a countdown timer that freezes the game when the time reaches zero.
By the end, the project wasn’t just a tutorial anymore. It had become my own version of the Memory Game.
My Changes
Instead of recreating the tutorial exactly, I made a few changes that reflected my own ideas.
-
Redesigned the interface with my own styling.
-
Replaced image cards with emojis.
-
Added a countdown timer.
-
Froze the game automatically when the timer reached zero.
These changes were small, but they taught me that tutorials are a starting point, not the final destination.