Using Image Recognition to Automate More Mario Minigames

Sdílet
Vložit
  • čas přidán 4. 08. 2024
  • To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/CodeNoodles. The first 200 of you will get 20% off Brilliant’s annual premium subscription.
    In this video I automate some more Mario minigames from New Super Mario Brothers on the Nintendo DS.
    This video was sponsored by Brilliant
    LINKS
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    Support the channel: ko-fi.com/codenoodles
    Itch.io: codenoodles.itch.io/
    GitHub: github.com/OfficialCodeNoodles
    MUSIC
    ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
    Shoutout to ‪@TheNobleDemon‬ for making awesome video game music remixes! Check out their channel if you liked the music in this video!
    • Super Mario World: Ove...
    • Super Mario 64: Snow M...
    • New Super Mario Bros: ...
    █▀ █ █ █▄▄ █▀ █▀▀ █▀█ █ █▄▄ █▀▀
    ▄█ █▄█ █▄█ ▄█ █▄▄ █▀▄ █ █▄█ ██▄
  • Věda a technologie

Komentáře • 163

  • @CodeNoodles
    @CodeNoodles  Před 7 měsíci +47

    To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/CodeNoodles/ . The first 200 of you will get 20% off Brilliant’s annual premium subscription.

    • @bowzert
      @bowzert Před 7 měsíci

      Hi! I did the moles minigame in C# a few months ago! The video on my channel : czcams.com/users/shortswjhrn0oKg8g

    • @lolathepinky4857
      @lolathepinky4857 Před 7 měsíci +1

      Woohoo I'm one of the first 200 ! :D
      Love your videos Noodles !

    • @Kaishidow
      @Kaishidow Před 7 měsíci

      I won't even be mad if you decide to milk this concept, love it so much

    • @bigwinnergamer
      @bigwinnergamer Před 7 měsíci

      U ain’t Ted ed

    • @Giorgodacat
      @Giorgodacat Před 7 měsíci +1

      Potato cheese

  • @underrated1524
    @underrated1524 Před 7 měsíci +188

    Fun fact: it's physically impossible to hit all the Montys in Whack-A-Monty, even if you're TASing. The game simply can't register touch screen inputs fast enough for you to hit them as fast as they show up near the end.

    • @CodeNoodles
      @CodeNoodles  Před 7 měsíci +56

      That makes me feel a lot better about my script 😆

  • @AlmostPGLiam
    @AlmostPGLiam Před 7 měsíci +676

    Great video as always. I watched it at 82x speed, just to make sure I could comment early.

    • @CodeNoodles
      @CodeNoodles  Před 7 měsíci +164

      That's a great skill to have!

    • @theanonymusguy
      @theanonymusguy Před 7 měsíci +32

      how did u get 82x speed?

    • @chairwood
      @chairwood Před 7 měsíci

      ​@@theanonymusguyis actually possible with entering some JavaScript into the f12 console. I used to watch videos for class on 4x speed xd

    • @vk8a8
      @vk8a8 Před 7 měsíci

      @@theanonymusguyhe’s a hacker

    • @bobosaurus331
      @bobosaurus331 Před 7 měsíci +74

      @@theanonymusguySkill issue

  • @Bryce_the_Woomy_Boi
    @Bryce_the_Woomy_Boi Před 7 měsíci +116

    He didn't automate these, he's just really _really_ good

  • @EpicLPer
    @EpicLPer Před 7 měsíci +121

    For the last minigame I'd suggest using color recognition instead of images, since the colors are not really close together. It also seems to run very slow judging by the jittery mouse movement so maybe it improves with that then :)

    • @FlutterBug
      @FlutterBug Před 7 měsíci +5

      yea I was thinking all it really needs to do is check for anything bright orange, that'd include the walls and the flame breath

    • @MightyMemeKing
      @MightyMemeKing Před 7 měsíci +2

      That's what I'm doing with my autohotkey bot that automates a mobile game I play. I'm digging through it and replacing every imagesearch command I can with pixelsearch commands that only check the color of a single pixel.

  • @danielgysi5729
    @danielgysi5729 Před 7 měsíci +230

    I'd love to see some further optimizations to these. I know image recognition gets clicks or whatever, but for whack a monty, all you really need to do is check the color values at specific pixels. If you wrote a C program that used the Win32 API, you could grab a bitmap of the ds screen, check certain pixel indices for the right color, and simulate an input event at each location. I reckon it'd be blazing fast compared to your python script with all that pyautogui and image recognition overhead.

    • @leonfire99
      @leonfire99 Před 7 měsíci +24

      Yeah, i was thinking that needed more optimization. Watching the playback it really missed the bottom row a lot

    • @cerulity32k
      @cerulity32k Před 5 měsíci

      Rust has rsautogui, and processing data in-language is way faster. Using it, I made a 7 line script that uses Tesseract as well to get 7500wpm on the Human Benchmark typing test.

    • @li5up6
      @li5up6 Před 3 měsíci

      Overkill. The processing almost certainly does not take longer than 30fps or whatever sm64ds runs at.

  • @burnfire4617
    @burnfire4617 Před 7 měsíci +18

    For the last mini game with the fireball. What about this strategy: you view the fireballs as electrons (negatively charged) and the player as a proton (positively charged) such that the movement of the proton is dictated by the sum of the electric forces of the electrons.

    • @CodeNoodles
      @CodeNoodles  Před 7 měsíci +9

      That's a really cool idea! I actually made a magnet simulator a few years ago, and I could definitely see that doing fairly good with this minigame.

  • @gamingplus2884
    @gamingplus2884 Před 7 měsíci +47

    It'd be cool if after you finish up all the mini games. for SM64 DS if you could go on to do Mario Party minigames. or maybe make a program to play through all of certain mario games

  • @gooseylucy2158
    @gooseylucy2158 Před 7 měsíci +7

    Thrilled to see a sequel to this! There’s at least 2 really close calls in Danger Bob-Omb, so this hit box must be really interesting. Thank you for making another!

  • @pokeli2728
    @pokeli2728 Před 7 měsíci +27

    If you could automate the board section of Mario Party DS that would be really cool. Then you could combine it with the automated mini games to make an entire game of Mario Party played by an AI. That'd be really cool to see!

    • @daniiii888
      @daniiii888 Před 7 měsíci +6

      It would be more like "played by a TAS bot" since AI would have to learn every aspect of the game instead of being programmed to do exactly what it needs to do.

  • @Imaproshaman7
    @Imaproshaman7 Před 7 měsíci +5

    The first image recognition video is what helped me discover this channel in the first place and it was great, so I'm glad to see it revisited! These are always so cool.

  • @beardalaxy
    @beardalaxy Před 7 měsíci +4

    that bob-omb one made me wonder.... touhou?

  • @theAstarrr
    @theAstarrr Před 7 měsíci +34

    This is my favorite thing on your channel
    It's so fun and also gives me nostalgia.

  • @PWPictures67
    @PWPictures67 Před 7 měsíci +11

    That score is higher than my highest score on Whack-A-Monty. My highest score is 79 Moles. I don't remember my highest score on Danger Bob-Omb Danger, I haven't played that game in ages. And I never play Snowball Slalom because I could never finish it. I think that I made it to the end once or twice though.

  • @xYamakaze
    @xYamakaze Před 7 měsíci +3

    Based on how the Bob-omb minigame was going, you have to make it play and beat Touhou next.

  • @zdelrod829
    @zdelrod829 Před 6 měsíci +2

    Would love to see the project continued to the point where all of the mini games in NSMB and SM64DS are automated, and would love to see how you tackle the Poker and memory games.

  • @MontyMoleLoreMaster
    @MontyMoleLoreMaster Před 7 měsíci +3

    We are just going to ignore the fact that the top screen of Whack-a-Monty shows all of the Monty Mole corpses the player smacked to death.

  • @sallystrings
    @sallystrings Před 7 měsíci +15

    Yessss this is so good!! I love your other videos on minigame automation, thank you for doing more!

  • @marcosbarrios1625
    @marcosbarrios1625 Před 7 měsíci +12

    We need more of this for sure

  • @Blazico
    @Blazico Před 7 měsíci +4

    Thank goodness, computers still can't beat me at the final 2 minigames.

  • @TheTechn9neforlife
    @TheTechn9neforlife Před 7 měsíci +2

    absolute legend. my siblings and i played these when we were children and seeing them broken has me in awe. thank you for this!

  • @luigichief2200
    @luigichief2200 Před 7 měsíci +2

    The nostalgia plus the computer science is a great duo! I'd love to see more.

  • @niemandit
    @niemandit Před 7 měsíci +4

    You reminded me of playing these minigames during the holidays and made the current ones a little better. Thank you for the great video :)

  • @Foxy-yr8wq
    @Foxy-yr8wq Před 7 měsíci +5

    I love these videos so much
    It's awesome to see these little mini games from my childhood again xD

  • @SylasTheShadow
    @SylasTheShadow Před 7 měsíci +2

    I cannot stress how much I love these videos, and how badly I need more of them

  • @lukethompson5492
    @lukethompson5492 Před 7 měsíci +3

    I don't leave comments on videos ever, but this is one of my favorite series and I would love so much to see more of this!

    • @CodeNoodles
      @CodeNoodles  Před 7 měsíci +1

      Thanks, I'm glad you enjoy the series!

  • @liamreeves344
    @liamreeves344 Před 4 měsíci +1

    I'd love to see you take a crack at the Luigi Poker game. Working probability analysis into it would be interesting

  • @jizosgoescrazy
    @jizosgoescrazy Před 6 měsíci +1

    love the style of the video! Amazing ideas and oh man... the music in the background, so nostalgic, takes me back to the good old DS days

  • @lemmingyellow3888
    @lemmingyellow3888 Před 7 měsíci +3

    I love this. Love the code, love the editing, love the ideas. Great work!

  • @kennycarter5682
    @kennycarter5682 Před 7 měsíci +2

    I would love to see this further expanded on, aka do every minigame... i wish, ha ha

  • @YeetoTheYeetafic
    @YeetoTheYeetafic Před 7 měsíci +3

    Alternative Title: Using Image Recognition to make the Nintendo Ninjas find me

  • @RudyGGames
    @RudyGGames Před 7 měsíci +1

    Looks fun to code this. Looking forward to seeing more!

  • @ianjohnson218
    @ianjohnson218 Před 7 měsíci

    I am very excited to see you doing more of this! I’ll be excited to see Mario party get mastered too!

  • @luigiymario2xd
    @luigiymario2xd Před 7 měsíci +3

    Let's goooo, I was waiting for more of these lol

  • @ermamu
    @ermamu Před 7 měsíci +2

    More minigame automation would be great!

  • @qangeldratsch9643
    @qangeldratsch9643 Před 7 měsíci +2

    I am really curious, how you will handle the desert puzzle minigame.

  • @magnuscandraw
    @magnuscandraw Před 7 měsíci +3

    awesome video! if you make another part, you should try to further optimize the snowball game! it would be awesome if it didnt bump into anything at all, even if its just lucky!

  • @Smoet
    @Smoet Před 7 měsíci +1

    Sick video as always man!

  • @Useott
    @Useott Před 7 měsíci +1

    Yessss new video

  • @CrimsonNova927
    @CrimsonNova927 Před 7 měsíci +1

    Merry Christmas!

  • @maiinganbear5412
    @maiinganbear5412 Před 7 měsíci +2

    I love my favorite mini games being cheesed with image recognition. ☺️☺️☺️

  • @emochoo
    @emochoo Před 7 měsíci

    Lessgoo new codenoodles video

  • @FridayNightStreamz
    @FridayNightStreamz Před 7 měsíci +3

    This was nice, and hope you feel better

  • @uetc6698
    @uetc6698 Před 7 měsíci +1

    I love your content man

  • @GucciBandanaBro
    @GucciBandanaBro Před 6 měsíci +1

    Hey, there's this game called Backpack Battles on steam which is basically an auto battler where you have to buy items that synergize best with each others and defeat your opponents in a total of 18 rounds. It's apparently NP-hard and the well known knapsack problem to make an AI. Would be a real challenge to create an AI that can defeat humans?

  • @dreeg1896
    @dreeg1896 Před 5 měsíci

    Good remix taste my man. TND is majestic.

  • @chiefsofnobles
    @chiefsofnobles Před 5 měsíci +1

    awesome and great job, its fun watching a fellow coder solve problems, opens my mind to different ways to tackle problems i previously wont have thought of.

  • @escanor_974
    @escanor_974 Před 7 měsíci +2

    really cool

  • @bratkartoffeln_
    @bratkartoffeln_ Před 7 měsíci +1

    keep the good work up

  • @marckey5021
    @marckey5021 Před 7 měsíci +2

    We need more

  • @guadog
    @guadog Před 7 měsíci +1

    WOOO NEW CODE NOODLES YAY

  • @ImExistent405
    @ImExistent405 Před 7 měsíci +1

    Nice job bro

  • @SmudgeAlot
    @SmudgeAlot Před 6 měsíci +2

    There is a shooting range game in kirby superstar ultra for the ds and I would like to see the ai get a perfect score.
    Anyways this is a great video 😊

  • @MccTube
    @MccTube Před 7 měsíci +1

    Great video!

  • @DarkChaosMC
    @DarkChaosMC Před 7 měsíci +1

    This seems fun, I’m gonna try it myseif

  • @absin8078
    @absin8078 Před 6 měsíci +1

    Super cool man

  • @RaziMemeGod
    @RaziMemeGod Před 7 měsíci +1

    Automate the entire mario vs luigi mode

  • @dovgertz288
    @dovgertz288 Před 7 měsíci +3

    wow great job as usual

    • @CodeNoodles
      @CodeNoodles  Před 7 měsíci +1

      Thanks, I really appreciate it!

  • @diamondoge
    @diamondoge Před 7 měsíci +1

    1:00 sir that's Luigi abuse. Thats illegal!

  • @Mizai
    @Mizai Před 6 měsíci +1

    good job 😊

  • @user-qv5do7vz5l
    @user-qv5do7vz5l Před 7 měsíci +1

    Yes i need more

  • @ahmedskully
    @ahmedskully Před 7 měsíci +2

    Cool videos

  • @hithere-cz4oc
    @hithere-cz4oc Před 7 měsíci

    You could try using voronoi diagrams to optimize the bowser one… you ideally want to move along the lines in the voronoi diagram, and you would want to target resting in voronoi vertices that are very large distances from any fireball. You can pathfind using the path with the largest closest distance you’ll ever be to a fireball, so you’ll be able to stay in the safest zones and take the safest path to get there.
    I would imagine this is very close to how a human plays the game! Except, of course, instant and never gets tired, never blinks, never gets distracted, and never loses track of fireballs

  • @ShadowBulb
    @ShadowBulb Před 7 měsíci +2

    Im a little late, hope this vid is as good as the original! if not better sinze you have grown since then

  • @GraalsDeadMonster
    @GraalsDeadMonster Před 7 měsíci

    What is this, a early Christmas gift? 😍

  • @tanhrs8711
    @tanhrs8711 Před 7 měsíci

    Cool a video ! Btw when Minecraft 2d update ?

  • @TheFlashzap
    @TheFlashzap Před 7 měsíci

    6:56 Carl from Aqua Teen Hunger Force looks surprisingly happy for once

  • @ihaspancake2331
    @ihaspancake2331 Před 7 měsíci +3

    Cool

  • @txqea9817
    @txqea9817 Před 7 měsíci +1

    still waiting for 2 (or more) ais fighting in nsmb minigames

  • @link-cq2wx
    @link-cq2wx Před 7 měsíci +2

    Now do whack a luigi on the monty minigame

    • @link-cq2wx
      @link-cq2wx Před 7 měsíci

      or you do the opposite of what you're supposed to do, hilarous but probs not worth the effort doing the whole idea

  • @sahilhossian8212
    @sahilhossian8212 Před 7 měsíci

    Lore of Using Image Recognition to Automate More Mario Minigames momentum 100

  • @djmintyfreshful
    @djmintyfreshful Před 3 měsíci +1

    MORE!

  • @DoctorTex
    @DoctorTex Před 7 měsíci

    Automate that one Yoshi flower petal game!

  • @ocomolinaehain1795
    @ocomolinaehain1795 Před 7 měsíci +1

    Do you plan to do Mario 64? Like, the trampoline one or the piranha plant one?

    • @CodeNoodles
      @CodeNoodles  Před 7 měsíci +1

      I've thought about it. I might take a crack at it next year.

  • @TheDMan2003
    @TheDMan2003 Před 7 měsíci

    1:00 Isn’t that the pose he makes on the Luigi’s Mansion box?

  • @tanter14
    @tanter14 Před 7 měsíci +1

    loved the video, something id suggest especially with coding or anythng creative, show some of your fails(things that just go wrong or horribly wrong) it gives the video progression and incentive for the watcher to keep watching (long story short, people love when things go wrong)

    • @CodeNoodles
      @CodeNoodles  Před 7 měsíci +1

      I definitely make plenty of mistakes 😆

  • @philogex
    @philogex Před 7 měsíci +5

    i don't usually comment on videos, but i wanted to say, that while the video itself was interesting, your approaches were understandable, but not very optimized. you did mention it at the end, but i still think you could have improved your designs by a long shot

    • @CodeNoodles
      @CodeNoodles  Před 7 měsíci +2

      That's completely fair. I'll try to optimize the scripts more in the future.

  • @PrepareToDie0
    @PrepareToDie0 Před 7 měsíci +1

    Holey moley!

  • @DonSMDT
    @DonSMDT Před 7 měsíci

    how many minigames are even left in this game??

  • @nathanlamberth7631
    @nathanlamberth7631 Před 7 měsíci +1

    Last year? Stop making me feel old

  • @GmNdWtchr96
    @GmNdWtchr96 Před 7 měsíci

    Would these count as Tool-Assisted Speedruns/Superplays?

  • @jknifgijdfui
    @jknifgijdfui Před 7 měsíci +1

    i wanna see u automate warioware and i just realized halfway thru typing that that that will be near impossible and not fun

  • @YoloYester94
    @YoloYester94 Před 7 měsíci +1

    They used a python? I can’t even see sharp!

  • @IoIxD
    @IoIxD Před 6 měsíci

    Are there any minigames you CAN'T do with image recognition? It'd be interesting to see if the entire game can be completed with scripts.
    EDIT: Oh, one of them requires a neural network. So maybe not.

  • @aureliamastergoomba1278
    @aureliamastergoomba1278 Před 7 měsíci +2

    I hate the snowball one…

  • @lelepao
    @lelepao Před 7 měsíci

  • @LexiLex421
    @LexiLex421 Před 7 měsíci

    I’m st-epp-ing a-way
    From, my re-grets of yes-ter-day!

  • @Olejika_CheatEngine
    @Olejika_CheatEngine Před 7 měsíci

    As I remember I made 5000 points in Danger Bombomb. So it's not very impressing

  • @dominicmora2559
    @dominicmora2559 Před 3 měsíci

    Where is the code for bomb danger?

  • @Jelly_shy_guy_man
    @Jelly_shy_guy_man Před 7 měsíci +1

    I thought you were think noodles

  • @Skillez_Elias
    @Skillez_Elias Před 7 měsíci +1

    Lessgoo

  • @suttonfreeland6368
    @suttonfreeland6368 Před 5 měsíci

    I got an ad at the beginning of the sponsor 😭

  • @c7wolfyy
    @c7wolfyy Před 7 měsíci +1

    LETS GOOOO

  • @pokepowerz4
    @pokepowerz4 Před 7 měsíci +1

    The method you used for the snowball minigame seems kind of... bad. I mean it only learned to navigate that one specific track, and if memory serves me right the layout of the penguins and rocks are randomized each time you play it. Also at the end it hit the wall a few times and slowed down. I feel like the best solution would be one that can handle any track given to it and doesn't hit walls.

    • @pokepowerz4
      @pokepowerz4 Před 7 měsíci +1

      Still love the video btw great work as always just wanted to share my opinion on your approach to that minigame

    • @CodeNoodles
      @CodeNoodles  Před 7 měsíci +3

      Yeah, the layout is randomized. I tried a couple of different methods to react in real time to the obstacles, but none of them worked correctly. Next time, I will try and avoid using this method.

  • @DoneThatSeenThat
    @DoneThatSeenThat Před 7 měsíci

    Trampoline

  • @justacutepanda888
    @justacutepanda888 Před 7 měsíci +1

    Just add controller button noises, and claim you’re the best player in the world.

  • @afartingguy8541
    @afartingguy8541 Před 7 měsíci

    ye

  • @ErinLynagh
    @ErinLynagh Před 7 měsíci +1

    "This one is extremely difficult to last long in" 😏😏😏

  • @matthias916
    @matthias916 Před 7 měsíci +1

    good

  • @BoxuTrev
    @BoxuTrev Před 7 měsíci

    bro makes tas look weak