@@furballisticfinn6881 Well, the answer is proportional to the reason we should never assume in life, just because carrot big leaf because small leaf carrot big not leaf big size
I think it's waiting for the particles that happen when you make a move on this version of the game to clear up as to not mess up what the bot is seeing since I assume it's tracking individual pixels
what's the point of placing flags? you can win the game just by clicking all the spots that aren't mines, flags are actually useless when you have effectively infinite memory
You’re absolutely right!! The way that I programmed the bot is that it constantly takes a screenshot of the current board and plays according to what it currently sees. This means that flags are important in this method since the bot always forgets its previous screenshot. My method is slower but it is easier to implement and debug. A better way to do it (as you pointed it out) would be to store the board in the computer’s memory and update the mental map after each move. This way, we can optimize the performance of the bot since it won’t need to rely on flags to know the location of each mine.
@@cossibility7019 ok, also how did you detect each tile? I'm having issues with what you said you did (check a pixel and see what color it is) because there are pixels that are on the number 1 and will work for it, but for a 4 or something, it'll just be the background color
What I did is that I took a specific coordinate where each specific tile has their unique pixel colour (I don’t remember the specific coordinate). One thing to be careful with this method, however, is that you have to take into account the particle animations of the game. Each time you click a tile, there are different coloured particles that appear on the screen which can ruin the screenshot. My cheap solution to avoid the issue is to wait a certain amount of milliseconds after performing each move (I wait for the animation to end). This solution is what mainly makes my bot slower. If you don’t want to wait for the animation to end, I believe that there are Python libraires that can deal with image detection (they can recognize similar images)
The PC that we once owned had minesweeper on it. It must have been glitched, or modded somehow, because there was one tile that completes the entire board if you click it first. It was always the same tile, so I was able to beat the hardest difficulty in 2 seconds. The rest of my family went crazy trying to figure out how I did this.
@@aakashxd9868 Clicking a cell reveals it. If said cell has a mine, you instantly lose. The goal is to open every non-mine cell. Every cell you've already opened will display a number on it. That number is how many mines there are in the 8 surrounding cells. Using this information, you can deduce which tiles have a mine and which tiles don't (in which case they're safe to open). Also, there's a thing called flags which allow you to mark tiles as having a mine (so you don't accidentally open them later).
That's because in fighting games they can't predict what the player is thinking as they have a consious mind, while here, they can predict as every code has a pattern, patterns are easy to predict therefore easier -🤓
@@xenird If you take the time it takes for the clear transition to complete (when you click an empty square), let's say it's 5 frames or about 83ms, then multiply that by however many times you'd clear, i'll lowball it and say its about 10, you get 833ms. 10 seconds might be too high but I don't think a bot can complete google's minesweeper in under a second. A minesweeper with no transitions however can be completed way faster, but it depends how open the field is aka how many clear squares you're clicking
simply be smarter than a human and not take the gamble, duh, it should leave it be until it has more information from other tiles being revealed around the initially troubling ones (this wasn't meant to be insulting btw, I was simply trying to play an arrogant personality as a joke)
@@MatiasRupp nope, not how minesweeper works. unless you’re on the last click, you just do another spot and wait until it brings you back toward that area with more information. you don’t have to take a gamble before the last click, and gambles on the last click are very rare.
To my experience, just pick on depend its spawn pattern Like a number got L-shape empty tiles | | x | | | | 3 | 2 I |1 | 1 ||||| then pick the x tile cus most of time (not always) will be a safe spot That spawn pattern usually occured so its high chance of safe Only do this when u actually no choice more than random pick, and hope its a good tile
I feel like this could be upgraded with concurrency. Right now the bot will first click a lot and then place flags, then repeat. It should be possible to do more things at once and with less waiting time in between
I think it's like, each tile's number is how many mines are in an immediate square around it. So if it's blank then all the tiles touching that one (including diagonal) are safe, and if it's 8 then every tile touching that one is a bomb. You then must use probability to guess which tile you should investigate next. Investigate a bomb and it explodes and you die
You try finding all of the mines by clicking tiles. The first click of the game is guaranteed to not be a mine, after the first click tiles are either blank or have a mine and if you click on a mine you lose. Blank tiles will have a number on them indication how many mine they are touching. A tile with 1 on it means it is touching 1 mine. 2 = 2 mines etc. You can place flags on tiles you think/know are mines until the entire board is cleared besides the tiles you have marked as mines.
@@Mik-kv8xx speed is not what i'm refering to. I mean patter recognition and that kind of stuff. A good Minefield player would have flaged more mines in some parts of the video and wouod also have cleared more spaces in some other parts. The bot is missing some stuff
@@Mik-kv8xx my arguments still applies and stands. The algorithm is missing some stuff. I'm not saying that it isn't good, that it is slow or that i can make a better one. I'm just saying that it can easily improve if some new patterns to recognize are added to it!
It’s interesting, as a human Minesweeper player, to see a bot alternate between opening ALL safe spaces and flagging ALL dangerous spaces. Super multitasking.
The bot didn't go faster because it uses screenshots to analyze the board and the particles flying around makes it hard to do so. So it has to wait a bit for the particles to disappear first.
I didn't think this was all that impressive until I realized the bot didn't have any special API access. It needed to take screenshots of the game and process the images constantly to understand what was going on, and calculate where on the screen to move the mouse to before clicking. That's a really cumbersome process to have to code.
Just wanted to ask, what libraries did you use for image detection and the mouse movements? This seems like a good project for beginning complex python learning.
Seems like it works on screenshots and thus dependant on the app's speed, thus oddly you can just kinda keep up with what moves it will do the next cycle.
You need to cut down that waiting time. I don't think the bot was thinking. I think the bot was like "Did I win? ...No" Edit: By you, I mean the programmer who made it.
@@bookle5829 Yeah umm so if you guys are curious, the reason why my bot is slow is kinda dumb and funny. So notice that in Google minesweeper, when you click on a tile, there is particle animations. These particle animations actually ruin the screenshot that the bot takes to detect the tiles lmao. So i just made the bot wait for the particle animations to end before taking the next screenshot. So basically, the bot is like “Are the particles gone so that I can take a clean screenshot… No” Using advance image detection libraries, I could probably cut the waiting time of the bot by making the bot guess tiles even if there are particles covering them. But yeah, I don’t feel like it cuz I’m working on a another project right now. 😅
@@cossibility7019 Instead of scanning for green tiles. Why don't you scan for pixel of the color of number 1, 2, 3, 4 in each tiles. You won't have to deal with the animation. Edit: fixing minor typos
As a Polish guy, you are right, i can win the game faster than this bot can due to the fact that i memorised all the patterns and know about right clicking
I’d imagine the bot is going back and referencing a screen capture after every step? In which case building its own 2d array of values would drastically reduce down time and bypass the need to place flags ingame
By left and right clicking a number while it has sufficient flags around it, it automatically clears all of the squares that can be cleared and are also neighbours of that number
What I don't get is when the water flows in and flowers bloom on the mines the flowers would set them off the have a hair trigger mechanism and and sort of vibration or any loud sound would set them off
Why do they call it oven
@@kupicx and of out hot eat the food
top questions science still can’t answer
@@furballisticfinn6881 Well, the answer is proportional to the reason we should never assume in life, just because carrot big leaf because small leaf carrot big not leaf big size
@@alexanderharrison7421 i guess you’re right
why not
i legit thought the video was called "bob destroys google minesweeper" for a second and I was like "damn this bob is cracked"
This made me laugh way too hard
Zamn
Bob's really talented
He has a good gaming chair
@@Wat-.- in what world would a cat destroy minesweeper this fluently
funniest part is that the legit world record is over 2 times faster at 57 seconds
The fact that it works is enough for me 😂😂
Funny how i got that RIGHT UNDER THIS VIDEO
That's the speed of python for you
It's clearly not optimized for speed XD
because the bot doesn't know how to chord
I find it funny that the bot keeps hesitating as if it's thinking lmao
I think it's waiting for the particles that happen when you make a move on this version of the game to clear up as to not mess up what the bot is seeing since I assume it's tracking individual pixels
If it didn't do that it could legit finish in 10 seconds
@Volzye It's not his theory, OC mentioned it in another comment
@Volzye yee I was just repeating what I remembered the vid creator said, i just said I think in case I said anything wrong
@Volzye You are completely and utterly wrong. You underestimate what modern PC's can do by a millionfold
He just has a good gaming chair.
Shhhh
Lol
Lamo
Bots dont have gaming chairs
@@The_Dr_Fate you got the joke right?
what's the point of placing flags? you can win the game just by clicking all the spots that aren't mines, flags are actually useless when you have effectively infinite memory
You’re absolutely right!!
The way that I programmed the bot is that it constantly takes a screenshot of the current board and plays according to what it currently sees. This means that flags are important in this method since the bot always forgets its previous screenshot. My method is slower but it is easier to implement and debug.
A better way to do it (as you pointed it out) would be to store the board in the computer’s memory and update the mental map after each move. This way, we can optimize the performance of the bot since it won’t need to rely on flags to know the location of each mine.
@@cossibility7019 ok, also how did you detect each tile? I'm having issues with what you said you did (check a pixel and see what color it is) because there are pixels that are on the number 1 and will work for it, but for a 4 or something, it'll just be the background color
What I did is that I took a specific coordinate where each specific tile has their unique pixel colour (I don’t remember the specific coordinate). One thing to be careful with this method, however, is that you have to take into account the particle animations of the game.
Each time you click a tile, there are different coloured particles that appear on the screen which can ruin the screenshot.
My cheap solution to avoid the issue is to wait a certain amount of milliseconds after performing each move (I wait for the animation to end). This solution is what mainly makes my bot slower.
If you don’t want to wait for the animation to end, I believe that there are Python libraires that can deal with image detection (they can recognize similar images)
Its only worth it if the bot knew about right clicking to uncover all the unflagged tiles
This is literally the entire game
"Why place flags when you can just not click mines"
The PC that we once owned had minesweeper on it. It must have been glitched, or modded somehow, because there was one tile that completes the entire board if you click it first. It was always the same tile, so I was able to beat the hardest difficulty in 2 seconds. The rest of my family went crazy trying to figure out how I did this.
Minesweeper god mode
@@user-vl3zf2qw1zuhm what in the real amogus
@@user-vl3zf2qw1z what the fuck
@@FrogGamePlay emojis from Ohio 💀
As a minesweeper player, I can confirm we play it by teleporting our mouse
‘Mineswapper’ lol
And yes, I definitely play mineswapper by teleporting our mouse
@@katdoestuffYT xD
can anyone tell me how to play this game
because most of the time i just click here and there randomly
@@aakashxd9868 Clicking a cell reveals it. If said cell has a mine, you instantly lose. The goal is to open every non-mine cell.
Every cell you've already opened will display a number on it. That number is how many mines there are in the 8 surrounding cells. Using this information, you can deduce which tiles have a mine and which tiles don't (in which case they're safe to open).
Also, there's a thing called flags which allow you to mark tiles as having a mine (so you don't accidentally open them later).
@@OverHeatVD thnx for the info buddy.. 😄
bots in fighting games: 🤡
bots in chess sudoku minesweeper and other games: 😎
That's because in fighting games they can't predict what the player is thinking as they have a consious mind, while here, they can predict as every code has a pattern, patterns are easy to predict therefore easier -🤓
@@hanzzxeditz the 🤓do be spitting facts tho.
@@hanzzxeditz 🤓 but respect
Then there’s bots in Fps games.
Bot also useful in tower defense game, especially the ones that need grinding like btd6.
For a lightly programmed bot this is actually pretty fast, pretty sure full programing can do this in like 10 seconds
See CodeBullet's version of this.
10 milliseconds
@@xenird If you take the time it takes for the clear transition to complete (when you click an empty square), let's say it's 5 frames or about 83ms, then multiply that by however many times you'd clear, i'll lowball it and say its about 10, you get 833ms. 10 seconds might be too high but I don't think a bot can complete google's minesweeper in under a second. A minesweeper with no transitions however can be completed way faster, but it depends how open the field is aka how many clear squares you're clicking
By a moment i thought the title was " boy destroys google's minesweeper", and i thought "danm, this boy is so good that his mouse is teleporting"
He should play osu! some time.
I’m sure we can agree that this bot is pretty good at making music
YES
no
google snake bot
Google: *rigs the system*
Bot: *rigs the game*
Google: Wait, that is illegal...
It’s not rigged though
What makes you think it's rigged?
@@CreeperMan-dr6ql replies to seven month old comment, misses the joke
A classic.
What would the bot do with 2 tiles both have 50% chance to have a mine? (I get that a lot when I play this game)
simply be smarter than a human and not take the gamble, duh, it should leave it be until it has more information from other tiles being revealed around the initially troubling ones
(this wasn't meant to be insulting btw, I was simply trying to play an arrogant personality as a joke)
@@thewaterleaf7929 sometimes you can't do anything logical but random
@@MatiasRupp nope, not how minesweeper works. unless you’re on the last click, you just do another spot and wait until it brings you back toward that area with more information. you don’t have to take a gamble before the last click, and gambles on the last click are very rare.
The bot starts having a seizure
To my experience, just pick on depend its spawn pattern
Like a number got L-shape empty tiles
| | x | |
| | 3 | 2 I
|1 | 1 |||||
then pick the x tile cus most of time (not always) will be a safe spot
That spawn pattern usually occured so its high chance of safe
Only do this when u actually no choice more than random pick, and hope its a good tile
It's freaking 4 in the morning and I'm watching a bot play minesweeper.
2x speed to give him the best gaming chair
The song when you beat google minesweeper slaps though
🤩🤩🤩🤩🤩🤩🤩
I feel like this could be upgraded with concurrency. Right now the bot will first click a lot and then place flags, then repeat. It should be possible to do more things at once and with less waiting time in between
He explained that bot works by taking screenshots. It has to wait so particle animations won't ruin the screenshot
@@adanakebap101 where did he explained, can you forward it please
@@azamatrustamov8687 look at spidernh's comment. Creator replied and explained it.
@@adanakebap101 Thank you a lot
I’ve always been confused trying to understand the rules but now it makes me even more confused
I think it's like, each tile's number is how many mines are in an immediate square around it. So if it's blank then all the tiles touching that one (including diagonal) are safe, and if it's 8 then every tile touching that one is a bomb. You then must use probability to guess which tile you should investigate next. Investigate a bomb and it explodes and you die
The number is the number of mines around it.
You try finding all of the mines by clicking tiles.
The first click of the game is guaranteed to not be a mine, after the first click tiles are either blank or have a mine and if you click on a mine you lose.
Blank tiles will have a number on them indication how many mine they are touching. A tile with 1 on it means it is touching 1 mine. 2 = 2 mines etc.
You can place flags on tiles you think/know are mines until the entire board is cleared besides the tiles you have marked as mines.
I used to play this in school for hours, great to see a bot do it in a few minutes :)
bot: i am god
The world record holder: *n o*
i still don’t even know how minesweeper works and this is just salt in the wound. dope bot
each number tells you how many mines are adjacent to that number
Ah yes now that we have located all the mines we shall turn this land into a marsh
Imagine the bot just finishing it then checking his search history
Would've been much faster if the bot right-clicked on the numbers instead of manually left-clicking the boxes.
We can't do that on Google's Minesweeper
@@ouwkyuha Yeah, my mistake. With Google's version, it should be both left-click and right-click at the same time.
Meanwhile, me: *dying on the second click on easy mode*
Just put flags in all the corners of the first big part you dig out
The fact that even a bot had to think
The way it spams flags is so satisfying
atleast ai wont replace humans playing minesweeper
"5 game endings no one has ever seen"
This was truely mindsweeping.
I got this video in my recommendation and i remember playing it when i was a child
This unironically made me understand how minesweeper works better than any explanation given to me
Now where’s the run where the game makes you guess where 2 bombs are in a 2x2 and the bot can’t calculate that
Why does this video low key make me anxious
The sound feels like some group do people are parading and then shooting from toy guns. 😂😂
is it odd to say I can keep up with the bot's line of thinking to an extent?
Nah, this bot isn't that good at the game lol
@@jestfullgremblim8002 don't be so harsh on it, if not for the animations it could be a good bit faster
@@Mik-kv8xx speed is not what i'm refering to. I mean patter recognition and that kind of stuff. A good Minefield player would have flaged more mines in some parts of the video and wouod also have cleared more spaces in some other parts. The bot is missing some stuff
@@jestfullgremblim8002 well,it's not an ai, just an algorithm
@@Mik-kv8xx my arguments still applies and stands. The algorithm is missing some stuff. I'm not saying that it isn't good, that it is slow or that i can make a better one. I'm just saying that it can easily improve if some new patterns to recognize are added to it!
It’s interesting, as a human Minesweeper player, to see a bot alternate between opening ALL safe spaces and flagging ALL dangerous spaces. Super multitasking.
how do we know you're a human
This is me avoiding legos in the dark for a glass of water.
thanks youtube for putting this on my reccomended
As a data structures programmer, I was surprised that the bot didn't go even faster. Maybe the code used the high time complexity traversal methods.
The bot didn't go faster because it uses screenshots to analyze the board and the particles flying around makes it hard to do so. So it has to wait a bit for the particles to disappear first.
Probably added a wait() idk
@@Something_Something_Some Are you talking about luau because I'm pretty sure thats the only language with the wait()
@@basicallyjusttan7727 Lua yes
@@Something_Something_Some Luau*
I didn't think this was all that impressive until I realized the bot didn't have any special API access. It needed to take screenshots of the game and process the images constantly to understand what was going on, and calculate where on the screen to move the mouse to before clicking. That's a really cumbersome process to have to code.
"The game isn't hard you're just bad" Minesweeper bot 2023
Plot twist: there is no bot but no one would believe that he is this good
🤗🤗🤗🤗
I only managed to beat hard mode twice only because the other times there were some spots that had to deal with pure luck guessing.
i don’t even know how to play minesweeper but that sure is music to my ears
as a fan of minesweeper i can say this is definitely a video
minesweep ASMR
How did the bot get those right at 0:59 ?
It basically guessed
This is like the equivalent of playing chess against your right hand with your left
It sounds like a little bird trying to learn to fly
Just wanted to ask, what libraries did you use for image detection and the mouse movements? This seems like a good project for beginning complex python learning.
Pyautogui
Good luck on your projects!
@@cossibility7019 Only pyautogui? I've tried that before, time to try it again!
@@doggo_woo yup only pyautogui for mouse movement and image detection!
@@cossibility7019 i will try to do a bot on dino game with pyautogui !
thx for the tip
wow, he's really good at the game! 😃
first time ever, actually seeing the end of mine sweeper in my life
bot: **spams**
bot: "gotta go afk and get some food"
bot: "im back"
*[repeats until it beats the game]*
While I have gotten a 63 second time in medium, making a bot is hard and everyone should appreciate the work and effort put in.
Listen to 1:52 at 0,25x
new music
Seems like it works on screenshots and thus dependant on the app's speed, thus oddly you can just kinda keep up with what moves it will do the next cycle.
This give me comfort since I thought 88 seconds are too much
Nice
This is low key satisfying to watch :0
Man he really is sweeping the mines
You need to cut down that waiting time. I don't think the bot was thinking. I think the bot was like "Did I win? ...No"
Edit: By you, I mean the programmer who made it.
I think that's only because of the programming software he's using, he can't really fix that currently.
@@ITS_MysteR Oh yeah whoops
@@bookle5829
Yeah umm so if you guys are curious, the reason why my bot is slow is kinda dumb and funny. So notice that in Google minesweeper, when you click on a tile, there is particle animations. These particle animations actually ruin the screenshot that the bot takes to detect the tiles lmao. So i just made the bot wait for the particle animations to end before taking the next screenshot.
So basically, the bot is like “Are the particles gone so that I can take a clean screenshot… No”
Using advance image detection libraries, I could probably cut the waiting time of the bot by making the bot guess tiles even if there are particles covering them. But yeah, I don’t feel like it cuz I’m working on a another project right now. 😅
@@cossibility7019 Oh alright lol
l hope someone can improve it
@@cossibility7019 Instead of scanning for green tiles. Why don't you scan for pixel of the color of number 1, 2, 3, 4 in each tiles. You won't have to deal with the animation.
Edit: fixing minor typos
Hello! I am from Uzbekistan. I'm 10 years old. I passed the game "Sapper" 3 years ago. It's not difficult, you just need to learn how to play it!
As a Polish guy, you are right, i can win the game faster than this bot can due to the fact that i memorised all the patterns and know about right clicking
@@midtisel4222 Если тебе не удобно писать английским пиши русским :) Я не Англичанин.
That's cool, and not to be rude but, what does this actually have to do with this video?
@@araserwhenthe and why they mention where are they from XD
@@midtisel4222 Non-polish guys: is it possible to learn this power.
Jesus Christ now minesweeper has a bot crisis
"Destroys" is generous
2nd! since the other guy said 3rd instead of 2nd
Let’s go! 0th!
The Coding Bullet : Don't mind me imma steal your code
I can hear squidward walking.
ngl they got some sick beats
What a good gaming chair.
Terminator playing google minesweeper be like:
I didn’t know google had a mine sweeper, I thought there was only snake
I couldn't even finish a quarter of this game. Wow.
Bros got some sick beats
How my classmates see I am playing minesweeper:
the day google added minesweeper was the day human productivity lowered by 97%
It has now become my goal every time I play google minesweeper to be faster than 117 seconds
"destroyed" is pretty generous
The fact they are not only good in chess but also on that
I’d imagine the bot is going back and referencing a screen capture after every step? In which case building its own 2d array of values would drastically reduce down time and bypass the need to place flags ingame
This looks cool to make
Middle mouse click opens up all adjacent squares as long as there are the correct number of flags adjacent to it.
Good luck with your channel
snek oh it wasn’t the snek eating appel
ok cool.
I love seeing bots bully old games
I don’t get how this game works but this really fun to watch
By left and right clicking a number while it has sufficient flags around it, it automatically clears all of the squares that can be cleared and are also neighbours of that number
I put this at 2 times speed and it literally just sounds like birds being chaotic
that was musical
Really cool bot! If it's not a problem could you tell on which programming language it was made?
What I don't get is when the water flows in and flowers bloom on the mines the flowers would set them off the have a hair trigger mechanism and and sort of vibration or any loud sound would set them off
After reading how you made it work, I no longer wonder why the ending was so slow.
Alternatively: bots sweeps minesweeper
The fact that the wr is much faster makes me happy
The sound effects sound like a rick role
Better than most of the asmr videos.
That one guy in multiplayer minesweeper
this is euphoric