AI Learns to Speedrun Mario

759,001
1,836
Published 2023-08-28
#ai #mario #reinforcementlearning
SUBSCRIBE and I'll make your AI ideas.

This video is absolutely insane. I made an AI that speedruns Mario, and it might have hit the speedrun record. You have to watch to find out :)

Huge shoutout to uvipen on github. I literally could not create this without them.

follow my twitter (or X): twitter.com/_kushgupta

All Comments (21)
  • "For every second Mario stays alive, he receives negative punishment" 💀
  • @helloyanis
    The best way to train an AI on a game is to not do the same level over and over again. Or the AI will be godlike at one single level and just very bad at others. If you diversify the training process il will take longer but the AI will be way better. Try doing this and then putting the AI on a level it has never seen before and you'll be surprised by how quick it learns it!
  • @happyboy07685
    5:58 I actually think you go faster with a backwards jump. Granted, it only saves a few miliseconds, but it counts that the AI knows how and to do it.
  • @Kisini03
    1:22 is when the ai is born and took 6mins and 44secs to get a record, scary.
  • @Octobeann
    6:00 i don't know the exact reason but due to a quirk with the physics mario actually accelerates faster backwards, TAS speedruns will also use backwards jumps to reach top speed as fast as possible.
  • @jamiepiccione3853
    Next you should try to make an AI beat FNAF. (Even though someone probably already did that.)
  • @Rikysonic
    6:20 Speedrunners: we must save this 0,35s framerule somehow AI: I'm 15s away from the record, 𝙡𝙞𝙩𝙚𝙧𝙖𝙡𝙡𝙮 𝙖𝙡𝙢𝙤𝙨𝙩 𝙩𝙝𝙚𝙧𝙚 :𝘿 jk, obv great video and great work, but
  • @blitzgerald
    this kind of content is so entertaining, if you continue to make video game content like this I will absolutely support you!
  • 6:24 This is why money should be outlawed, and I am ashamed that you wouldn’t even TRY to steal. How would training an AI even COST money?!?! HOW are you even putting UP with that?!?!
  • You would be surprised how much theory goes into SMB1 speedruns at the top level. People will literally spend thousands of hours on improving by a few milliseconds, that is how optimized the game is at this point.
  • @A_Goose_YT
    fun fact: you got shouted out by film theory :D
  • @rarebrockstark6219
    This is like Mark Rober "I may suck at Mario, but im really good at coding (mark=engineering), so im actually really good at Mario
  • @OpaqueSleet7802
    After the AI masters SMB1 I would like to see it attempt the lost levels, it's much harder so I wonder how the AI would figure out how to get past some of the harder parts, specifically ones where hidden blocks are required to progress, or how to use the wind to do longer jumps. Since SMB1 and the lost levels have the same physics the same AI could probably be used. I subscribed to see your next uploads! :)
  • @hakuizunami6421
    Pov Minecraft redstone people trying to use Redstone to solve any problem
  • @happyboy07685
    my man made the smart idea of making the channel with experience