Re:Haxing Minesweeper
by rashkov on Sunday April 08, 2018 @10:49AM
(#16786313)
There is one place where it's dynamic, which is that if your very first click is on a mine, then it'll relocate it to the upper-left corner (or the next available spot).
[ Parent
| on HN ]
Re:Haxing Minesweeper
by Spare_account on Sunday April 08, 2018 @12:26PM
(#16786839)
I'm now questioning my memory because I'm convinced I have hit a mine on the first click before ...
Maybe a clone?
I'm surprised it's done this way... I'd expect that it just doesn't generate the mines until the first click.
Nice.
I once wrote a “clone”[1] and when someone here pointed out the “first click is safe” feature, I implemented it by putting the reshuffle inside a while. Never thought of the first click as being “pre game”...
Modern versions of Minesweeper actually makes it so nothing _around_ your first click is a mine, so you always reveal more than one square.
https://guangcongluo.com/dminer/
is a version I wrote while trying to teach myself React.