Tap to unmute

Using A.I. to DESTROY Minesweeper

Share
Embed

Comments • 5K

  • @CodeBullet
    @CodeBullet 10 months ago +1469

    Your browser is holding you back. Level up with Opera GX: operagx.gg/CodeBullet4

    • @tokumei99
      @tokumei99 10 months ago +209

      Get a browser that’s literally Google chrome with a skin

    • @GG_1318
      @GG_1318 10 months ago +55

      they ruined it with the ui change

    • @MC5677
      @MC5677 10 months ago +31

      they ruined the ui and caused a ton of bugs

    • @bertkamen7657
      @bertkamen7657 10 months ago +234

      Staying with firefox and brave. I want to keep my data thanks

    • @GG_1318
      @GG_1318 10 months ago

      @bertkamen7657 they will steal data too no?

  • @JHuiL
    @JHuiL 10 months ago +9694

    code bullet on his way to shadow ban all operagx vpns

    • @alexpalaciossantos4940
      @alexpalaciossantos4940 10 months ago +268

      new speedrun

    • @chromiumos4114
      @chromiumos4114 10 months ago +24

      tor?

    • @pusnirizda88
      @pusnirizda88 10 months ago

      @chromiumos4114 Probably banned from the start

    • @nitro2914
      @nitro2914 10 months ago

      ​@chromiumos4114 Shadow ban them from the minesweeper website by getting the VPN IPs that Opera GX uses banned, since they're static per location.

    • @rian0xFFF
      @rian0xFFF 10 months ago

      @chromiumos4114 Almost all Tor Ip are already banned

  • @rawvegankid
    @rawvegankid 10 months ago +11373

    What I expected: funny code man doing minesweeper fast
    What I did not expect: a furious battle with an ancient bot detector

  • @obichan7492
    @obichan7492 10 months ago +32515

    I love how his code takes over his computer almost all the time and yet he never adds a kill switch XD

    • @UNKNOWN-u6c7i
      @UNKNOWN-u6c7i 10 months ago +2348

      What if the kill switch takes over the computer?

    • @obichan7492
      @obichan7492 10 months ago +2397

      @UNKNOWN-u6c7i knowing code bullets coding powers its highly likely now that i think about it

    • @aramis762
      @aramis762 10 months ago +1

      What if the kill switch makes the computer a killer?​@UNKNOWN-u6c7i

    • @killswitch2215
      @killswitch2215 10 months ago +79

      Hi

    • @codemob
      @codemob 10 months ago +292

      pyautogui, what he uses, already has a kill switch built in. It's move your mouse to the corner of the screen

  • @Amehdion
    @Amehdion 7 months ago +246

    The bot detector is probably just a captcha repurposed for mine sweeper. In other words its watching your mouse movements and how fast you are clicking a tile. If your mouse moves too perfectly, or you are clicking too fast for a human, it flags your submission and you get rejected.

  • @inkyisdreaming
    @inkyisdreaming 10 months ago +22162

    I love the BOT DETECTION on the decade-old competitive minesweeper website

    • @timehunter9467
      @timehunter9467 10 months ago +2323

      Better detection than most online games now too.

    • @AmrRahmyLive
      @AmrRahmyLive 10 months ago +2760

      It might just not be storing the data at all. Like it was bugged years ago and it's just defaulting back the scores because it can't update the database.

    • @genuinePerfectionist3746
      @genuinePerfectionist3746 10 months ago +857

      @AmrRahmyLive That would be funny

    • @apteryx
      @apteryx 10 months ago +455

      tbf, the creator of the site is the co-founder of a 11 billion dollar company

    • @ponfi0275
      @ponfi0275 10 months ago +46

      @apteryx ??

  • @voidanims
    @voidanims 10 months ago +2108

    Love that in less than 2 minutes it already destroyed everything

    • @Pepsiandmilkbutalsopalindrome
      @Pepsiandmilkbutalsopalindrome 10 months ago

      Shut

    • @venlocity2
      @venlocity2 7 months ago +1

      Ok so basically
      Board is set up, mines are hidden.
      You click a space, if bomb then boom you lose. If the space has bombs nearby the space will tell you exactly how many are next to it (across and diagonal). If the space has 0 bombs nearby then the board will expose the bubble of spaces that also have 0 bombs next to them, until a shell of spaces are formed with with the edge being made of pieces next to bombs. You have the option to mark spaces you are certain bombs are on.
      Goal is to expose all non-bomb tiles

  • @sirboredom1012
    @sirboredom1012 10 months ago +5597

    Alternate title: Chode Bullet vs Bot detection

    • @MegaMonkeVr
      @MegaMonkeVr 10 months ago +16

      That’s not how you spell code bullet 😭

    • @sirboredom1012
      @sirboredom1012 10 months ago

      ​@MegaMonkeVrI know

    • @tommy.eklund
      @tommy.eklund 10 months ago +153

      @MegaMonkeVr He spelled it like that in the video.

    • @Maceattac
      @Maceattac 10 months ago +5

      what bullet???

    • @sirboredom1012
      @sirboredom1012 10 months ago +42

      ​@MaceattacChode Bullet. His second pseudonym I believe, the one he used to try to get past the anti-bot system. Chode is also another word for big member, or someone who has a big member. I know it's not a Digby if you have to explain the joke, but imma leave this hear for the people like me who don't get jokes without the explanation.

  • @legithopecrew
    @legithopecrew 9 months ago +1300

    I play a lot of dnd, I love making maps and looking at map generators, that final set of speed shots of the super big minesweeper grids gave me the idea of using the bombs and numbers to create an elevation map of mountains and valleys. Idk why that came to mind but wanted to share.

    • @andrewdan4615
      @andrewdan4615 8 months ago +21

      Good idea!

    • @theleafguard116
      @theleafguard116 7 months ago +50

      It came to mind because it’s fucking genius.

    • @Ryan-qo9pr
      @Ryan-qo9pr 7 months ago +13

      That's fantastic!

    • @jasonbourne5702
      @jasonbourne5702 7 months ago +7

      That's how Battletech maps work

    • @Efra_EMX
      @Efra_EMX 7 months ago +6

      Slightly related, but I'm making a dungeon crawler based on Minesweeper. The main idea came from how Minesweeper definitely looks perfect for a procedurally generated dungeon map to my eyes as well 👀

  • @Taolan8472
    @Taolan8472 10 months ago +4275

    At 10:42 - "Someone has dethroned me on beginner?"
    It is technically possible to get a clear of 0.0 in Beginner, though the timer will still show 01. A single click can actually clear the screen on a handful of boards.

    • @guh69
      @guh69 10 months ago +573

      the thing is that the possibility that someone, somewhere, got an insta win run within the 5 second frame of code bullet submitting his run before it gets deleted is just too improbable. The "unknown" user is most likely his previous runs getting shadow banned

    • @gorgonix13
      @gorgonix13 10 months ago +81

      Technically possible on any of the board sizes, but y'know, probability and stuff

    • @cutchyacokov
      @cutchyacokov 10 months ago +68

      @gorgonix13 You can easily create a custom game where this is the likely outcome. I believe there are too many bombs for the amount of space even on Intermediate for this to be possible. I'd be astonished if there is any layout where this could happen on Expert.
      Edit: They could just be clumped all up on one side, as astronomically improbable as that is, so it's possible on any configuration. I'm dumb.

    • @Lurenara
      @Lurenara 10 months ago +22

      it's 2 clicks minimum, at least in original game - you can't click on bomb with your first click and you need to open at least 1 square
      i've seen that personally on beginner but never 1 click win

    • @zingers5121
      @zingers5121 10 months ago +12

      could be when the game checks for high scores it just puts the newer one in front of the old one if they are both equal, therefore the most recent one will be at the top

  • @ThatAcc
    @ThatAcc 10 months ago +2307

    It baffles me how, after so many many years, this mant can't for the love of code add a key to stop his own creation to take control over the computer.

    • @SquishyTheVampire
      @SquishyTheVampire 10 months ago +76

      Where's the fun in that?

    • @MrSmith-rk4jq
      @MrSmith-rk4jq 10 months ago +193

      stop key == hold power button. its already built into every program you write!

    • @Scnottaken
      @Scnottaken 10 months ago +15

      Just be happy it didn't frantically start clicking Ricardo

    • @En-Pea-Sea
      @En-Pea-Sea 10 months ago +42

      If it wasn’t obvious before, it should be now, Code Bullet will be the one that accidentally unleashes Skynet.

    • @CamoSquid
      @CamoSquid 10 months ago +4

      Mant😭

  • @dummkopfweeb
    @dummkopfweeb 10 months ago +1556

    Evan never has a killswitch ready when the code takes over his computer, hes like a reverse doofenschmirtz

    • @mifdsam
      @mifdsam 10 months ago +49

      But can he recognize a platypus without its hat?

    • @Mooie519
      @Mooie519 10 months ago +34

      @mifdsam only if he can program a primitive AI to detect it for him

    • @Embeiii
      @Embeiii 10 months ago +10

      Platypus the Perry?!

    • @JonatasAdoM
      @JonatasAdoM 10 months ago +1

      That's why he has the buttons!

  • @Malphorus
    @Malphorus 8 months ago +185

    1:25 ol malware'd myself 1-2, love it.

  • @aspzx
    @aspzx 10 months ago +5737

    I added IP-based bot detection to a very simple online game I made. The difference was that if your IP was banned then you would still see your score if you loaded the highscores from that IP address. This meant that any cheaters would see their name at the top of the leaderboard and then they would go away. Only legitimate scores were shown to other people. As far as I know, no cheaters ever figured this out but then it was a very small game.

    • @Legendendear
      @Legendendear 10 months ago +851

      Shadow banning but ethical

    • @aspzx
      @aspzx 10 months ago +687

      ​@Legendendear yeah, everyone's happy, even the cheaters. Of course it doesn't work if the cheater brags to their friend about their highscore but it was good enough.

    • @ypetremann
      @ypetremann 10 months ago +747

      I've seen a game where it switch hackers, cheaters and bots to a secondary server, so they play against cheaters and see the cheater leaderboard.

    • @iohk_1.6180
      @iohk_1.6180 10 months ago +447

      @ypetremann the cheaterboard, if you will

    • @tridinh1011
      @tridinh1011 10 months ago +73

      ​@aspzx implying cheaters have friends

  • @autumnsilverwinds4990
    @autumnsilverwinds4990 10 months ago +1937

    I must confess that I never learned how to play minesweeper, and this video did absolutely nothing to change that

    • @aluminiumsandworm
      @aluminiumsandworm 10 months ago +145

      you click squares randomly roughly 3000 times

    • @Q.A.D.D.
      @Q.A.D.D. 10 months ago +120

      It's real easy. The numbers show how many bombs are in the 8 tiles surrounding the number. That's it. The only rule. The rest is just logic and patterns.

    • @RhysWilliams-u3o
      @RhysWilliams-u3o 10 months ago +46

      ​@Q.A.D.D. it's a terribly simple game that is oddly confusing... even when explained as clearly as you did 😂

    • @Anxiolf
      @Anxiolf 10 months ago

      ​@RhysWilliams-u3obecause no matter how much you understand, you'll always be left with a 50/50 at least 1/3 of the time

    • @Juno_lps
      @Juno_lps 10 months ago +51

      I dont see how this video didnt help, he was very clear: make a code to click randomly for about 13 thousand years

  • @Dasher_The_Viral
    @Dasher_The_Viral 10 months ago +5586

    CB: "What's the lowest level shittiest AI you can think of?"
    Me: "Well, obviously it'd be one that just clicks the squares randomly."
    CB: "The plan is to pick a random tile... And click it."
    Me: *nods approvingly*

    • @IceMetalPunk
      @IceMetalPunk 10 months ago +293

      But it can be worse... it could randomly click the screen randomly, without even aligning to the grid! 😁

    • @DanielLCarrier
      @DanielLCarrier 10 months ago +172

      A shittier one would always click the same spot. If you get lucky enough, you'll win in one click.

    • @GhostGlitch.
      @GhostGlitch. 10 months ago +41

      @DanielLCarrier That was my thought. Just click the center square and reset if not won.

    • @teamworm5932
      @teamworm5932 10 months ago +23

      @GhostGlitch. It's about a 0.002% chance. Not exact but in that range

    • @commandertaboo7734
      @commandertaboo7734 10 months ago +18

      bogo sweeper

  • @sweatyhands9830
    @sweatyhands9830 6 months ago +26

    4:33 this is so cute xd

  • @QualityDoggo
    @QualityDoggo 10 months ago +495

    0:35 maybe that's the joke but most versions of minesweeper will not allow losing on the very first click; the game will rerun the random layout until a safe starting one is found

    • @IDontReallyWantAYoutubeHandle
      @IDontReallyWantAYoutubeHandle 10 months ago +36

      Neat factoid, but I think the randomised clicker was going too fast to properly see all the clicks lol

    • @scrapboy
      @scrapboy 10 months ago +2

      You can

    • @Golden_Pig64
      @Golden_Pig64 10 months ago +68

      fun fact: that's a common misconception! the official windows version of minesweeper (the most common version to play on, and the version used in the speedrunning community) doesn't regenerate the board automatically if your first click was on a mine. rather, it simply moves the mine to the first safe spot it can find starting from the top left.

    • @remalemadingdong
      @remalemadingdong 10 months ago

      ​@Golden_Pig64woah neat

    • @tristanridley1601
      @tristanridley1601 10 months ago +2

      @Golden_Pig64 So logically you should assume the top left is full of bombs more often than otherwise!

  • @Chlorate299
    @Chlorate299 10 months ago +1245

    The current leaderboard is hilarious:
    We've been
    Trying to reach
    You concerning
    Your vehicle's
    Extended
    Warranty.

  • @TheTigerus
    @TheTigerus 10 months ago +460

    Fun fact: Kamil Muranski name you can often see on the video is a polish player who officialy holds the minesweeper record on expert :)

    • @teamworm5932
      @teamworm5932 10 months ago +22

      JZE holds the record. Not Kamil. Hasn't been Kamil for years

    • @TheBrothergreen
      @TheBrothergreen 10 months ago +67

      It's easy to hold the top when you shadowban everyone who's better than you.

    • @Red-Tower
      @Red-Tower 10 months ago

      ​@teamworm5932the code that fills every spot with Kamil's name was probably written back when that was true, or is just a cute nod to a previous record holder.

    • @JingLiisnotreal
      @JingLiisnotreal 10 months ago +5

      I was wondering who was the insane person that just covered the entire leaderboard

    • @TheMetalButcher
      @TheMetalButcher 10 months ago +7

      @satagaming9144 Ah, the fortune of dedicating your formative neurogenerative years to **checks notes** Minesweeper. Cool.

  • @ThisB-q4x
    @ThisB-q4x 9 months ago +10

    12:17 mouse cursor tracking perhaps? That's how some captcha works, humans generally don't move the mouse in a straight line like a bot would

  • @PizzaMineKing
    @PizzaMineKing 10 months ago +386

    There is one more way to improve the guessing: pick the spot that generates the most information.

    • @jokerofspades-xt3bs
      @jokerofspades-xt3bs 10 months ago +77

      Nah that might need an IF statement, we can’t have that on our code bullet videos.

    • @realdragon
      @realdragon 10 months ago +4

      How does it work?

    • @PizzaMineKing
      @PizzaMineKing 10 months ago +35

      ​@realdragon Basically, if there is a bomb that could be in 1 of two spots, picking the spot that is most likely to determine in which of the two spots it is.

    • @Zambozoo
      @Zambozoo 10 months ago +29

      When forced to guess, it could also guess outside of the frontier if the probability of picking a bomb randomly is lower.

    • @PizzaMineKing
      @PizzaMineKing 10 months ago +1

      ​@Zambozoo That strategy usually leads to a 50/50 later down the line. Better to break those early...

  • @SalilingAway
    @SalilingAway 10 months ago +758

    Now imagine this advanced check is an Admin that just looks at new Highscores and booted CodeBullet every time cuz of the name

    • @loran1212
      @loran1212 10 months ago +58

      The closest to official leaderboards we have in Minesweeper, actually uses manual confirmation of all submitted times.

    • @Magic_beans_
      @Magic_beans_ 10 months ago +17

      Can’t be, he was quite clear he was Not Code Bullet.

  • @Mr.Game959
    @Mr.Game959 10 months ago +78

    11:52 the tax write off is crazy

  • @yagogalvermerx8466
    @yagogalvermerx8466 9 months ago +17

    12:37 (havent seen rest of video so i don't know if he fixed it) it would be some big brain shit for such a website but an option would be that it is iding like a component of your pc

  • @ifly6
    @ifly6 10 months ago +941

    Classic computer programmer solutions in order of choice:
    1. "Simulate every possible configuration and pick the best one"
    2. "Simulate every possible configuration except some bad ones and pick the best one"
    3. "Simulate every possible configuration except some more bad ones and pick the best one"
    4. "Simulate every possible configuration except some more bad ones (cached) and pick the best one"
    5. "Simulate every possible configuration except some more bad ones (cached) (x2) and pick the best one"
    ...
    1000. "Solve the problem analytically"

    • @Hypernova7777
      @Hypernova7777 10 months ago +3

      Yes

    • @DraykonVokelda
      @DraykonVokelda 10 months ago +42

      Sometimes you just gotta accept that the computer is smarter than you, and throw those smarts at the problem.

    • @skeetsmcgrew3282
      @skeetsmcgrew3282 10 months ago +77

      ​@DraykonVokelda Wouldn't it be more accurate to say that computers are way dumber than us and forcing it to use even a fraction of our analytical skills is extremely difficult?

    • @gidelix
      @gidelix 10 months ago

      @skeetsmcgrew3282 the way codebullet uses it, computers are really dumb, really fast.

    • @notlousybook
      @notlousybook 10 months ago

      what if a neural networked learned to beat minesweeper lol

  • @abbywiley6467
    @abbywiley6467 10 months ago +1763

    Just a word of advice when using pyautogui. It has a built in killswitch so if you just shove your mouse into a corner it kills the program. Even if you are moving the mouse really frequently you can almost always shove the mouse into the corner before it gets moved again.

    • @Bowger06
      @Bowger06 10 months ago +102

      I love that feature; had to use it a few times

    • @abdalahmohamed8957
      @abdalahmohamed8957 10 months ago +125

      or you can ctrl+alt+del and move the mouse and it'll kill it because pyautogui thinks about this as a different layer that it can't see

    • @realdragon
      @realdragon 10 months ago +6

      I didn't know that

    • @pacmonster066
      @pacmonster066 10 months ago +59

      Or you know, just add an additional key kill switch. It's like a few extra lines of code and gets around the very problem seen in this video where the cursor is out of his control.

    • @homerosz97
      @homerosz97 10 months ago +20

      Yeah, but if you can't move your mouse to the corner because pyautogui moves it somewhere so fast, you're fucked... So I heard

  • @Seldion_Ghost
    @Seldion_Ghost 10 months ago +846

    15:06 the AI getting stuck guessing a dozen times back to back here had me dying. The cursor is a nice touch and at high speed its even better. Funny imagining the AI actually just getting frustrated. Got super lucky to win so many 50/50 in a row

    • @luckyman4389
      @luckyman4389 10 months ago +13

      Not 50-50s but yeah

    • @livedandletdie
      @livedandletdie 10 months ago +15

      Those are worse than 50-50 mate... and there's situations where your starting tile is just a 7 or 8... which is horrible, and rare.

    • @luckyman4389
      @luckyman4389 10 months ago

      ​@livedandletdiedepends on situatuon could be 33% or could be 66%, but still yeah got a lot of those right

    • @laytonjr6601
      @laytonjr6601 10 months ago

      ​@livedandletdiethe best starting point is a corner. If you get something other than 0, you click another corner. Look up opening strategies if you want to learn more

    • @Golden_Pig64
      @Golden_Pig64 10 months ago +4

      ​@livedandletdienot quite as rare as you'd come to expect on a board of this size. even if the density is only 16%, the sheer amount of mines makes a 6 almost guaranteed to appear at _least_ once, and the probability of a 6 being an 8 is a little over 3%. wouldn't be all too surprised if one of the boards had one and we just never got to see it due to his code making finding an 8 impossible.

  • @Kyle-cx8oj
    @Kyle-cx8oj 7 months ago +27

    I’m not gonna lie they helped him so much by having advanced bot detection because it meant he could easily do his sponsor

  • @AIAdev
    @AIAdev 10 months ago +1088

    a human doing the giant minesweeper game is crazy. I imagine my weird uncle spending like 2 weeks working on it and then me and my cousins exit it to visit a website that plays fart sounds.

    • @apostatys
      @apostatys 10 months ago +124

      Not really, we used to play that size on the school computers, and you can get to the last few squares easily within like 20 minutes, its just that there is so much luck in actually completing it, that we've never succeded.

    • @gestaltmycelialconsciousness
      @gestaltmycelialconsciousness 10 months ago +52

      2 weeks??????? have you never played minesweeper?

    • @gestaltmycelialconsciousness
      @gestaltmycelialconsciousness 10 months ago

      @awesomepumpkin9507 on that site and that size you should only run into a situation that depends on luck every third or so game

    • @teamworm5932
      @teamworm5932 10 months ago +29

      The board he shows appears to be 99x50/900. This is not a particularly difficult board. Would take me about an hour of attempts to beat given. I've done 100x100/2184 which is considered to be about 100 times as difficult

    • @dascandy
      @dascandy 10 months ago

      There's a game on mobile called Antimine which has completion detection, so it guarantees a solvable board, and I've played 100x100 / 2000 something like 15 times on it, all scores under an hour, best was ~43 minutes.

  • @h7cdr
    @h7cdr 10 months ago +63

    14:58 the consecutive cussing is real LMAO

    • @Zack_Zander
      @Zack_Zander 10 months ago +3

      Second (or Third) AI Rage I’ve seen so far

    • @elizabethmelville48
      @elizabethmelville48 3 months ago

      The craziest part is that there the AI actually won! If you slow it down and stare at the top left corner, it got down to zero spaces left.

    • @yes_I_am_water
      @yes_I_am_water Month ago +1

      ​@elizabethmelville48 That's the count of flags left

  • @Amakratacjan
    @Amakratacjan 10 months ago +118

    This is what gets people into programming. Not the multi-billion parameters transformers, not the life-saving prediction model only a handful of people pretend to understand. No months of "training". Just. Click. The. Screen. I love code bullet

  • @NickMagee208
    @NickMagee208 7 months ago +13

    Anyone here after his guest appearance with Neurosama? I guess we know what’s he’s up to now

  • @profess_re
    @profess_re 10 months ago +559

    0:30 "hell, we don't even have any if-statements in this bad boy"
    *proceeds to add an if-statement

  • @Romanticoutlaw
    @Romanticoutlaw 10 months ago +44

    you've basically invented bogo sorting for minesweeper
    incredible

  • @BigBoct
    @BigBoct 10 months ago +52

    1:20 Evan loses control of his AI. Cracks me up every time.

  • @SebastianSpears-j6q
    @SebastianSpears-j6q 8 months ago +5

    12:58 AI LEVEL 4.

  • @Ari-8449
    @Ari-8449 10 months ago +908

    My god he lives

  • @daavocadoguy5733
    @daavocadoguy5733 10 months ago +438

    14:40 You know someone should make this as a screensaver

    • @RadieForge
      @RadieForge 10 months ago +11

      yea, i want it implemented into XScreenSaver which im using. [and yes im a linux user...]

    • @anotheranonhere
      @anotheranonhere 10 months ago +2

      ​@YTGuy2006 You still use X11?

    • @Gebenki
      @Gebenki 10 months ago +2

      I think there are too many static pixels but neat idea

    • @RadieForge
      @RadieForge 10 months ago +1

      @anotheranonhere i mean... Technically. i use LXQT which can support both X11 and Wayland.

    • @tigerofdoom
      @tigerofdoom 10 months ago +5

      ​@GebenkiI don't think modern screens have the burn in issues of older screens, so most people's screensavers are really just lock screen art

  • @patternpaper4940
    @patternpaper4940 10 months ago +12

    “This is probably the worst thing Germany has ever done.” Yeah you’re probably right

  • @LETUX_1
    @LETUX_1 7 months ago +64

    11:35
    Worst thing Germany has done 💀💀💀

    • @ghghg123
      @ghghg123 5 months ago

      it was a few people, not the whole Germany

    • @blubaylon
      @blubaylon 4 months ago

      ​@ghghg123 Well it was the whole Germany that voted a fascist into power lmao

    • @ghghg123
      @ghghg123 4 months ago

      @blubaylonye, thats true

    • @ghghg123
      @ghghg123 4 months ago

      @b@blubaylonbecause Austrian Painter did much good for Germany, but then started WW2

    • @blubaylon
      @blubaylon 4 months ago

      ​@ghghg123 No... 💀 He was a fascist from the very beginning

  • @happyeevee4955
    @happyeevee4955 10 months ago +192

    i love that the first one didn't even rely on clicking randomly it autosolved the instant one cell was clicked lol

  • @bastianossandon2576
    @bastianossandon2576 10 months ago +37

    11:36 LMAO

  • @sedatalizevit51
    @sedatalizevit51 10 months ago +33

    2:22 Sometimes, chimpanzees can write Shakespeare's one work.

  • @TheonlyTrainNoob
    @TheonlyTrainNoob 5 months ago +4

    10:57 Thanks, I am from Czech republic!
    Edit: 11:07 I hate you now!!!

  • @evanduty6150
    @evanduty6150 10 months ago +37

    @ 11:30 Don't make me baguette this
    how dare you

  • @WIGUY-q7r
    @WIGUY-q7r 9 months ago +172

    0:57 dude made the bogosort of minesweeper

  • @SlimThrull
    @SlimThrull 10 months ago +710

    13:41 That's likely not optimal play. If something is a 50/50 shot, you're MUCH less likely to hit a bomb if you pick another random spot on the board. (Assuming that there are still more squares than unknown bombs anyway.) So, if you get to a 50/50 situation, have it click on a square elsewhere. If it's not a bomb (which should be likely) you'll open up more of the map and get continue the program. Ideally, you'd get enough additional information to figure out if those 50/50s are actually 50/50 or if the can be solved.

    • @scragar
      @scragar 10 months ago +24

      Sometimes you just never can though.
      Like if you get this layout:
      F 2 2 F
      2 B B 2
      2 B B 2
      F 2 2 F
      Where F is a flag and B is blank then you can never tell which to click, there's always a 50:50 of any blank being a bomb or not.

    • @photoo848
      @photoo848 10 months ago +55

      @scragaronly at the end is their point. Early or mid-game just click a random tile elsewhere. It's odds are better than 50/50

    • @dragon10086
      @dragon10086 10 months ago +11

      Just cause theres 2 possibilities (bomb or no bomb) doesnt mean its a 50/50 probability. There could be a 10% chance that theres a bomb and 90% chance there isnt a bomb based on all the possible scenarios where in 9 of those theres no bomb

    • @1vader
      @1vader 10 months ago +10

      Additionally, it also needs to consider the bomb count for optimal play.

    • @BobMcBobJr
      @BobMcBobJr 10 months ago +18

      @scragar So, firstly, I assume you mean 2s not 1s, in which case, yes, this is a true 50/50 scenario. BUT, some cases that CB didn't account for you would have a 50/50 between two squares but, clicking randomly on the far side of them would get you a 20/80 or whatnot based purely on the tile to bomb ratio.
      Anyway, he wasn't really looking for win percentage but speed on the ones he did win.

  • @GokantheHusky
    @GokantheHusky 6 months ago +3

    "This is the worst thing Germany has ever done, I think."
    I just love how nonchalant that statement was.

  • @AurL_69
    @AurL_69 10 months ago +272

    The Opera VPN ban evasion was the smoothest sponsor placement I've ever seen

  • @aarav855
    @aarav855 10 months ago +579

    At (11:42) "This is the worst thing Germany has ever done" 💀

    • @RegularDan1
      @RegularDan1 10 months ago +31

      Why is no-one talking about this 😭

    • @backupplan6058
      @backupplan6058 10 months ago +6

      @RegularDan1 because we don’t mention the wa…bot detection.

    • @TomRibbensUC
      @TomRibbensUC 10 months ago +16

      @backupplan6058 There is no bot detection in Ba Sing Se

    • @daminox
      @daminox 10 months ago +6

      ​​@RegularDan1 Because everyone else got the joke.

    • @Dudebuthandle
      @Dudebuthandle 10 months ago +2

      Yeah bro ww2 is a baby compared to this

  • @AlanDiaries-108
    @AlanDiaries-108 10 months ago +33

    4:08 Didn't expect a surprise Code Bullet's face reveal

  • @yiko_fishy
    @yiko_fishy 7 months ago +3

    This is what ai should be used for

  • @blackheart2728
    @blackheart2728 10 months ago +64

    Don't know if anyone else has said it yet but;
    At the higher tiers, knowing how many bombs are left CAN be helpful for statistically determining how many are in a cluster and narrowing down the possibility space of where they can be. It's niche but it shows up in the BIG maps fairly often

    • @james_wasson
      @james_wasson 8 months ago +1

      I was going to comment the same thing.
      Adding even more complexity is that it can be mathematically more sound to, depending on the situation, select an internal tile. You must weigh the advantage of gaining new knowledge vs. selecting an easily known statistic.
      I'm sure there are ways to calculate the chances of either but it would be a hard problem, especially when you consider future choices and how your current actions affect your next selection.

    • @james_wasson
      @james_wasson 8 months ago

      To calculate the stats you would need to sum the average number of bombs for each stronghold on the edge. Subtract that number from the total, then divide but the new amount by the total number of internal squares to give you the percent chance of hitting a bomb inside any given stronghold.
      From that point if the odds favor you, you can select the tile that is most influential that is 1 tile away from any edge. An influential tile is one that has the most cleared tiles within 2 tiles of it, so like a corner piece or peninsula.

    • @james_wasson
      @james_wasson 8 months ago +1

      For the percentages I mentioned you would likely need to weight the percentages since the internal selection doesn't always give positive information. You could do that by using an AI to select the percentage based on the number of internal squares, edge squares, and average bomb chance for a given stronghold, you should also include the number of bombs left and total average bomb chance. This would mean that certain strongholds (even when there are multiple) can be selected for independently.
      If you used a simple feedback model you could likely curve match some mathematical formula reduce the space used and potentially speed things up. I wouldn just train the model and use the matrix to produce a good output.

    • @shawnwhite860
      @shawnwhite860 8 months ago

      @james_wasson I don't think you can optimize it all, right? Every configuration of bombs has an equal probability; so you have to consider every configuration that matches the revealed spaces; which would be a function of n factorial. For each bomb state, after any click we have a new bomb state and need to consider which bomb states are still possible. But to choose the best click we need to know every reveal state and the probability that the new state is solvable. So we end up needing to consider all possible click sequences across all possible bomb states. We can algorithmically prove certain choices are bad without completing the tree; but so many of them are going to be so similar I don't imagine we can ever trim it down to only a few candidates until the very end. The partially revealed edges prevent any sort of symmetry. So I think the best optimization you could achieve is a neural net trained on the possibility trees for smaller or more revealed boards?
      At least, I kinda think that's the case... I'm not very sure.

  • @Boldra
    @Boldra 10 months ago +122

    algo suggestion: The spots where you're most likely to have to guess are the edges and corners. Begin each game by guessing a dozen squares on the edge. Most of these games will fail, but they will fail quickly, so you will have more total games. The ones that won't fail aren't as likely to need guesses.
    Also in general, if there's an area where guessing is required, don't postpone it, guess immediately.

    • @Sheldor3001
      @Sheldor3001 9 months ago

      But sometimes you can guess in late game to correct answer by counting the rest of bombs. Sometimes its 1 or two in an area. If u guess immediately you have lower chance. But with 50/50 areas i agree!

  • @plsroux6132
    @plsroux6132 10 months ago +116

    YES i KNEW that i saw "Not Code Bullet" in the leaderboards and that it was code bullet, and the video is finally here!11!1!1!1!

  • @MindSweep009
    @MindSweep009 8 months ago +9

    3:00 1 in 1,878,392,407,320

  • @obamabingchilling
    @obamabingchilling 10 months ago +47

    AI codebullet has gotten so advanced, its almost as if he's still here with us. Fly high Evan 🕊

  • @infinity7117
    @infinity7117 10 months ago +106

    Please upload a 10 hour video of minesweeper automatic solving animation screen saver / destroyer for everyone's delight. Thank you 😂 14:38

    • @mrtrncrGD
      @mrtrncrGD 7 months ago +2

      This is not sped up lmao

    • @chadaschu
      @chadaschu 7 months ago +5

      @ErenCubesOG14:24 „10x speed“. Nothing else to add.

  • @Jango1989
    @Jango1989 10 months ago +82

    Love this. The concept, the dancing, the montages, the emitting, the failing to add a kill switch every time. 10/10.

  • @BrunchOfTheBunch
    @BrunchOfTheBunch 6 months ago +2

    10:46 As a Croat, you should indeed believe in us,

  • @williamchappell4678
    @williamchappell4678 10 months ago +58

    I was a mine sweep feind in HS. When I got to the point where guessing was needed, you can calculate a better probability of likelihood of a bomb by counting remaining bombs and remaining possible spaces.

    • @VV-rk3wu
      @VV-rk3wu 10 months ago +1

      But does that actually help with choosing among the remaining spaces? Sure, it gives a probability overall, like let's say there are 4 spaces remaining and one of them is a bomb, OK so 25% chance overall, but if the clues don't settle it how does the bomb count settle it? I can only think of the situation where you've actually found all the bombs and should open the remaining spaces with 100% confidence, then the count being 99/99 or 40/40 or whatever would help. (Also btw fiend not "feind"...)

    • @iamjorj
      @iamjorj 10 months ago +1

      @VV-rk3wu sometimes endgames are possible using minecount, but in most cases you'll find either a guess scenario not in endgame so minecount doesn't help, or a true 50/50 (or stuff with worse odds, 50/50s are just the most common).

    • @VV-rk3wu
      @VV-rk3wu 10 months ago

      ​@iamjorj Ah, I think I am probably forgetting some patterns where it's possible the same clues can be solved by either 1 or 2 mines, and then maybe the count can provide a hint towards which direction has higher probability overall (fewer mines vs. more mines) and give a slight preference.

  • @krxzy5005
    @krxzy5005 10 months ago +235

    I'm Krxzy on that all time expert leaderboard and it basically flags any score on expert/intermediate all time that the guy that made the website makes sure isn't a bot or something.

  • @NorbYyY_GG
    @NorbYyY_GG 10 months ago +125

    "Finland! I choose you!" Bro was sending it out into battle against a charmander or something 😭🙏

    • @capta1nseal
      @capta1nseal 10 months ago +2

      finland mentioned 🗣️🔥
      true tho

    • @PhotonBeast
      @PhotonBeast 10 months ago +1

      I was hoping he would save the follow up "I'm finished with you" for Finland as well. For the punny.

    • @xiaolin867
      @xiaolin867 10 months ago +1

      >"bro"
      >use of crying and praying emojis
      Zoom on, zoomer

    • @Farce13
      @Farce13 10 months ago +1

      Congratulations on finding the joke

    • @Djellowman
      @Djellowman 10 months ago

      Fr fr lil bro no cap ong

  • @CarotLover
    @CarotLover 7 months ago +2

    50% actual ai stuff 50% battle for the score

  • @obamabingchilling
    @obamabingchilling 10 months ago +55

    Now all that's left is to put the AI into a robot and let it lose in Cambodia

    • @perpetualcollapse
      @perpetualcollapse 10 months ago +7

      It took me a while to understand the joke 🤣

    • @cirowo9
      @cirowo9 10 months ago +13

      Bosnian minesweeper: flag flag flag flag flag flag flag 8 flag flag flag flag flag flag flsg flag flag

  • @kaydubsthekoifish
    @kaydubsthekoifish 10 months ago +15

    4:44 okay that was a surprise I was not expecting

  • @paulcrandall2534
    @paulcrandall2534 10 months ago +20

    It's like watching a computer defrag back in the day. Very satisfying.

  • @Hydrower
    @Hydrower 7 months ago +7

    11:05 as a Czech Republic Resident, im just saying: grrrrrr😡

  • @NochEinKommentator
    @NochEinKommentator 10 months ago +19

    There is still room for improvement. 14:24. AI is guessing but look to the left of the mouse pointer there is a 231 at the edge of the game.
    S and SW of the 3 only one bomb is possible because otherwise there would be 3 bombs for the number 2.
    So SE (below 1) must be marked. Then S is safe to click. This solves the problem without guessing.
    Either the search does not work correctly, or it guesses before all possibilities have been checked.
    I think guessing should only be started when all other possibilities on the whole map have been checked. This will generate the most information before guessing.

  • @TotoDG
    @TotoDG 10 months ago +9

    Reading the captions at 14:00: **WHAT**

  • @johnyesjustjohn
    @johnyesjustjohn 10 months ago +57

    1:13 I'm old enough to remember when using the wrong GOTO command in BASIC would require a hard reset. 😄

  • @ShellyRLS
    @ShellyRLS 2 months ago +1

    "This is the worst thing Germany has ever done I think" 💀

  • @andrasfogarasi5014
    @andrasfogarasi5014 10 months ago +1235

    14:17 "There really is no way of improving the AI from here"
    Yes there is.
    1. Firstly, you said that the AI picks the square that is safe in the most configurations. This is not actually mathematically correct. The assumption that every configuration has the same probability of occurring WOULD be correct if we didn't know the remaining bomb count, but that is not the case. If we are given the bomb count, then the likelihood of a configuration will increase or decrease based on the number of bombs in it. The numbers are not difficult to work out, but assuming a large number of undisturbed tiles and a remaining mine density of P, it turns out that a configuration having 1 more bomb multiplies its relative probability by about P/(1-P).
    2. Secondly, it is incorrect to assume that always clicking the immediately safest tile will produce the highest probability of winning, since moves can affect the future board state. For example, there might be a case where there are two reasonable tiles that could be clicked. One is probably safe, but revealing it (and not dying) would not produce any information about the other tile. The other tile is less safe than the first, but it's highly likely that after clicking it, we would learn the first tile's state. In such a case, clicking the first tile would be a mistake, since we would later be forced to click the second tile anyway, so it simply introduces additional risk. Clicking the second tile instead, we would, assuming we don't die, be able to safely continue the game without ever being made to take a risk with the first tile. Such situations are not uncommon in Minesweeper.
    So in the end, an optimal Minesweeper engines have to inevitably implement an algorithm to calculate ahead a few moves. Yes, it is unironically like chess. Yes, skilled Minesweeper players are capable of making such calculations in their heads.

    • @Drag0nmaster
      @Drag0nmaster 10 months ago +98

      I am NOT readin allat lil bro icl ts pmo fr holy YAP
      (nah srsly respect for putting all this work into a RUclips COMMENT. I now know a lot more than i did previously [i knew almost nothing])

    • @sean_miller
      @sean_miller 10 months ago +247

      @Drag0nmaster Bro your comment is pure gen-z brainrot. lol

    • @el_quba
      @el_quba 10 months ago +107

      Came here for that comment. I don't even know all the Minesweeper's rules, but my experience with science and maths taught me that when someone says "it can't be improved" about some math problem then there will be another person who absolutely will improve that.

    • @meinsql
      @meinsql 10 months ago +44

      This guys maths!
      But at Code Bullet we don't do that, so I'm gonna pretend you don't exist

    • @megaing1322
      @megaing1322 10 months ago +29

      Even independent of that, if you closely look at the moves the AI makes, it clearly has some implementation mistakes somewhere since it guesses in situation it doesn't have to guess - the chance that you have to guess in the midgame is basically zero, and yet the AI does it all the time. Guessing should only be needed for unlucky early game or endgame situations.

  • @brownman342
    @brownman342 10 months ago +228

    Bro didn't beat Minesweeper… he bullied it, hacked its lunch money, changed schools, and still showed up on the leaderboard the next day with a VPN and a grudge 💀💻🔥

    • @אלוןדוד-ט6ג
      @אלוןדוד-ט6ג 10 months ago

      Yhea 😅

    • @Djellowman
      @Djellowman 10 months ago +5

      Never comment again, zoomer.

    • @Gfyokay
      @Gfyokay 10 months ago

      Learn peoples fucking names bro

    • @bobsmith-x8h
      @bobsmith-x8h 9 months ago

      Hey kids! are you tired of [ROCK-DEAD] Users posting [PUTRID] Posts on YOUR comments? Well i have just the thing for you! The Extension [De-Troll RUclips - Hide Unwanted Commenters] Addon [AVAILABLE FROM FIREFOX AND CHROME(tm)] can hide those UGLY comments PERMANENTLY! All for Free, get yours today!

    • @BlakeStudio
      @BlakeStudio 8 months ago

      ​@Djellowmanzoom in?

  • @TheOtherAlt2
    @TheOtherAlt2 10 months ago +36

    9:00 This is, and I'm not joking here, the single greatest ad read I have ever heard

    • @junjiexie
      @junjiexie 10 months ago +1

      The only acceptable ad length
      Take notes, corpos

  • @autismicme
    @autismicme 7 months ago +1

    I actually love how it’s algorithmic and not reinforcement learning

  • @lhacenmed
    @lhacenmed 10 months ago +17

    2:48 Kamil Muranski's killing it bro 💀🔥

  • @scratch_a_Minecraft
    @scratch_a_Minecraft 10 months ago +80

    11:04 Thanks👍

  • @xsardes336
    @xsardes336 10 months ago +13

    8:35 rant...that looks like something a team of all backends with no frontend whatsoever would have done...and considering it's a fucking competetive minesweeper page...yeaaaaa, these bois haven't seen a frontend dev, or grass in AGES!

  • @maxifire32
    @maxifire32 8 months ago +2

    0:33 beating minesweeper with bogosort

  • @tigerofdoom
    @tigerofdoom 10 months ago +24

    Dude! Please release a 1 hour video of that giant solver at the end. I need that

  • @walid_escheikh
    @walid_escheikh 10 months ago +7

    13:09 bro created gojo satoru

  • @TheRandomRotatorCell
    @TheRandomRotatorCell 3 months ago +2

    13:24 harsh mode enabled

  • @Chaos_Lemon
    @Chaos_Lemon 10 months ago +6

    13:15 3rd place beginner name, rest in peace hax$ 😭

  • @hunstraucity8644
    @hunstraucity8644 10 months ago +555

    11:45 "I think this is the worst thing Germany has ever done." EXCUSE ME WHAT?! 🤣🤣🤣🤣

    • @TitanMichael
      @TitanMichael 10 months ago +17

      Underrated statement

    • @16m49x3
      @16m49x3 10 months ago +13

      true story

    • @spencerjoplin2885
      @spencerjoplin2885 10 months ago +20

      It’s up there with lederhosen and sauerkraut.

    • @JeyPeyy
      @JeyPeyy 10 months ago +12

      There might be that other thing that was slightly worse, idk

    • @sl1msn1per
      @sl1msn1per 10 months ago +2

      Someone is a student of history

  • @Frostbain
    @Frostbain 10 months ago +13

    13:35 Watching at 2x, I never expected "minesweeper AI with frantic Australian" to be that zen :D

  • @bentroyer1
    @bentroyer1 Month ago +1

    Cappybara is the most australian non australian animal I can think of

  • @stuntmanshinja
    @stuntmanshinja 10 months ago +4

    You could make the algorithm much faster if you don't actually "flag" a bomb, cause that takes time to click; just update that info in the memory.

  • @Gunbudder
    @Gunbudder 10 months ago +10

    0:40 this is literally how you get a tie with the world record for the smallest map on the original windows version of minesweeper lol

  • @SlimThrull
    @SlimThrull 10 months ago +84

    0:45 Statistically, it's better than BOGO sort.
    Edit 2:26 see?

    • @EEEEEEEE
      @EEEEEEEE 10 months ago

      ‎‎‎‎‎‎‎‎‎‎‎‎‎‎E

    • @photoo848
      @photoo848 10 months ago +1

      EDIT: I'm wrong. It's not solved in one click
      Note that this board would always be solved in one click provided you click on one of the blank tiles (28 numbered tiles + 10 mines out of 81 total tiles gives you odds of 53.08% to hit a blank tile)
      Anyone wanna calculate the odds of such a board being generated? Gonna say it's somewhere upwards of one in two thousand.
      So odds of random clicking winning would be about 0.0025%?

    • @leavemealone5004
      @leavemealone5004 10 months ago +5

      I like how it's just the monkeys and typewriters scenario. Get enough random things, and majority of the time it'll fail spectacularly, but then there's that one. That one monkey that successfully randomly clicks it's way through minesweeper. That one that from completely random chance, wins. That one, that no matter how many times it fails, it doesn't give up, it tries again. It randomizes it again, fail after fail, until it works. And by god, it works. It gets #1 on the leaderboards.
      It's honestly inspiring, an emotionless line of code. Never give up, people. It may take 2000 attempts, but you will succeed.

    • @SlimThrull
      @SlimThrull 10 months ago

      @photoo848 I don't have definitive proof of this, but I'm pretty sure whatever algorithm they use to plant the bombs disallows this.

    • @freespam9236
      @freespam9236 10 months ago

      i like that this solve is most optimal clicks for solve solutions
      revealed board showed that all the mines are near the revealed board so the bottom corner was safe area
      and then left with 2 areas to click and solved

  • @ItsNot_MyName2
    @ItsNot_MyName2 7 months ago +1

    5:13 How HOW many places left???
    27 MENTIONED LET'S GOOOOOO

  • @Bankruptbari
    @Bankruptbari 10 months ago +8

    We gotta arrest the person putting mines everywhere its getting ridiculous

  • @jaeusa160
    @jaeusa160 10 months ago +13

    @1:13 Aaaaand 1 minute into a Minesweeper video, Code Bullet manages to create Skynet and begin the AI revolution... it cannot be stopped now.

  • @Trauerdurst_TD3D
    @Trauerdurst_TD3D 10 months ago +109

    CB: "i just want a screenshot of me on top of all of the leaderboards"
    me: clicks 'inspect element'

  • @justamanofculture12
    @justamanofculture12 8 months ago +2

    As a Game Developer, this is pure Horror and Graphic violence. Literally a nightmare. Good work.....

  • @tribalturtle
    @tribalturtle 10 months ago +92

    i cry a tear of joy whenever code bullet uploads

  • @Kantenkugel
    @Kantenkugel 10 months ago +13

    I love how the term AI has now strayed so far from its original definition, that its used for plain old computing xD

    • @OntarioTrafficMan
      @OntarioTrafficMan 7 months ago +3

      IIRC the term AI has been used for algorithms that play games since before machine learning was a thing

    • @markuskopter
      @markuskopter 6 months ago +1

      @OntarioTrafficMan Fair point. In a gaming context the term _AI_ really means _algorithmic intelligence_ most of the time.

  • @lookbach
    @lookbach 10 months ago +227

    I’ve got a feeling Kamil just sits there seething, banning anyone who beats her he’s score…

    • @taureon_
      @taureon_ 10 months ago +58

      use "their" instead of "she he" its more convenient

    • @chikalikedis8170
      @chikalikedis8170 10 months ago

      @taureon_ cheeseburger master 123

    • @InsanityReborn
      @InsanityReborn 10 months ago +18

      @taureon_ Literally nobody asked.

    • @la1m1e
      @la1m1e 10 months ago

      Shut up ​@InsanityReborn

    • @Zanemob
      @Zanemob 10 months ago +11

      @taureon_ Your brainrot has no power here silly.

  • @TheS1lentX
    @TheS1lentX 5 months ago +1

    Another thing you can add to the code is that if there are only 50 50 left, you let the AI choose two boxes away from the discovered land, and that will give you more info about the bombs. I’m assuming there is some maths about this, but more often than not this method does work out for me