c/programming · by monica_b1998@lemmy.world · 271dMinesweeper game in 100 lines of pure JavaScript https://slicker.me/javascript/mine/minesweeper.htm34 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
Nice, the code is very clear !
monica_b1998@lemmy.world · 1 pts · 270d
thanks for the compliment!
allo@sh.itjust.works · 0 pts · 271d
Dave@lemmy.nz · 2 pts · 271d
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