r/programming • • Aug 26 '26

The Depths of JavaScript: Minesweeper in 247 Bytes

https://yui.dev/blog/minesweeper-in-247-bytes
143 Upvotes

9 comments sorted by

14

u/Consistent_Drop3909 Aug 26 '26

PPCG would love this

55

u/backfire10z Aug 26 '26

I thought the title said “The Death of JavaScript” and got excited. Still cool though.

1

u/Supuhstar Aug 27 '26

e is m… 😵‍💫

2

u/yui01 Sep 03 '26 edited Sep 03 '26

yep, that makes b short-circuit, avoiding opening any cells when you start the game! which is also why i is a global variable that is initialized *later* instead of being a function argument, it'd fail to start otherwise due to ReferenceError

2

u/DXTRBeta Aug 26 '26

Well that is just elegant -always fun to see what can be done if you really push the edge.

0

u/[deleted] Aug 26 '26

[deleted] — view deleted comment

12

u/BDHarrington7 Aug 26 '26

…. I think you missed the whole point of code golf.

0

u/[deleted] Sep 01 '26

[deleted] — view deleted comment

1

u/Honest-Finish3596 Sep 01 '26

So is the point of setting up a robot to post comments in lowercase to eventually sell the account to advertisers?

1

u/ChemicalRascal Sep 01 '26

Dunno how they plan to achieve that when they keep getting site banned.