@@GyroDragonaPlays Haha love to hear it! Yeah it's just one of the available options on 'Wallpaper Engine' on Steam :) If you've got it, search for 'Yoshi's Island' and you should definitely be able to find it!
Would love to see a modified version where the number of mines is unchanged, but your first click is always a mine. So it shifts/generates the map when you first click a tile to ensure you always fail on turn 1, the opposite of what it does now.
If I'm not mistaken, you've actually made the easiest second try minesweeper game. Game 1: lose and see it is all mines. Game 2: Flag every tile and win.
That's what I say expecting to see here actually; would be more suitable for an April fools joke as the average player wouldn't know it's a prank hahaha
The maximum number of mines in a 'normal' Minesweeper appears to be (h-1)*(w-1), where h and w are the height and width of the board size, respectively. (Haven't proven this, but seems to be the case from the examples you showed; Expert mode is 16*30, and 15*29=435.)
Ahh I think you're right, I just tried a 30*24 playfield (the largest possible) and the mine count was 667 (29*23). I was wondering if it was some kind of percentage or fraction but I couldn't get anything consistent; your formula seems to be correct.
@@MattKC Could it be patched to h*w-1, thus making the game an instant win. P.S. Has anyone tried restoring the original hard core version that wasn't in any windows release?
I made a Minesweeper clone for the Dreamcast a few years ago with the goal of making it as faithful as possible to the Windows 2000/XP versions. I also realised a simple formula for the mines cap, I think it was a certain percentage of the board must be non-mines or something. However, there was one thing that I couldn't recreate faithfully because I didn't analyse the code, that is the initial mine placement. I actually went with the first method you said where I go over each tile left to right, top to bottom. I thought about the "Pick a random tile" option, but it just seemed bad, after all for a big board with lots of mines, wouldn't it fail a lot of placements? Its kind of funny to see that's exactly what they did. It was really cool to see some of the internals of the original game, nice video :)
isn't going tile by tile like very bad? what if you reach the amount of mines your aiming for early? just have a no mines at the bottom? what if you don't reach enough mines? go back and do the other algorithm anyway?
@@jetison333 I had a varying probability. Its "num mines left / num spaces left" so as I iterate over the grid, "num spaces left" always decreases by 1 and "num mines left" will only decrease by 1 if we happen to place a mine on that tile. So if it keeps failing to place mines, eventually the probability would near "1" and so its more likely to place a mine there. Same thing if it keeps placing them, it will near zero so it becomes less likely and eventually impossible. The fields looks very random so I was happy with this approach. I never got any cases where there were too few or too many mines, nor all the mines bunched together.
@@Protofall ah I see. I suppose that makes sense. I'm going to have to have a think about that as opposed to the other method as they might actually be equally random. Thanks for the answer :)
Dave from Dave's Garage (the ex-Microsoft programmer) just shouted you out on his video, where he made a QR code application in Assembly. Collaboration time?
Might be neat to recode it to always force a bomb to be on the opening move. Having a full grid of bombs shows the player that they had no moves to begin with. Where as spawning bombs could lead them on to think they're just really unlucky. 😅
You know, since there's a function in the game that moves mines away from the first time you click a tile, it would be possible to reverse it, wouldn't it? To move away clear spaces and move a mine where you first click. That way, there could only be one mine and you would hit it every single game first click no matter what, would make for a funnier prank than every tile being a mine.
I always think your video concept will be so boring but your explanation and innocent curiosity is so engaging. Hacking assembly code is just the beginning. Excited for what's next!
I think the smarter move would've been to make it so that the first-click-is-safe thing was reversed to the-first-click-kills-u-everytime but with the number of mines still being whatever the user entered or the limit for each window size. That way people would at first think that they were just incredibly unfortunate to have clicked on a mine with their first click and then the realization would slowly set in that they would *_ALWAYS_* end up clicking on mines on the first click no matter how many times they tried. Just filling the whole playing field with mines makes it obvious immediatly that the game was tampered with.
"We end up in this kind of limbo state where all the tiles are both mines and not mines." So basically, just by screwing around, you inadvertently created Schrodinger's Minesweeper. Lovely.
Lovely. This takes me back to goofing around in my highschool programming class. Not as hardcore as reverse engineering x86 assembly, but I did mess with the teacher as often as I could. My piece de resistance was removing the window decoration and adding a "Close" button on a project that was positioned semi-randomly compared to the mouse cursor after the main program completed. 16 year old me was proud.
that gag you described also happened in windows 93, it just didn't look like there were mines everywhere, but you were always losing. it was called "troll mode"
Oh god, I haven't thought about YoshiToMario in years, I used to dig his Let's Plays for a short while beck in 2012! Great video, btw! Maybe next year you can find a way for their to only be one mine on the board but it's always the first click...: D
This is a great troll, Matt, but I think what would make it better is if you could hack Minesweeper so that it appears that all of the standard rules and mine limits are in play, but the game generates all but the last mine on the playfield and whatever space the player clicks on is _always_ a mine (basically turning the mechanisms Microsoft put into place with the game on its head). This way it makes it appear that the player is having the worst run of luck ever playing Minesweeper.
One time at summer camp I did minesweeper and was so pumped that my not-fast self could help in a relay race. I was not only disappointed that it was on easy, but I was surprised that people were surprised I finished it in under a minute
Hey sir I love your videos. How is the screenshot at 1:06 is possible knowing that is the first move the player picks turns out to be a mine, it autoselects another square until a free spot is selected?
I'm not a real programmer (tm) but this is an interesting window into reverse engineering/rom hacking. Starting from first principles and reading assembly, then climbing your way through to find context based on available resources/tools until you recognize what the program itself is doing
When I was young and had no idea how to play, I used to just press the buttons. But one day I managed to get the sunglasses smiley and had no idea what I'd done.
3:00 a more optimal way to do it if you want to avoid having to generate duplicate positions is to either use some type of white noise, or get an array of all valid coordinates, and pick a random index on that array, then remove that coordinate from the array, then you do that until you have enough coordinates. for example in python: (pseudo code, since I haven't tested if this exact syntax works... but I think it should work, or should be close to a working one) count = 10 HEIGHT = 10 WIDTH = 10 from random import randint positions = [[[x,y] for x in range(WIDTH)] for y in range(HEIGHT)] selected = [] for _ in range(count): i = randint(0, len(positions)) coordinate = positions.pop(i)
Have you thought about making making version of this on Windows Vista version of the game? Having all tiles being mines on this version will create a wave, which starts from the tile, which had the mine when clicked on.
It would be even more evil if you had a normal amount of mines but just replaced the first place the person clicked with a mine so it seems like they are just getting super unlucky every time
Explicitly explained and very fun to watched, tho I always wanted a fullscreen minesweeper game never saw if it was possible to do but it would be extremely funny to see all the bombs in a full screen minesweeper game
Id be interested in seeing a more subtly impossible version, something like it forcibly shifts a mine to be under the spot you click after a certain point
Windows 93 (when it still worked, but does not work correctly) had a minesweeper mode that the first click was ALWAYS a mine (but not the impossible mode) called "Troll mode"…
It would be flip the logic for the first click so no matter what you always click a mine and the rest of the field populates normally so it looks like youre just that bad you always click a mine 😂
A version that always has ambiguous tiles in the corner would be more evil. After you have almost solved the whole thing, you find out that the last corner is unsolvable and you have to guess 50/50.
I thank you, my friend, for making a version WE CAN ALL PLAY!
You made me feel so much better about myself ;D
I mean less 'play' more 'insta-lose'... but still, at least it's an even playing field! 😂
@@YoshiToMario lmao
I love the background on your PC desktop. Is there a place one could get that?
@@GyroDragonaPlays Haha love to hear it! Yeah it's just one of the available options on 'Wallpaper Engine' on Steam :) If you've got it, search for 'Yoshi's Island' and you should definitely be able to find it!
@@YoshiToMario haha
Would love to see a modified version where the number of mines is unchanged, but your first click is always a mine. So it shifts/generates the map when you first click a tile to ensure you always fail on turn 1, the opposite of what it does now.
that would actually be better as april fools since you could just say you removed the safety check and 'your luck's just really bad'
I recall playing that on some web browser parody site
Aaand time to learn hex code
I’ll trade you April fools minesweeper for a g boy
Jkjk
*unless?*
Okay leave
The game was rigged from the start.
heheheh that would have been a funnier April fools joke. Someone should do that and just see how long people play it before quitting in frustration
If I'm not mistaken, you've actually made the easiest second try minesweeper game. Game 1: lose and see it is all mines. Game 2: Flag every tile and win.
You probably have limited flage but I don't remember. The question mark things are probably limited.
I thought you win minesweeper by revealing all of the empty tiles and the flags are just tools to help you remember which ones you know are mines
@@TinyDeskEngineer I wonder if it checks the win state after you click, if it was just clicking every empty tile you'd win immediately.
@@TinyDeskEngineer you win by either revealing all empty tiles, or by having flagged every mine
@@weberman173 no. Flagging every mine does not win the game, since then with only a few tiles left you could just start flagging randomly.
"we end up in this kind of limbo state where all the tiles are both mines and not mines"
My man has created Quantum Minesweeper Processing
Schrodinger’s Mines?
@@Jay-S04 😳😳😳
*pannenkoek music starts playing*
Whoa whoa this brings Schrödingers cat to a whole new level xD
Quantum Processing by Riot
I would have liked to see if there was a way to hack it so ONLY the space you click on is a mine, every time you start a game.
Wow I want to see that too now lol
Do you realise you just gave Matt a new idea for a video?
@@MattKC Windows 93 has something like that.
That's what I say expecting to see here actually; would be more suitable for an April fools joke as the average player wouldn't know it's a prank hahaha
great idea now he must make it
An actually good Aprils Fools video, what a treat. Not just talking nonsense for some minutes.
Indeed.
Indeed.
Indeed
Indeed
Indeed
Now all we need is minesweeper where every tile is safe, except the one you click on. Then then nobody will be safe
(don't give him any ideas)
@@styno9295 (he's full of ideas and there's nothing you can do about it)
what about flags
exactly, totally aggre
"No infinite loop, not even any noticeable slow down. Just..."
*ad starts to play*
NEW POWERFUL NERF ACTION!
The maximum number of mines in a 'normal' Minesweeper appears to be (h-1)*(w-1), where h and w are the height and width of the board size, respectively. (Haven't proven this, but seems to be the case from the examples you showed; Expert mode is 16*30, and 15*29=435.)
Ahh I think you're right, I just tried a 30*24 playfield (the largest possible) and the mine count was 667 (29*23). I was wondering if it was some kind of percentage or fraction but I couldn't get anything consistent; your formula seems to be correct.
@@MattKC Could it be patched to h*w-1, thus making the game an instant win.
P.S. Has anyone tried restoring the original hard core version that wasn't in any windows release?
Which is why it's limited to 64 in beginner mode because 8^2=64
I made a Minesweeper clone for the Dreamcast a few years ago with the goal of making it as faithful as possible to the Windows 2000/XP versions. I also realised a simple formula for the mines cap, I think it was a certain percentage of the board must be non-mines or something.
However, there was one thing that I couldn't recreate faithfully because I didn't analyse the code, that is the initial mine placement. I actually went with the first method you said where I go over each tile left to right, top to bottom. I thought about the "Pick a random tile" option, but it just seemed bad, after all for a big board with lots of mines, wouldn't it fail a lot of placements? Its kind of funny to see that's exactly what they did.
It was really cool to see some of the internals of the original game, nice video :)
I think it was height-1 × width-1. Like 9 by 9 is 81 but there is 64 mi es because 9-1 is 8 and 8×8 is 64
@@_._shinonome_._ Yeah sounds about right, its been ages since I did this so I can't really remember anymore
isn't going tile by tile like very bad? what if you reach the amount of mines your aiming for early? just have a no mines at the bottom? what if you don't reach enough mines? go back and do the other algorithm anyway?
@@jetison333 I had a varying probability. Its "num mines left / num spaces left" so as I iterate over the grid, "num spaces left" always decreases by 1 and "num mines left" will only decrease by 1 if we happen to place a mine on that tile. So if it keeps failing to place mines, eventually the probability would near "1" and so its more likely to place a mine there. Same thing if it keeps placing them, it will near zero so it becomes less likely and eventually impossible.
The fields looks very random so I was happy with this approach. I never got any cases where there were too few or too many mines, nor all the mines bunched together.
@@Protofall ah I see. I suppose that makes sense. I'm going to have to have a think about that as opposed to the other method as they might actually be equally random. Thanks for the answer :)
Amazing!
Thanks for sharing it too!
How does this have 2 likes?
now 5! sup hugh?
Hello, Hugh!
How did you get here lol
Hugh! You’re here!
4:30 Schrödingers Mines
Schrödingers Tiles 😼
Woop, Ruffle got a shout-out! Super cool!
Glad to see this cool tech is catching on.
(I'm still making Flash games as a full time job in 2021!)
@Sharma Vivek It still is quite a few ways away from full compatibility but it's a start nevertheless.
It would've been funny to make a version that specifically makes it so your first click is always a mine but the whole board still generates
There is a funny parody project on Scratch which does exactly that
Sadly I think that project got taken down
Nothing better than waking up to a matkc vid
yup
In germany it’s 4:30 pm now lol
@@blackbird1665danish here 4pm as well my sleep schedule is just fucked
@@blackbird1665 Costa Rica pog
Nothing better than waking up.
Dave from Dave's Garage (the ex-Microsoft programmer) just shouted you out on his video, where he made a QR code application in Assembly. Collaboration time?
Yeah I support this :D
4:31 so it was schrodinger's mine?
Exactly what I thought
A day MattKC uploads is a happy day.
Yes
4:35 Schrödinger's tiles
For an April Fools' version, it would have been funny if only the first tile you clicked was a mine.
I'd like to play a version where all the tiles except one are mines, appropriately called "Russian Sweeper".
That's fucking genius
If you hit the mines your computer actually explodes
Most of the time when playing minesweeper that’s how it feels
the moving mario background, how does one get hold of that?
with "wallpaper engine". Its a few Euro on Steam and let you let .gif and videos as "Dynamic" backgrounds. One of the best pruchaset ive ever made
Perhaps it is also possible with rainmeter (free and open source desktop customization tool).
@@tarsverschelde maybe. Ive never heard of this tool.
@Sharma Vivek Lively is great
@@odeldodelhorst7549 thanks a lot. I have that already, will search for that background.
"we end up in this kind of limbo state where all the tiles are both mines and not mines"
So.... Quantum Minesweeper?
Didn’t expect to stumble upon Schrödingers Mine lmao
Might be neat to recode it to always force a bomb to be on the opening move. Having a full grid of bombs shows the player that they had no moves to begin with. Where as spawning bombs could lead them on to think they're just really unlucky. 😅
This was really interesting!! Thank you for the download! :)
1 day ago?
@@Pokeman_official1 member gets it early
LMAO you have no idea how funny it is when i got an ad right at 8:25 after he clicked🤣
Sameee
You know, since there's a function in the game that moves mines away from the first time you click a tile, it would be possible to reverse it, wouldn't it? To move away clear spaces and move a mine where you first click. That way, there could only be one mine and you would hit it every single game first click no matter what, would make for a funnier prank than every tile being a mine.
I would make it so there is only 1 mine, but whenever you press you hit this mine.
4:32 Schrodinger's mines
I was about to write this comment 🤣
I always think your video concept will be so boring but your explanation and innocent curiosity is so engaging. Hacking assembly code is just the beginning. Excited for what's next!
I think the smarter move would've been to make it so that the first-click-is-safe thing was reversed to the-first-click-kills-u-everytime but with the number of mines still being whatever the user entered or the limit for each window size. That way people would at first think that they were just incredibly unfortunate to have clicked on a mine with their first click and then the realization would slowly set in that they would *_ALWAYS_* end up clicking on mines on the first click no matter how many times they tried. Just filling the whole playing field with mines makes it obvious immediatly that the game was tampered with.
4:20 Schrödinger's Minefield
I have memories on it and clicking the boxes .
Imagine another version of unwinable minesweeper that always move a mine to the first tile you click.
0:52: The number of mines is limited to (height - 1) x (width - 1).
Idk why but I watch all of your videos at least 3 times. I find them relaxing in the mornings 🌄.
8:17 WAIT WHATS HIS WALLPAPER I WANT IT HELP PLS
Wallpaper name: yoshi's island
"We end up in this kind of limbo state where all the tiles are both mines and not mines."
So basically, just by screwing around, you inadvertently created Schrodinger's Minesweeper. Lovely.
9:35 what is the music in the background?
It'd be a lot funnier if instead of turning every tile into mines, instead turning whatever tile was clicked into a mine.
I made a mod that does exactly that!
actually, a WebOs called windows 93 has that. It has "troll mode", which i added to the windows EP minesweeper.
Old mattkc: video's every two weeks
New mattkc: f*** IT video's every month
Lovely. This takes me back to goofing around in my highschool programming class. Not as hardcore as reverse engineering x86 assembly, but I did mess with the teacher as often as I could. My piece de resistance was removing the window decoration and adding a "Close" button on a project that was positioned semi-randomly compared to the mouse cursor after the main program completed.
16 year old me was proud.
that gag you described also happened in windows 93, it just didn't look like there were mines everywhere, but you were always losing. it was called "troll mode"
My favorite cereal: "Oops! All mines!"
8:05
I watched this like five times already and I can't stop laughing XD
Oh god, I haven't thought about YoshiToMario in years, I used to dig his Let's Plays for a short while beck in 2012!
Great video, btw! Maybe next year you can find a way for their to only be one mine on the board but it's always the first click...: D
The minute you said just and paused an advertisement came up with fit perfectly with your vid congratulations for the vid man
Another excellent episode of "MattKC messes with old games"
This is what RUclips is supposed to be for, a completely pointless and silly idea turned into an entertaining video. Well done as always!
This is a great troll, Matt, but I think what would make it better is if you could hack Minesweeper so that it appears that all of the standard rules and mine limits are in play, but the game generates all but the last mine on the playfield and whatever space the player clicks on is _always_ a mine (basically turning the mechanisms Microsoft put into place with the game on its head). This way it makes it appear that the player is having the worst run of luck ever playing Minesweeper.
this
1:13 Where do I get that Wallpaper?
Gonna try this out fast, while it's still April 1st
What's your wallpaper at 1:00? I really like it
I love april fools videos that actually have some intelligent content instead of just some bait or trolling. Thank you very much! ^^
This just gave me a great idea...
can you make it so the first space you click is always a mine, but every other space isn't a mine?
1:00 the max number of mines you can get is simply (width - 1) x (height - 1)
One time at summer camp I did minesweeper and was so pumped that my not-fast self could help in a relay race. I was not only disappointed that it was on easy, but I was surprised that people were surprised I finished it in under a minute
You know its a great day when mattkc uploads
I have no idea why I love these videos so much, but I do! Please keep making them!
Hey sir I love your videos. How is the screenshot at 1:06 is possible knowing that is the first move the player picks turns out to be a mine, it autoselects another square until a free spot is selected?
I'm not a real programmer (tm) but this is an interesting window into reverse engineering/rom hacking. Starting from first principles and reading assembly, then climbing your way through to find context based on available resources/tools until you recognize what the program itself is doing
It's Schrodinger's Minesweeper!
Would it be possible to make an even more cursed minesweeper where only one tile is ever a mine but it’s always the tile you first click?
"Educated guesses and luck" IS Minesweeper
Are you able to flag bombs before your first click? If you flag every tile, do you win?
i still wonder who made the chiptune music or is there any link for it... oh well it's nice having a MattKC video for april fools tho
It isn't him, but look up _ensnare_.
I love your wallpaper
I love mine sweeper. It's such a fun and easy game.
Me when I opened minesweeper for the first time: "The numbers, Mason what do they mean?????"
You should port this to the Wii and utilize motion controls somehow. Maybe something like try to keep the Wiimote steady or the game ends.
I can't believe that you actually went through assembly just for that.... I had assembly x86 in uni and it's freaking hell
When I was young and had no idea how to play, I used to just press the buttons. But one day I managed to get the sunglasses smiley and had no idea what I'd done.
Matt, can I just say thank you for recommending Olive, it helped me with my videos.
LMAOOO AT 3:32 WHEN HE SAID "just" I GET AN AND LMAO
3:00 a more optimal way to do it if you want to avoid having to generate duplicate positions is to either use some type of white noise, or get an array of all valid coordinates, and pick a random index on that array, then remove that coordinate from the array, then you do that until you have enough coordinates.
for example in python: (pseudo code, since I haven't tested if this exact syntax works... but I think it should work, or should be close to a working one)
count = 10
HEIGHT = 10
WIDTH = 10
from random import randint
positions = [[[x,y] for x in range(WIDTH)] for y in range(HEIGHT)]
selected = []
for _ in range(count):
i = randint(0, len(positions))
coordinate = positions.pop(i)
Now that was fun to watch. Nice job!
3:31
bubble wrap
Have you thought about making making version of this on Windows Vista version of the game? Having all tiles being mines on this version will create a wave, which starts from the tile, which had the mine when clicked on.
5:18 Truth is, the game was rigged from the start
Huh. It's kinda weird how well I was able to follow along with this after playing TIS-100. The registers and math are legit!
God dude I never knew how to play it until I taught myself through sheer bored energy so I could play with all my friends at work
It would be even more evil if you had a normal amount of mines but just replaced the first place the person clicked with a mine so it seems like they are just getting super unlucky every time
8:20 you can have a moving background? I didnt even know thats possible
Explicitly explained and very fun to watched, tho I always wanted a fullscreen minesweeper game never saw if it was possible to do but it would be extremely funny to see all the bombs in a full screen minesweeper game
Id be interested in seeing a more subtly impossible version, something like it forcibly shifts a mine to be under the spot you click after a certain point
Windows 93 (when it still worked, but does not work correctly) had a minesweeper mode that the first click was ALWAYS a mine (but not the impossible mode) called "Troll mode"…
Bruh you made this too good that I don’t understand a second word every time
Love your music choice and source
you're lucky that it isn't a nintendo game, you'd be in a cage right now
4:00 background music from infinitode 2
It would be flip the logic for the first click so no matter what you always click a mine and the rest of the field populates normally so it looks like youre just that bad you always click a mine 😂
That background music at 3:55, is that from a Razor 1911 cracktro?
this guy could work for a cool assembly programmer but he hacking minesweeper and show it for us. respect
A version that always has ambiguous tiles in the corner would be more evil. After you have almost solved the whole thing, you find out that the last corner is unsolvable and you have to guess 50/50.
I have no clue what is being written in these videos but I like it.
I swear this game is literally my childhood
Ahh this brings so many memories back ❤❤❤
Why not use ghidra?
8:16 someone pls tell me how I can get this background
That's amazing man!
No idea you had that skill