loading...

MineSweeper Game In Vanilla JavaScript

twitter logo github logo ใƒป1 min read

I wanted to code a little game and I thought "why not MineSweeper", you remember, the old classic from Windows where as a kid we all didn't know how it worked? Yes, that one!

Here is what it looks like:
Alt Text

You can play the demo here ๐Ÿ‘‰ MineSweeper Game Demo

And if you're interested how I coded this, I uploaded the code to Github.

twitter logo DISCUSS (8)
markdown guide
 

Oh, thanks for that, man :)

But there is a bug with the menu - when I make game field big (in my case bigger than 15x), the menu goes above viewport and I can't scroll up to use it. Only page reloading helps

 

Hah, that's cool. I did the same thing a while back! codepen.io/ryandunn/pen/XXzbpp

Yours is much nicer though.

 

I won!
winner

well, it looks like I won. ๐Ÿ˜€๐Ÿ˜€

 
 

Congratulations Marc!

Outcome is sweet and it's really neat that you have developed it agnostically with really few dependencies ๐Ÿ‘

 
 

Lov it, this looks like a really fun side project!

 
Classic DEV Post from May 19 '19

Solving Puzzles With High-Performance JavaScript

Premature optimization is the root of all evil. It's also the root of this article. I like programmi...

Marc Backes ๐Ÿฅ‘ profile image
Web Developer ๐Ÿ’ป ยท Freelancer ๐Ÿš€ ยท Traveler ๐ŸŒŽ ยท Tech enthusiast ๐Ÿ™Œ ยท Espresso lover โœŒ๏ธ ยท Happily married โค๏ธ ยท Polyglot

dev.to now has dark theme. ๐ŸŒ

Go to the "misc" section of your settings and select night theme

P.S. You can also change font to sans serif, which a lot of folks prefer. ๐Ÿ’–

P.P.S. It's also the best place to talk code amongst thoughtful developers, and it's totally open source