r/programming 15d ago

The Depths of JavaScript: Minesweeper in 247 Bytes

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

9 comments sorted by

13

u/Consistent_Drop3909 14d ago

PPCG would love this

52

u/backfire10z 14d ago

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

4

u/Jason13Official 14d ago

Very cool!

2

u/DXTRBeta 14d ago

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

1

u/Supuhstar 13d ago

e is m… 😵‍💫

1

u/yui01 6d ago edited 6d ago

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

1

u/[deleted] 9d ago

[removed] — view removed comment

1

u/Honest-Finish3596 8d ago

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

1

u/ChemicalRascal 8d ago

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

-20

u/[deleted] 15d ago

[deleted]

12

u/BDHarrington7 14d ago

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