AI Learns to Play SUPER MEAT BOY (using Reinforcement Learning)

  Рет қаралды 10,230

Coderboi

Coderboi

Күн бұрын

In this video we will be teaching an A.I. how to beat Super Meat Boy. We will be using neural networks and evolutionary algorithms to beat this video game with the help of machine learning. We will first make the game using Python and PyGame, after which we will add the AI and train it to play the game.

Пікірлер: 100
@coderboi5191
@coderboi5191 Жыл бұрын
Subscribe so meat boy can save his girlfriend. Also feel free to check out the code here! - github.com/CoderboiYT/SuperMeatBoyAI
@Wizzkidwas
@Wizzkidwas Жыл бұрын
The humour in this is fantastic, loved it
@coderboi5191
@coderboi5191 Жыл бұрын
Thanks a lot! Glad you liked it :,)
@Technodog
@Technodog 2 жыл бұрын
For how good this video was I'm surprised it doesn't even have a 1k views
@coderboi5191
@coderboi5191 2 жыл бұрын
I'm glad you liked the video haha
@ishasharma1951
@ishasharma1951 2 жыл бұрын
Facts
@wandawiewiorka7283
@wandawiewiorka7283 Жыл бұрын
Now he have mote than 1k Booya
@ishasharma1951
@ishasharma1951 2 жыл бұрын
It's just fucking amazing. I literally did not saw the number of views and subscribers and jumped on the video. I seriously predicted that he must be having 100 k 200k subscribers. But damm. Keep up the good work Let me share it. Wait a minute
@coderboi5191
@coderboi5191 2 жыл бұрын
Thanks a lot for your kind words and for sharing the video! I'm really glad you enjoyed it, I'll try my best to make even better videos 😃
@GamerWolvenna
@GamerWolvenna Жыл бұрын
This was absolutely perfect. Instant subscribe. You deserve way more views because this is legitimately one of the most entertaining AI videos I've seen without being overdone.
@coderboi5191
@coderboi5191 Жыл бұрын
Thank you so much! :,)
@tylerfriesen4793
@tylerfriesen4793 2 жыл бұрын
Dude I love your deadpan sense of humor, it cracks me up! Keep it up!
@coderboi5191
@coderboi5191 2 жыл бұрын
Thanks a lot man, really happy you liked it!
@gbri
@gbri 2 жыл бұрын
This video is awesome, commenting for the algorithm, you deserve it, I was impressed when I noticed this had only 32 views
@coderboi5191
@coderboi5191 2 жыл бұрын
Thanks a lot for your kind words! I'm glad you liked the video 😃
@celloj3703
@celloj3703 6 ай бұрын
Subscribed. Bro has everything: the comedy, the knowledge, the effort. You deserve it, and many more to come
@stickanimation9888
@stickanimation9888 Жыл бұрын
nice work
@coderboi5191
@coderboi5191 Жыл бұрын
Thanks a lot!
@Gunden488
@Gunden488 Жыл бұрын
Pretty solid video. Good music
@coderboi5191
@coderboi5191 Жыл бұрын
Thank you so much! The KZbin music library is pretty nifty 🎶🎶🎶
@lizzleloo6833
@lizzleloo6833 Жыл бұрын
You are hilarious. Loved the video❤️
@coderboi5191
@coderboi5191 Жыл бұрын
Thank you so much!
@midnightgd2
@midnightgd2 Жыл бұрын
This guy is so underrated
@coderboi5191
@coderboi5191 Жыл бұрын
Thanks a lot! 🤠
@midnightgd2
@midnightgd2 Жыл бұрын
Np
@gustavofrisk
@gustavofrisk 2 жыл бұрын
Why doesn't this video have 10000 likes yet?
@gagescheit2447
@gagescheit2447 Жыл бұрын
I love these AI training videos
@coderboi5191
@coderboi5191 Жыл бұрын
Same! They’re really fun to make as well, you never know what the whacky AI is gonna do 👀
@leventevegh3891
@leventevegh3891 2 жыл бұрын
keep up the good work coderboi very nice video (:
@coderboi5191
@coderboi5191 2 жыл бұрын
Thanks a lot! Glad you liked it :)
@Engalfe44
@Engalfe44 Жыл бұрын
Amazing video!
@coderboi5191
@coderboi5191 Жыл бұрын
Thanks a lot!
@drkaushikidwivedee4684
@drkaushikidwivedee4684 Жыл бұрын
Extremely entertaining video
@coderboi5191
@coderboi5191 Жыл бұрын
Glad you liked it!
@htdchannelyt99
@htdchannelyt99 Жыл бұрын
I Liked Your Videos!
@coderboi5191
@coderboi5191 Жыл бұрын
Thank you so much!
@TrueMose
@TrueMose Жыл бұрын
This is such a cool video lol The level editor was smart
@coderboi5191
@coderboi5191 Жыл бұрын
Thanks haha, probably could’ve made the levels manually in the time I spent coding the level editor 😅
@leodmans
@leodmans Жыл бұрын
I thoguht you have 1 million subs from this pure content but less than 1000 and 5k views it deservers more !
@coderboi5191
@coderboi5191 Жыл бұрын
Thank you so much!!! Super glad to have the viewers and subscribers that I do. Can't believe even 300 people chose to subscribe :,)
@RhythicManRhythm
@RhythicManRhythm Жыл бұрын
This is pretty cool and interesting.
@coderboi5191
@coderboi5191 Жыл бұрын
Glad you liked it!
@aGj2fiebP3ekso7wQpnd1Lhd
@aGj2fiebP3ekso7wQpnd1Lhd Жыл бұрын
Wonderful
@coderboi5191
@coderboi5191 Жыл бұрын
Thank you so much!
@MonkeyBobReacts
@MonkeyBobReacts Жыл бұрын
UNDER RATED AF
@coderboi5191
@coderboi5191 Жыл бұрын
THANKS FAM :,)
@MonkeyBobReacts
@MonkeyBobReacts Жыл бұрын
@@coderboi5191 💖
@jamelwalker4881
@jamelwalker4881 Жыл бұрын
Great vid
@coderboi5191
@coderboi5191 Жыл бұрын
Thank you so much!
@ashishvarma6432
@ashishvarma6432 2 жыл бұрын
Great effort❤
@coderboi5191
@coderboi5191 2 жыл бұрын
Thanks a lot! ❤️❤️❤️
@ashishvarma6432
@ashishvarma6432 2 жыл бұрын
@@coderboi5191 I was interested in this type of neural networking stuff and am planning to start with it so can you suggest some direction that how to start with it. Thank in advance:)
@coderboi5191
@coderboi5191 2 жыл бұрын
I'd definitely recommend learning python and then taking Andrew Ng's Machine Learning course on Coursera. If you can stick with it, by the end you will have made some cool projects and can start on his neural networks specialisation on coursera as well. Both of the courses are well made and go over everything from the basics. Best of luck on your ML journey!
@ashishvarma6432
@ashishvarma6432 2 жыл бұрын
@@coderboi5191 thanks for you suggestion❤
@thenextbigthing1393
@thenextbigthing1393 2 жыл бұрын
@@coderboi5191 Nice
@bodkimalone
@bodkimalone 2 жыл бұрын
Nice vid codebu...one sec, this isn't code bullet who is this?
@coderboi5191
@coderboi5191 2 жыл бұрын
There is an imposter amogus 👀
@kellerford7899
@kellerford7899 2 жыл бұрын
LES GO CODERBOiii
@coderboi5191
@coderboi5191 2 жыл бұрын
LETS GOOOOOOO
@zorglox1905
@zorglox1905 Жыл бұрын
loved it gg
@coderboi5191
@coderboi5191 Жыл бұрын
Thanks a lot! Glad you liked it
@execdd17
@execdd17 2 жыл бұрын
Cool video! Can you share the code? I’d love to see the ML/GA part in particular.
@coderboi5191
@coderboi5191 Жыл бұрын
Thanks a lot! Really sorry for the late reply, you can find the code here github.com/CoderboiYT/SuperMeatBoyAI Sorry if it's a bit confusing, I didn't make it to be anywhere close to production ready haha. There's a great playlist here which you can follow to understand how the ML code works kzbin.info/aero/PLZ1QII7yudbebDQ1Kiqdh1LNz6PavcptO
@radanium
@radanium Жыл бұрын
You should make every motion like walking or jumping recorded as keypresses (so basically the way a player plays a game) then you boot up real Super Meat Boy and let the best AI do the levels for you.
@kaushikid1
@kaushikid1 2 жыл бұрын
👏👏👏
@nammnamstudios
@nammnamstudios Жыл бұрын
i have beaten both super meat boy games
@coderboi5191
@coderboi5191 Жыл бұрын
That’s impressive!
@TheRedMelody
@TheRedMelody 2 жыл бұрын
cool
@coderboi5191
@coderboi5191 2 жыл бұрын
Thanks a lot!
@korylinkin
@korylinkin Жыл бұрын
amazing video! can you make an AI that beats casino dice?
@coderboi5191
@coderboi5191 Жыл бұрын
Thanks a lot! Might be difficult to beat a random dice but if it’s a loaded dice it might be possible. Trying to win big in Vegas? 👀😏
@korylinkin
@korylinkin Жыл бұрын
nono im just curious about what kind of strategy the agent could came up, the problem has a nice reward so the ai could be very intrested (i think haha). im trying making one but i dont know how to approach the problem, will a LSTM help? will a very deep network work? its a simple game, betsize , win chance and direction , the objective of the agent will be make infinite bets (kind of stable strategy) and balance bigger than 0 , will the agent use fourier? small bets? im very curious about a genetic approach. how can a set that variables into a genetic algorithm? would it help that way? simple but maybe not (:
@coderboi5191
@coderboi5191 Жыл бұрын
@@korylinkin That's a good experiment to try actually. I think you could use an LSTM and give the past x rolls as the input, action can be how much to bet and reward can be the money lost/gained. I think you can make an LSTM using Keras and train it using evolutionary algorithms using PyGAD. If you want something more customised you can follow this playlist (kzbin.info/aero/PLZ1QII7yudbebDQ1Kiqdh1LNz6PavcptO) on how to train genetic AI, make your own LSTM from scratch in numpy, and write your own function to mix the LSTM weights of 2 parent LSTMs.
@korylinkin
@korylinkin Жыл бұрын
​ @Coderboi i will try to do some of that, thank you for the playlist. If you're intrested you can use the casino stake RNG for the roll of the dice, it feels more "random" to me than using a simple random js function and is the same generator as the real casino uses. I have one question, could the action be three things at the same time? (how much to bet , how much the win chance is and the side of the bet ) About the reward i think that it could be the amount of bets because if you can make a bet your balance is bigger than 0 and if you can make infinites bets it is like you are winning right? These days in casino you dont have to be in profit you need just a stable wagger strategy and claim the rakeback :D
@phonetyx
@phonetyx Жыл бұрын
i know im late to this vid (im also comment 100 hey) but i dont agree when you said "they arnt learning how to paly the game they just memorizing how to play the level" that is how i got through a majority of the later stages, i basically memorizes an input sequence that would get me through the level, so in my eyes that 100% counts as learning how to play the game
@doriothman9400
@doriothman9400 Жыл бұрын
Was trying to run the code, but noticed the folder with all the images for the game were missing. Would you be able to add that to the git?
@coderboi5191
@coderboi5191 Жыл бұрын
Oops my bad, added!
@doriothman9400
@doriothman9400 Жыл бұрын
@@coderboi5191 Thank you! I ended up adding it in myself. Also noticed you used bfs for the path finding. I reccomend using A* instead if you decide to expand or revisit the project. Super cool work!
@coderboi5191
@coderboi5191 Жыл бұрын
Nice! I should’ve used A* but I was in a hurry and scalability wasn’t an issue for a small project so I just used DFS but good point, thanks!
@ANGELEMN
@ANGELEMN 2 жыл бұрын
Hermosooooooooo
@walidmat8972
@walidmat8972 Жыл бұрын
full tutorial whit code will be moooooore interesting
@coderboi5191
@coderboi5191 Жыл бұрын
Definitely something I want to make in the future, glad there's some interest :D In case I make one, would you like to see the game dev part as well or just the AI part?
@walidmat8972
@walidmat8972 Жыл бұрын
@@coderboi5191 I think the majority of people who would like to create AI like this, want to use it on already existing games . so maby skiping the game creating parts will be a time and efforts saving for you .
@coderboi5191
@coderboi5191 Жыл бұрын
@@walidmat8972 Got it! I'll keep that in mind :)
@CastleCrashser
@CastleCrashser 6 ай бұрын
6:04 = super meat boy ai
@grahamtek
@grahamtek Жыл бұрын
Make the ai get 100% completion
@coderboi5191
@coderboi5191 Жыл бұрын
Challenge accepted 🫡 this will break me
@jjoyce222
@jjoyce222 Жыл бұрын
06:04
@coderboi5191
@coderboi5191 Жыл бұрын
RIP my watch time 💀
@jjoyce222
@jjoyce222 Жыл бұрын
@@coderboi5191 Your Welcome
@napoleon1227
@napoleon1227 Жыл бұрын
who replaced codebullet with some singaporean guy?
@coderboi5191
@coderboi5191 Жыл бұрын
Me: Mom can we have Code Bullet? Mom: We have Code Bullet at home Code Bullet at home:
@iNeon-03
@iNeon-03 11 ай бұрын
420th like
@tabbpanell2079
@tabbpanell2079 2 жыл бұрын
ƤRO𝓂O𝕤ᗰ
@coderboi5191
@coderboi5191 2 жыл бұрын
Thank you 🤨
@stuststicky1899
@stuststicky1899 9 ай бұрын
Help my computer has a virus!
@HuxaifaYT
@HuxaifaYT 2 жыл бұрын
Best part 11:28
@coderboi5191
@coderboi5191 2 жыл бұрын
😭
@HuxaifaYT
@HuxaifaYT 2 жыл бұрын
@@coderboi5191 hey you slap unity c# in my brain
@drkaushikidwivedee4684
@drkaushikidwivedee4684 Жыл бұрын
The whole video is too good.11:28 is the end of this fantastic video.❤️
AI Learns to WALK 3D
20:19
Code Bullet
Рет қаралды 2,2 МЛН
I Created An A.I. to DESTROY Tetris
17:25
Code Bullet
Рет қаралды 3,3 МЛН
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 40 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 107 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 67 МЛН
ACTUALLY Beating Super Meat Boy As Tofu Boy
32:57
Gosu Garage
Рет қаралды 2,5 МЛН
How Super Meat Boy Changed Indie Gaming Forever
8:44
Button Mash
Рет қаралды 20 М.
super meat boy is easy
15:47
Broke Boys Entertainment
Рет қаралды 259
Training AI to Play Pokemon with Reinforcement Learning
33:53
Peter Whidden
Рет қаралды 7 МЛН
Evolving Genetic Neural Network Optimizes Poly Bridge Problems
9:59
Super Meat Boy Forever - A Rotten Sequel
24:45
Meatball
Рет қаралды 346 М.
DESTROYING Donkey Kong with AI (Deep Reinforcement Learning)
29:46
Code Bullet
Рет қаралды 3,7 МЛН
A.I. Learns To Walk
16:15
Code Bullet
Рет қаралды 10 МЛН
A.I. Learns to Beat QWOP (World's HARDEST Game)
11:20
Coderboi
Рет қаралды 777
Super Meat Boy's PLATINUM Was A NIGHTMARE
17:36
3PointGamer
Рет қаралды 405 М.
Ужасное свидание🤯 #стальноймужик #жиза #еда
0:50
SteelMan XXL | Стальной мужик
Рет қаралды 3 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
0:12
Laro Benz
Рет қаралды 31 МЛН
Heavy package 🤭🤣 #demariki
0:25
Demariki
Рет қаралды 7 МЛН
Какая погода у тебя за окном? У нас вчера был ураган!
0:40