hjr265.me / blog /

Memory Game in Less Than 100 Lines of JavaScript

With Toph, for me, the line between work and fun blurs.

I wanted to add a small in-browser game to Toph that would allow contest participants to pass the time while waiting for the contest to begin.

The thing about 100 lines of JavaScript is arbitrary. I wanted to make the most out of modern CSS features and use JavaScript only where necessary.

Without further ado, here’s the game:

You can find the source code for this game on GitHub. It is also available on NPM.


This post is 23rd of my #100DaysToOffload challenge. Want to get involved? Find out more at 100daystooffload.com.


comments powered by Disqus