Minesweeper game in 100 lines of pure JavaScript

https://slicker.me/javascript/mine/minesweeper.htm

34 points · 5 comments · view on lemmy.world

5 Comments

Ludicrous0251@piefed.zip · 16 pts · 271d

"Coding this game in JavaScript is a lot of fun"

Quote provided without comment.

lascapi@jlai.lu · 1 pts · 271d (1 reply)

Nice, the code is very clear !

monica_b1998@lemmy.world · 1 pts · 270d

thanks for the compliment!

allo@sh.itjust.works · 0 pts · 271d (2 replies)
[ removed ]
Dave@lemmy.nz · 2 pts · 271d (1 reply)

Couldn't most people here could do it in one? The code is in the post and newlines can be removed like in minified javascript.

monica_b1998@lemmy.world · 8 pts · 271d

technically yes, although i use the "1 instruction per line" rule and give the number so that readers have a rough idea of the complexity of the solution