Using Image Recognition to play Mario Party Minigames

  Рет қаралды 138,890

CodeNoodles

CodeNoodles

Күн бұрын

Пікірлер: 302
@CodeNoodles
@CodeNoodles Жыл бұрын
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.
@lio1234234
@lio1234234 Жыл бұрын
Fun fact, I learned on Brilliant that the polygon method you describe in the video to approximate a circle, is also how we calculate (or rather approximate) Pi!
@lio1234234
@lio1234234 Жыл бұрын
Given that the definition of Pi is the area of a unit circle that is
@doggo7078
@doggo7078 Жыл бұрын
how can I learn to program like you do? I'd make my hobby so much easier. I'm trying to find an rng seed with a certain pattern, but if I enter the minigame and reset for a new seed I take 15 seconds (with the emulator sped up), so math tells me I need to check 10k seeds if I want to find 2,5 suitable seeds (=5k for 1ish seed), which would take 4 hours and several PCs running 3 emulators at the same time. And I'd have to check 5 PCs to see if I found the seed during 4 hours, that's why it'd be useful if I was to learn how to write some code and recognize the rng pattern I'm looking for
@PikTheRedPikAUTTP
@PikTheRedPikAUTTP Жыл бұрын
how tf does math have to do with mario
@BarterChain65_Gaming
@BarterChain65_Gaming 11 ай бұрын
what are you using to code with i'm trying to get into learning a bit of coding myself
@SpaciousBoundary
@SpaciousBoundary Жыл бұрын
It’s really telling just how impossible it is to win against expert difficulty when even the automated code only just wins
@KatherynneF
@KatherynneF Жыл бұрын
To be fair, even as a kid I was faster than the code for the dominos game and humans can cut corners and won’t stop to turn on the drawing one. We can see multiple inputs ahead and play around that
@mistorbear
@mistorbear Жыл бұрын
well near the end the ai accidentally grabbed a bob-omb so that could be the reason
@jblen
@jblen Жыл бұрын
I mean it's automated code Vs automated code. Maybe they cheated a little because the game AI can see the code, but it's still not limited to human reaction times
@AdaTheWatcher
@AdaTheWatcher 9 ай бұрын
The AI is probably rubber banding.
@SleepyBrady
@SleepyBrady 9 ай бұрын
As a kid I always played with expert AI and usually was able to win. The only few mini games that were actually impossible were cherry go round and get the lead out. Actually impossible
@ArisTheMage
@ArisTheMage Жыл бұрын
As a programmer myself, it’s greatly appreciated you show the code. I hate when the KZbinr at most shows a small snipit. Not to steal your code, but to see your logic :)
@tornadowizard
@tornadowizard Жыл бұрын
For the block one, you could have prewritten each shape, "square" "rect up" "rect right" etc so instead of writing out the coords for each map over and over you would just write which shapes get drawn in what order.
@CodeNoodles
@CodeNoodles Жыл бұрын
That's a good point!
@tornadowizard
@tornadowizard Жыл бұрын
Thank you! I haven't used my coding skills in like 3 years unfortunately, glad to know I still have it!
@KinuTheDragon
@KinuTheDragon Жыл бұрын
For the first one, might I suggest checking if the goomba is at least a minimum distance from any bombs?
@CodeNoodles
@CodeNoodles Жыл бұрын
I actually have that implemented already. It definitely helped!
@renakunisaki
@renakunisaki Жыл бұрын
And prioritize gold.
@Laenthor
@Laenthor Жыл бұрын
​@@CodeNoodlesYou could also straight up draw squares instead of circles so it would be nearly instant instead of having to call the function for each circle point?
@sarowie
@sarowie Жыл бұрын
@@Laenthor did you watch the video? he has to use a polygon with a certain number of edges, as the game does otherwise ignore the shape. You can try to optimize the number of corners, but the advantage will be pretty small.
@Laenthor
@Laenthor Жыл бұрын
@@sarowie Oh I must've missed that part, it just seems to look for a closed shape.
@blackcat_064
@blackcat_064 Жыл бұрын
Some minigames I'd love to see you automate are Rail Riders, Cherry-go-round and Study Fall. These are some of my favourite minigames in Mario Party DS
@woobgamer5210
@woobgamer5210 Жыл бұрын
Rail Riders and Cherry go Round should be is, cause Rail Riders is just, slide up from the bottom as quick as possible, and Cherry go round is, just continously draw circles as fast as you can. tbh i'd love to see Sprinkler Scailers done using melonds or no$gba by being a python script and python script vs 2 expert cpus
@GoldenAce17
@GoldenAce17 Жыл бұрын
Getting a 00'00'00 on study fall is possible but SO hard! watching code do it every try would be awesome
@thewiseoldfox
@thewiseoldfox Жыл бұрын
​@@GoldenAce17I'm pretty sure everyone who grew up with Mario Party DS got 00'00 on Study Fall on accident, making the best unbeatable high score
@tacothedank
@tacothedank 9 ай бұрын
​@@thewiseoldfox I remember being able to do it intentionally without much difficulty. I'd be able to get it like 1 out of every, maybe, 5-8 tries?
@disdonut
@disdonut Жыл бұрын
Code Noodles’s taste in music is amazing. I’ve been listening to The Noble Demon for a while because their arrangements are so good. They deserve lots of love for their work
@beeisland
@beeisland Жыл бұрын
I'm glad my favorite mario party is getting some attention. Very fun seeing you destroy those infuriatingly perfect expert cpus. Good job and would LOVE to see more.
@CodeNoodles
@CodeNoodles Жыл бұрын
I know! Nintendo made the expert cpus WAY too difficult!
@carlyskolnik296
@carlyskolnik296 Жыл бұрын
Same 😊
@raptore.x
@raptore.x Жыл бұрын
@@CodeNoodles glad im not the only one who thought those expert cpus were just wayy too good, feels like theyre harder than other mario games sometimes lmao
@doctorgrubious7725
@doctorgrubious7725 Жыл бұрын
Personally I would’ve included a counter-draw around bombs that basically detects if a bomb is in the radius of a goomba, and if the circle it would draw around the bomb overlaps the goomba circle, to subtract the bomb’s circle from the goomba’s, For the second game I feel it’s like a cop out due to the fact it’s not really playing, it’s just doing it from a list that you made, you did a good chunk of the work, I would’ve gone with the black and white image and than have it instead just find the vertices of every shape and than add it to the shape array, so it creates the list on its own before drawing
@YeetoTheYeetafic
@YeetoTheYeetafic Жыл бұрын
CodeNoodles Friend: 'Yo I finally got 500 goombas without a bob-omb in goomba strangler from Mario Party DS!' CodeNoodles: 'I got more than humanly possible, I've already beat you'
@KLGB76
@KLGB76 Жыл бұрын
Mario Party DS is my favorite Mario Party ever.
@Alex-gv9os
@Alex-gv9os Жыл бұрын
Definitely want to see other automatization for Mario party minigame 🤩
@x-x
@x-x Жыл бұрын
I enjoy your videos so much despite never playing these mini games and having no coding skills! You have a very calming and charming voice, so it's very interesting to hear and you don't try to downplay your skills at any point like many other KZbinrs nowadays. Keep going!
@CodeNoodles
@CodeNoodles Жыл бұрын
Thanks, I'm glad you them!
@andym5280
@andym5280 Жыл бұрын
@@CodeNoodles I really them too! Especially the NSM videos!
@ermamu
@ermamu Жыл бұрын
I’d love to see more! Do you think ‘Hammer Chime’ would work?
@CodeNoodles
@CodeNoodles Жыл бұрын
Probably
@nitro5247
@nitro5247 Жыл бұрын
It’s really cool to see how people my own age are using these tools on our childhood games. I also missed out on MPDS, but I did play NSMB when I was younger. These videos make me want to take on a project of my own, haha.
@TheLobsterCopter5000
@TheLobsterCopter5000 Жыл бұрын
Try the stargazing one next! Give the automator a challenge by having to compete with 3 expert CPUs at that game...
@canadianlucario2643
@canadianlucario2643 Жыл бұрын
Would you try any other Mario party games with this? I’d love to see more of these videos, they help me a lot with learning what I can do with programming
@unfortunatedisgrace246
@unfortunatedisgrace246 Жыл бұрын
you have the perfect way of explaining so that most people understand without it being too complicated or too long winded! it's actually really entertaining!
@silverstorm323
@silverstorm323 8 ай бұрын
I would love to see more minigames coded. These were fun to watch. Maybe even other MP games in the future?
@theAstarrr
@theAstarrr Жыл бұрын
YO more nostalgia from probably my favorite videos of yours
@Imaproshaman7
@Imaproshaman7 Жыл бұрын
This was really cool! I'd love to see more of these. The original Using Image Recognition To Find Mario video is how I found out about this channel in the first place. Oh yeah, I'd be interested to see if it would be possible to automate the minigames that require the mic.
@velvetbutterfly
@velvetbutterfly 8 ай бұрын
I would love to see you do a video explaining each piece of software you use so that people can get educated on the details to better follow what you're doing
@strawberrylemonadelioness
@strawberrylemonadelioness 7 ай бұрын
I had this game as a kid and I still love it! It's still honestly my favorite Mario Party game.
@leroyhak5081
@leroyhak5081 Жыл бұрын
Oh man, I remember playing this on the ds. It was always a lot of fun to play against my siblings. And for everyone who thinks the expert ai is near impossible to win from, some games like the 2nd Trace Cadets and the 3rd Domino effect all depend on how fast and accurate you are.
@louisnemzer6801
@louisnemzer6801 Жыл бұрын
Playing video games: Fun Automating a computer to play games for you: More fun
@htspencer9084
@htspencer9084 Жыл бұрын
Awesome vid! Unsolicited suggestion for the first one: Maybe comparing the location of the chosen goomba over two frames to determine it's movement vector and use that plus knowing how long your circle takes to draw (assuming it's a constant time), means you can draw ahead of the goomba and get it perfectly centered. You could even then track the movement of bombs within a certain range of that goomba and know ahead of time if the circle would pick up any bombs so you can avoid that goomba. Is any of this multithreaded? Would be curious to see how much of this could be put on worker threads. The drawback to my suggestion is when they bounce off the wall, as you'll need to figure out their reflections which sounds like effort but you could probably just ignore it as its only an edge case (pun very much intended).
@CodeNoodles
@CodeNoodles Жыл бұрын
None of this is multithreaded. All of your suggestions are fantastic, but they would be nearly impossible to implement.
@BromeoWuggles
@BromeoWuggles Жыл бұрын
Love the Image Recognition videos
@DagoDuck
@DagoDuck Жыл бұрын
If there‘s one thing I‘d really like to see, it‘s optimizing these scripts to near perfection. For example the first minigame if it wasn‘t for that bomb, it would‘ve had so many Goombas, the game had to squish them together.
@johnsimpsen5
@johnsimpsen5 Жыл бұрын
YES!! I love Mario party ds!!! Definitely the best Mario party!!! Please do this game again!
@Neoh53
@Neoh53 Жыл бұрын
For the first mini game (circle goomba) i know from my childhood that you can draw pretty small circle on the goomba. Reduce the size of the circle to decrease the risk of catching a goomba
@fernando98322
@fernando98322 Жыл бұрын
For Trace Cadets, I'm sure you can automate further by tracing the blue lines (really, they're line segments with a set number of directions to take) for adjacent figures but that might take too much processing time that the Expert CPU might beat you at that point
@TalkySteak
@TalkySteak Жыл бұрын
I was stoked to see another minigame automation video hit my feed. Love this series! Thanks!
@CodeNoodles
@CodeNoodles Жыл бұрын
Thanks, I'm glad you like it!
@TalkySteak
@TalkySteak Жыл бұрын
@@CodeNoodles Do you push your code from these videos to a Github repo by chance?
@realElzie
@realElzie Жыл бұрын
I’d love to see some more videos on automating Mario party games. I’ve got to design and make my own program for a Python final project for a college class and I might do something like this, not sure yet though…
@akamai8097
@akamai8097 Жыл бұрын
I'd like to see more mario party minigames, but I'd love it if you did an episode on a warioware game!
@LevelUpGA
@LevelUpGA Жыл бұрын
Next time you can try all bloons TD with genetic algorithm, theoretically you need only string recognition and tower positions/hotkeys and clicking on the map and good luck with training, I try random clicking and I win BTD1 in 2/4 times with random clicking (generation 0) without upgrades but not with full hp
@krankenwagen6042
@krankenwagen6042 Жыл бұрын
this is the sequel we didnt deserve but the sequel we got
@Noah-ost
@Noah-ost Жыл бұрын
This was such a good idea for a game to automate! i alwyas find it fascinating when we can make AI that is better than the in-game one. Would love to see more minigames automated. This was one of my favorite games as a kid ❤️
@VolcanoGamingVR
@VolcanoGamingVR 7 ай бұрын
4:27 - bomb-omb lol I like it
@ItsIdaho
@ItsIdaho 7 ай бұрын
One of the best DS games ever. Miss our 2 vs 2 sessions😢
@__--_--_-----
@__--_--_----- Жыл бұрын
I love automating, done some work with pyautogui myself to autowin the wordle battle royale game lol. great vid, would love to see more of these
@TheMamaluigi300
@TheMamaluigi300 8 ай бұрын
Maybe for Goomba Wrangler, the program could probably compare the latest screenshot with the previous one to gauge its target’s speed so it can predict where the goomba will be when the circle completes
@ironici
@ironici Жыл бұрын
I swear this is the only way to beat Trace Cadets
@b_megamaths
@b_megamaths Жыл бұрын
It's good to know that, no matter how advanced code has become, I'm still able to beat it handily at Domino Effect.
@tekayo63
@tekayo63 Жыл бұрын
this is so cool! since these were all duel (or at least the duel versions of) minigames, i think in a potential next video it could be cool to see some ffa or 2v2 games like hot shots or sprinkler scalers
@SinisterPixel
@SinisterPixel 9 ай бұрын
For Domino Effect, I feel like it might be helpful to just read the upcoming input instead of the current one. The window to press the input comes up REALLY early so you could basically prebuffer the entire thing and smoke the CPU.
@nathanlamberth7631
@nathanlamberth7631 Жыл бұрын
Those second two were too close for comfort
@rifatbobos
@rifatbobos Жыл бұрын
"You know what? Fck you" **becomes an even more Expert CPU*
@noahvasiliauskas233
@noahvasiliauskas233 Жыл бұрын
More mini games pls I love listening to these 😊
@Puddincess
@Puddincess Жыл бұрын
I'd definitely like to see more of these. If I could choose minigames to try, I'd say Hedge Honcho (ladybugs and wasps can be predicted by the leaf before them, and Im curious to see if you can make it image recognize that or how well you can make it rub the ladybug), the skydiving minigame, and the boo-spotting 1v3 I forget the names of 😔
@777omen
@777omen Жыл бұрын
I want to see Image Recognition dominate all of the Mario Party DS bosses.
@bloodwolf2002
@bloodwolf2002 Жыл бұрын
That'd be so cool if possible
@777omen
@777omen Жыл бұрын
For Hammer Bro it's easy but for the others, I don't know how you would find a way to implement the image recognition.
@bloodwolf2002
@bloodwolf2002 Жыл бұрын
@777omen dry bones "might" be easy out of the remaining bosses but don't know
@cravonomire9971
@cravonomire9971 Жыл бұрын
It is funny how nostalgic I get for this game.
@HPnodsu
@HPnodsu Жыл бұрын
I love this! It's always amazing watching how all this works. I personally find it really entertaining and would like to see more.
@__--_--_-----
@__--_--_----- Жыл бұрын
would be nice to see it taken to the next level to automate a more complex game, I think that is more impressive than doing a few simpler games
@justarandomwoof2247
@justarandomwoof2247 Жыл бұрын
Would be cool to see more!
@batofdestiny7801
@batofdestiny7801 9 ай бұрын
I love videos like this. I’m not very smart with computers and technology but this shit is super cool
@mememkyu
@mememkyu Жыл бұрын
I need more of this! This type of stuff is so cool to me
@rainbowcat498
@rainbowcat498 10 ай бұрын
The sweer nostalgia i got from watching this!!!
@Vextrove
@Vextrove Жыл бұрын
I would like to see more minigames!
@XenoPon2
@XenoPon2 Жыл бұрын
The best Mario party ever made.
@Zyiah
@Zyiah Жыл бұрын
i love these sorts of things
@pokeli2728
@pokeli2728 Жыл бұрын
I love these videos! Please make more like this!
@CoffeeAddictEvan
@CoffeeAddictEvan Жыл бұрын
I think if you use what's called the midpoint circle algorithm to draw your circles, instead of generating a polygon and then drawing it, you should be able to grab goombas much faster
@David_Rg
@David_Rg Жыл бұрын
dude, when I was a kid I hated soooo much the block one 😂 I still struggle with it, ngl
@lightgodyt.
@lightgodyt. Жыл бұрын
It would honestly be amazing if you do more minigames!
@p6t158
@p6t158 Жыл бұрын
One of my favorite games
@bupp291
@bupp291 Жыл бұрын
These are so fun! I'm actually taking a lot of inspiration from these videos for my final project in my Master's degree for Biomedical Engineering. It involves automating a precise specimen sampling mechanism using image recognition, deep learning, and pyautogui. Thanks for the tips! 😃
@CodeNoodles
@CodeNoodles Жыл бұрын
That sounds amazing! Good luck!
@bupp291
@bupp291 Жыл бұрын
@@CodeNoodles Thank you! I'll let you know how it goes 😃
@Kirby_Super
@Kirby_Super Жыл бұрын
Ok this sounds insane, and would require you to play through the story to unlock them, but what if you automated the Boss Mini games?
@YoloYester94
@YoloYester94 Жыл бұрын
You should do coin minigames from Mario Party DS like Penny Pinchers.
@EP1CxEMAN08
@EP1CxEMAN08 Жыл бұрын
Let's go! Impossible difficulty CPUs
@agamerfan6647
@agamerfan6647 Жыл бұрын
In case no one else has said it, pyautogui probably didn't work because it uses older methods of doing stuff that aren't always compatible with newer software, so it doesn't even see the key presses. This may have been the case with your "DS". Pydirectinput solves this problem by using newer methods. At least, that's my understanding.
@oclone120
@oclone120 Жыл бұрын
Glad to know my Domino Effect PB is better than a robot
@Haagimus
@Haagimus Жыл бұрын
Bro! One of the Warioware games!!
@PokeyYapper1991
@PokeyYapper1991 Жыл бұрын
new hardest!
@kronkolweg5917
@kronkolweg5917 Жыл бұрын
Maybe you could try rail riders. I think that one might be interesting. Or maybe try a 1v3 or 2v2 like cube crushers.
@frenchtheguy
@frenchtheguy 7 ай бұрын
LET'S GO Mario party ds
@pantheonmaker9437
@pantheonmaker9437 Жыл бұрын
I’d be interested in seeing one of þese ais playing story mode
@Leekodot15
@Leekodot15 Жыл бұрын
I think you were on to something with the scrapped solution for detecting the grid. But you needed to look for the shapes in a blue outline afterwards. THEN you could automate the shapes.
@noyz-anything
@noyz-anything 8 ай бұрын
once you're done with mario party, maybe try automating pac-pix
@zixea3318
@zixea3318 Жыл бұрын
I think the goomba game could just be solved by drawing the circle even slightly smaller
@CrabGuyy
@CrabGuyy Жыл бұрын
comment for the algorithm because i really like this video
@SubroOrbus
@SubroOrbus 7 ай бұрын
CodeNoodles' program vs Nintendo's program!
@LetsPlayKeldeo
@LetsPlayKeldeo Жыл бұрын
I hope I see a codenudel and Codebullet crossover one day !
@pablojp3498
@pablojp3498 Жыл бұрын
Loved the vid
@Gettenhart
@Gettenhart Жыл бұрын
This is codebullet but with actual coding! 😂 Cheers
@Heeter
@Heeter Жыл бұрын
More videos like this
@steelplasma256
@steelplasma256 Жыл бұрын
5:57 I wouldn't call it finished yet. The circle is too large even the opponents circle is smaller than yours. Also it doesn't need to be a perfect circle, a 9 sided polygon would be much faster to draw and look good enough.
@CodeNoodles
@CodeNoodles Жыл бұрын
For whatever reason, the game doesn't recognize polygons with a low number of points, so I increased the number of point one by one until it was always capable of being recognized. Also I forgot to mention it in the video, but the circle automatically changes size based on how close the bob-ombs are to it, but it still might mess up.
@CommanderKappa
@CommanderKappa Жыл бұрын
​​@@CodeNoodlesou might as well add the feature that the progranm recognises the gombas mooving direction and adjust the coordinates accordingly
@beesree39
@beesree39 Жыл бұрын
2 questions i have regarding goomber 1. will it be checking for golds? 2. could you make it pause if bobombs are too close? or maybe just make the circles smaller?
@supremeruby2114
@supremeruby2114 Жыл бұрын
Oh hey I use visual code edtior too!! Nice!
@RooMan93
@RooMan93 Жыл бұрын
Ahh! sudden TwoMinutePapers outro at 12:53
@sahilhossian8212
@sahilhossian8212 9 ай бұрын
Lore of Using Image Recognition to play Mario Party Minigames momentum 100
@Chackravartin
@Chackravartin 11 ай бұрын
This may aswell be magic as far as im consered
@johnappleseed3428
@johnappleseed3428 Жыл бұрын
damn i love domino effect i got skilled at it as a kid that this play seemed so slow
@Pheonix1328
@Pheonix1328 Жыл бұрын
For the second one, is there a way you could have wrote a mini program that would have wrote out the coordinates and all you had to do would be to click on the corners?
@Luigifan4ever11
@Luigifan4ever11 Жыл бұрын
I'm curious - for Goomba Wrangler, did you try to make it prioritize Golden Goombas when they were far enough away from a Bob-Omb? Or is that a worse strategy?
@Derrick_H
@Derrick_H Жыл бұрын
Could you get the approximate vector of the goombas and basically lead them?
@blanana_m
@blanana_m Жыл бұрын
PYDIRECTINPUT WOOO MY FAVOURITE LIBRARY
@then00btitan96
@then00btitan96 Жыл бұрын
the goat is back
@GarfieldWithAHat
@GarfieldWithAHat Жыл бұрын
Domino effect made me think the computer itself is using python to play. You were literally neck and neck
@Silv3rM4st3r
@Silv3rM4st3r Жыл бұрын
I would love to see more.
@bluegem8582
@bluegem8582 Жыл бұрын
so this is how i learn that domino effect has a fail state if you take to long, huh
Adding Dungeons, Combat, and More to 2D Minecraft
8:35
CodeNoodles
Рет қаралды 26 М.
Using Image Recognition to Automate More Mario Minigames
10:19
CodeNoodles
Рет қаралды 118 М.
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 1 МЛН
Please Help This Poor Boy 🙏
00:40
Alan Chikin Chow
Рет қаралды 14 МЛН
Image Recognition DESTROYS Mario Minigames
13:35
CodeNoodles
Рет қаралды 733 М.
Oh, wait, actually the best Wordle opener is not “crane”…
10:53
How I Would Design a Pokémon Game | Devlog
10:44
Ryan Nein
Рет қаралды 1,9 М.
Making a Fake Multiplayer .io Game
11:03
Gambit
Рет қаралды 128 М.
How I Made Kirby Maker
9:21
CodeNoodles
Рет қаралды 665 М.
Training AI to Play Pokemon with Reinforcement Learning
33:53
Peter Whidden
Рет қаралды 7 МЛН
500 People vs. 1 AI vs. 1 Pro. Who's better at Mario?
40:54
raysfire
Рет қаралды 642 М.
Langton's Loops: The cellular automaton that copies itself
12:01
davbrdavbr
Рет қаралды 513 М.
The Code That Makes Mario Move
9:53
NesHacker
Рет қаралды 536 М.
Why Some 1-Ups Don't Flicker Before Disappearing
11:46
pannenkoek2012
Рет қаралды 528 М.