AI Learns How To Play The Worlds Hardest Game

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 293

  • @TylerMommsen
    @TylerMommsen  Місяць тому +64

    👉 Try Brilliant for free for a full 30 days at brilliant.org/TylerMommsen and you’ll also get 20% off an annual premium subscription.

    • @jimsvolt
      @jimsvolt Місяць тому

      Big fan! Could you create a tutorial with theories on coding custom neural networks using different genetic algorithms? Maybe take a problem-based approach, walking us through how to solve it step-by-step,because they are no where to be found🥲

    • @titok0018
      @titok0018 25 днів тому

      I dont get it why you didnt just download the game? adobe has a debug player which can play the game, if you have swz file

    • @GMAN-l9p
      @GMAN-l9p 24 дні тому +1

      Copied code bullet he did it 6 years ago

  • @kylemorris5338
    @kylemorris5338 Місяць тому +1497

    Does the AI have any sensors with which it can see the world, or is it just learning the ideal set of movements?

    • @Woggy11
      @Woggy11 Місяць тому +133

      That would be helpful if the AI doesn't see.

    • @Ranamo_
      @Ranamo_ Місяць тому +483

      He uses ai that just brute forces until get the ideal result. It doesn't have sensors

    • @blazer9547
      @blazer9547 Місяць тому +25

      Neural network rewiring

    • @palmossi
      @palmossi Місяць тому +23

      It doesn’t need sensors because thats not how the ai works

    • @Ranamo_
      @Ranamo_ Місяць тому +61

      @@palmossi this AI doesn't need sensors but some other have them

  • @DragonBombGaming
    @DragonBombGaming 26 днів тому +141

    WHG nerd here, one thing I did notice was that the hitbox you used covered the entire perimeter of the square. In the original game, there are only 4 pixels that contain hitboxes, the middle of each side. If you go to the actual game you can see the blue circles can clip into your corners before you die. Js thought this was a fun fact for part 2!

  • @Julian-o6h
    @Julian-o6h Місяць тому +124

    The red square was fr flexing on us 7:51

  • @levithegamer8296
    @levithegamer8296 Місяць тому +371

    This seems extremely close to @CodeBullet 's video on making a ai on the hardest game.

    • @RadioactiveBluePlatypus
      @RadioactiveBluePlatypus Місяць тому +58

      This is probably parallel thinking. I doubt it was intentional.

    • @Lightyboii
      @Lightyboii Місяць тому +47

      Codebullets Video was likely a big Inspiration, but this one is still different since it's made in unity.

    • @RJTheJunior
      @RJTheJunior Місяць тому +9

      @@RadioactiveBluePlatypus take a look at the thumbnails...

    • @Boltclick
      @Boltclick 28 днів тому

      @@RJTheJunior The thumbnails are completely different. And even if they were similar, this thumbnail is a style this channel has used before, so it wouldn't be a good argument.

    • @StopBuggingMeGoogleIHateYou
      @StopBuggingMeGoogleIHateYou 25 днів тому

      Code Bullet predates this by six years, the visualizations are nearly identical, and even the style of "humor" is nearly the same. Extremely derivative content.

  • @zkesong
    @zkesong 28 днів тому +61

    1:35 I think you could use that to make a really cool game

    • @nightowl6055
      @nightowl6055 26 днів тому +5

      Reminds me of Baba is You when you make the sentence "wall is you"

    • @chadmcbrok701
      @chadmcbrok701 18 днів тому

      Real but it’d be super hard to make one with it

  • @springjackback_theyt
    @springjackback_theyt 27 днів тому +23

    6:02 if u wanna skip the sponsor segment

  • @justL1nc
    @justL1nc Місяць тому +28

    shoutout to the brave cubes who didn't make it out alive
    can't wait for part 2

  • @king_creeperz
    @king_creeperz Місяць тому +19

    The way TWHG collision works is it has multiple square dots on the player from the corners and directional sides. And enemies can something not touch them causing to not kill you, so this isn’t that accurate to the original (to be fair this was made in unity not flash)
    There is also corner clipping which saves a few frames lol

    • @andrei1959
      @andrei1959 Місяць тому

      i saw that on a video and i was thinking about it while watching

  • @Amasingearth
    @Amasingearth Місяць тому +56

    Ok Codebullet. I see you reuploading your old videos with new dialogue

    • @mrcelsius2928
      @mrcelsius2928 Місяць тому +7

      Ikr. This is literally a modernised copy

    • @valianty8
      @valianty8 26 днів тому +3

      Is this channel codebullet?

    • @Snowy10100
      @Snowy10100 13 днів тому +2

      ​@@valianty8Yep 100%

  • @True_Videos.
    @True_Videos. 13 днів тому

    Just found this channel on my recommended page and already enjoy it.

  • @TheRealRevolvingMadness
    @TheRealRevolvingMadness Місяць тому +66

    1:53 Missed opportunity to say "blue balls"

  • @alesonbrjk
    @alesonbrjk Місяць тому +12

    you could represent time in the 3rd dimension and use a pathfinding algorithm to the end and it becomes the fastest possible

    • @yablomas_
      @yablomas_ Місяць тому +1

      Ofc the method he used wasn’t very great but you would still need some kind of neural network since the things move

  • @megadynamike391
    @megadynamike391 20 днів тому +5

    2:35 Spartans be like

  • @camerongray7767
    @camerongray7767 24 дні тому +2

    Was OBSESSED with this game, played it through all of high school. Best I ever got was a 10 death run. The people who get perfect run are insane. I’m just not that good at games in general.

  • @Issei-sama
    @Issei-sama Місяць тому +3

    What a wonderful channel. Happy with what I just found, good luck to you, bro 📯🦈🔥

  • @Im_humanoid
    @Im_humanoid 11 днів тому +1

    Your gonna make it big you got 5k more subs in 4 weeks

  • @Salt2609
    @Salt2609 Місяць тому +2

    Bro you're new? I thought you're an old youtuber. Ngl your videos are great. New subs here🎉

  • @jemorasmussen1202
    @jemorasmussen1202 День тому

    i played this game recently, have finished it 4 times :D 1st time with around 2150 deaths, 2nd with around 200, 3rd with 31 and 3th wiht 27 :) a real love/hate relationship😂😂
    Edit: I dont mean to hate in any kind of way, so please take this in a constructive way, for the next videos with this! :)
    1: The red cube (player) is actually able to get hit without dying, while also being able to clip out of the map with its corners. This is because the hitbox of the cube only is in the very middle of each of the 4 sides.
    2: The blue dots only collides (changes direction) when the blue part of it touches the wall.
    3: CrazyGames' quality of "World's Hardest Game" is great in my opinion.
    Nice video!

  • @mz2760
    @mz2760 Місяць тому +3

    your channel has a great content

  • @Skivv5
    @Skivv5 Місяць тому +167

    This is what AI was meant for, not the creativity-killing slop it is usually used for now.

    • @ElxixAkaEpic
      @ElxixAkaEpic Місяць тому +21

      Exactly. It’s used like this, to add bots to games, etc. Sadly, it’s also used for art, music, and other things. This is why we need to stop using ai programs that take existing items and use those to produce “art”

    • @thatoneactualdude
      @thatoneactualdude Місяць тому +9

      @@ElxixAkaEpic ngl ai covers are kinda good tho (IF USED CORRECTLY AND FOR FUN) I've made some ai covers and trust me you'll be surpirsed on how some of the voice actors sing really well.

    • @trollsansofficial
      @trollsansofficial Місяць тому +3

      ​@@thatoneactualdude I use videogame music and click on prestemmed and see how bad it is

    • @romer21
      @romer21 Місяць тому +3

      ​@@ElxixAkaEpicmusic is also art, I think you have the wrong idea of what art is.
      This is the reason people (wrongly) call it AI "art", is not art, just illustrations

    • @Idkwholmao
      @Idkwholmao Місяць тому +3

      I use it for the funny, honestly.
      I love the chaos you can create!

  • @8bitbunnie936
    @8bitbunnie936 Місяць тому

    I'd love to see more of this, man!

  • @AmineGM73
    @AmineGM73 Місяць тому +51

    Can you do Geometry Dash next?

    • @katTheGreat
      @katTheGreat Місяць тому +7

      Its already done a million times, plus its very easy to mod in.

    • @yeeterdeleter0117
      @yeeterdeleter0117 Місяць тому +4

      The *real* world's hardest game

    • @digitaldissapointment
      @digitaldissapointment Місяць тому

      Tu tu tu tu tuuuuuuuu
      Tu tu tu tu tuuuuuuuu

    • @oreocookiedoge6077
      @oreocookiedoge6077 28 днів тому +1

      please do

    • @bop9444
      @bop9444 11 днів тому

      ​@@katTheGreatThe AIs that have been used before are either in a crappy copy of Geometry Dash, or are just simulated using TAS to look like AI

  • @Epic_Sliceer
    @Epic_Sliceer 27 днів тому +1

    "Ai learns to play geometry dash" would be my fav vid to watch (so plz make one)

  • @octi4684
    @octi4684 12 днів тому

    i would love to see this with the entire game

  • @SlourpifyPlays
    @SlourpifyPlays 18 днів тому

    I NEED MORE OF THIS

  • @SomeRandomStuff-nw6yp
    @SomeRandomStuff-nw6yp Місяць тому

    congrats on 12K subs!

  • @kirabuki
    @kirabuki 21 день тому

    just subscribed dude! you seem like an awesome guy

  • @LIFEISROBLOX_E
    @LIFEISROBLOX_E 24 дні тому

    holy how do you only have 10k sub with this quality

  • @JolleTeePlays
    @JolleTeePlays Місяць тому

    Your editing and the greenscreen cam look like danis. I love that.

  • @DJMetalstone
    @DJMetalstone Місяць тому +1

    The AI would still be in trouble if the levels designs would be randomly spawned after you die in each level . Cause then it can't brute force learn repeat the action because it can't apply what it learnt because the environment keeps changing.

  • @Davyjones777yt
    @Davyjones777yt 24 дні тому

    My friend coded a program that is basically a nitro type ban program. It types at about 350wpm, bt copy and pasting every letter, number, and symbol with almost no delay, depending on your pc

  • @Green-Code
    @Green-Code Місяць тому +1

    Bro is too good at making videos

    • @Portable_Sinco
      @Portable_Sinco Місяць тому

      🫵😮👊
      ✋️😂🤚
      👋😊👊

  • @shamilmadatov8832
    @shamilmadatov8832 9 днів тому +1

    im a game dev and
    how do you mess up collisions so creatively
    its literally such an easy code and you accidentally made something so much more complicated

  • @Karma_Phoenix
    @Karma_Phoenix 27 днів тому

    The red line that shows what point you’re at in the video broke for me so now I have a line that goes outside the screen 👍 (completely unrelated to the video)

  • @SmrtZ
    @SmrtZ 27 днів тому

    You should make a game using the original crash physics! That would be really interesting

  • @TheBestBalloon
    @TheBestBalloon 13 днів тому

    1:33 this reminds me if the time I was at a coding camp an I accidentally created super simple gravity physics that nobody ther knew and my teacher just deleted it with no second thoughts

  • @_GhostMiner
    @_GhostMiner 26 днів тому +4

    *0:35** you could've decompiled the game.*

  • @Adv3nture_
    @Adv3nture_ Місяць тому

    the first collision would actually make a great game

  • @Emerald-Block-FR
    @Emerald-Block-FR 18 днів тому

    The AI is a speed runner once it learns how to do all levels

  • @Patchy7929
    @Patchy7929 23 дні тому

    i remember Easly clearing most of this game in school and a one of my friends was so impressed

  • @endgamin1077
    @endgamin1077 4 дні тому

    I’m a welding major, why am I watching this at 11:30pm on a Sunday

  • @JiG_Yi
    @JiG_Yi 4 дні тому

    while i was forcing myself to blurr my eyes i kind of saw an illusion from the game

  • @Eros_666
    @Eros_666 Місяць тому +1

    Nice job ma man I really love your videos, i have question dose th AI memorise the movement or understand the movement? I’m asking because i wanna know the if the same Ai how pass certain level can be use in another levels

    • @TV-jm3vq
      @TV-jm3vq Місяць тому

      1. AI is a black box. We can't tell it learns or remembers.
      2. Yes, and this is faster learning in passing levels.

  • @BamBoy568
    @BamBoy568 26 днів тому +2

    You should do tetris because i want to see if it will use das (holding the button down) or hypertap (it moves it faster)

  • @arkfargon
    @arkfargon 26 днів тому

    This is actually harder, the red square has 4 points on it in the original (for the walls and blue circles), placed in the middle of the right, middle of the left, and on top and bottom. In this case the has a full hitbox all around it. Now before anyone says I'm hating, im just stating something. That square is a fucking pro at this game with what it did on stage 2 btw like that shit is hard af (i just realized king_creeperz and prolly a few other people already stated this fact, but im still commenting this either way :))

  • @CarlBenson-i8g
    @CarlBenson-i8g 27 днів тому

    this is giving energy

  • @Colgonics
    @Colgonics 18 днів тому +1

    Ethical or not, I’m making a X man with that algorithm.

  • @Gaston_15
    @Gaston_15 Місяць тому

    We need a ia that he can see, that is, knowing that he has something in front of him, like a wall, and that he learns what that object does on his own.

  • @thebanman2293
    @thebanman2293 23 дні тому

    The sponsor in this video is Brilliant

  • @BentleyTypeR
    @BentleyTypeR 5 днів тому

    Can we get one with all of the population? Kinda takes the fun out of it

  • @tEmMiEyAyAyA
    @tEmMiEyAyAyA 12 днів тому

    1:34 Omg i need a game like that it would be fun

  • @ReuZapper
    @ReuZapper Місяць тому +1

    i want more levels and the time laps should be 10x speed

  • @K0rgr4Nxe
    @K0rgr4Nxe 25 днів тому +1

    Art any% glitchless

  • @thekiwibirb274
    @thekiwibirb274 Місяць тому

    Make a part two I beg of you

  • @shadow_4378
    @shadow_4378 17 днів тому

    1:40 bro how does that even just casually happen lol

  • @muhammadhamza7891
    @muhammadhamza7891 Місяць тому

    man it'll be great if u can make tutorials on how to make this type of stuff

  • @nonononoonononononohaha
    @nonononoonononononohaha 28 днів тому

    1024 deaths on first map is insane

  • @DesmondAshton-Shaw
    @DesmondAshton-Shaw Місяць тому

    You are the next codebullet and it’s amazing

  • @Probuum100
    @Probuum100 Місяць тому

    you could speedrun painting with the mario star power up

  • @StijnVanDerTol
    @StijnVanDerTol 18 днів тому +2

    Code bullet knock off

  • @giohappy
    @giohappy Місяць тому +1

    no way, ive been playing alot of this

  • @NathanplaysRoblox-s8o
    @NathanplaysRoblox-s8o Місяць тому

    If you wanna know, code bullet did the exact same thing

  • @Just_A_Random_Idiot_3.14
    @Just_A_Random_Idiot_3.14 27 днів тому

    we used to have triple A artists
    soon we'll have triple A *battery* artists

  • @gemmutiga4029
    @gemmutiga4029 Місяць тому

    HOW R U NOT VIRAL???

  • @mestesso3908
    @mestesso3908 24 дні тому

    Now the ai must swear when it makes a mistake

  • @GuardianOfTheFloodedFortress
    @GuardianOfTheFloodedFortress 20 днів тому

    THIS is what ai should be used for

  • @-DeIeted-
    @-DeIeted- 22 дні тому

    Full game pls

  • @FanticDaBest
    @FanticDaBest Місяць тому +3

    2:35 And if they can walk…
    *Diddy has joined the chat*

  • @lowerstafe
    @lowerstafe 19 днів тому

    Bro forgot to add weight to collisions 💀

  • @Bread_37
    @Bread_37 27 днів тому

    This is why the ai uprising will happen, you forced it to play the worlds hardest game

  • @karmasense7457
    @karmasense7457 14 днів тому

    i may have found my dani replacement

  • @NoPixer
    @NoPixer Місяць тому +1

    “Little bit older”😭😭

  • @T4TheTidePod
    @T4TheTidePod 25 днів тому

    People see stuff like this and still think evolution is fake

  • @NosussyStuff-x9o
    @NosussyStuff-x9o 26 днів тому

    I've played this before on Roblox... Strange it's just then published. I played it like a year ago

  • @hoxvirus3423
    @hoxvirus3423 7 днів тому

    how do i make an ai simulation like this. Its so cool, great vid

  • @gamemod10GD
    @gamemod10GD 29 днів тому

    Here at 12k (had to say it before u hit 1M

  • @sharvansingh7013
    @sharvansingh7013 Місяць тому +1

    what's background music?

  • @ImaSPY-s5d
    @ImaSPY-s5d 24 дні тому

    yeah do more levels but do like the top 3 best AI players

  • @mister_koshkin
    @mister_koshkin 22 дні тому

    2:35
    What if the kid does learn to walk at day 1? Do you make him reproduce? XD

  • @quintopia
    @quintopia Місяць тому

    Isn't that two different AIs? One for each level? Are you thinking of making a new AI for each of the other levels too?

  • @colon44
    @colon44 Місяць тому +6

    1:34 WHY WOULD IT HAVE PHYSICS???? WHY WOULD IT COUNT AS A PHYSICS OBJECT AT ALL??? Is this a Unity thing???

    • @ric8248
      @ric8248 Місяць тому +2

      To use the collision system

    • @gasterweed8333
      @gasterweed8333 Місяць тому +1

      yeah, unity its like that xddd
      its horrible the first time and then you learn how to turn it off

  • @DOCtorActoAntohich
    @DOCtorActoAntohich Місяць тому

    fun stuff to mess with. sadly a genetic algorithm bruteforces a sequence of actions for a specific level that lets you beat it, and a greedy algorithm ("the closer to finish the better") might troll you on levels where path to finish is not like a straight line
    also i assume it's painfully slow to train not only because it's glorified rng, but also cos you're tied to unity's tickrate :(

  • @M0nochr0me-tb
    @M0nochr0me-tb 23 дні тому

    “the game doesn’t have any glitches”
    the game - 1:34

  • @whtiequillBj
    @whtiequillBj Місяць тому

    is every level self contained or does the AI bring "experience" from the previous level?
    also would that make it easier if the AI already knew what its doing from the previous level?

  • @daepe
    @daepe Місяць тому

    Code bullet but underrated

  • @blazer9547
    @blazer9547 Місяць тому

    We want to see all levels.

  • @PurpleBug222
    @PurpleBug222 18 днів тому

    haha!
    i was charged with second degree murder.

  • @TauP420
    @TauP420 19 днів тому

    Do the last level!

  • @Sandw1chTurtle
    @Sandw1chTurtle 25 днів тому

    guys, im sad to tell you that unfortunately you can't type awesome to have the process bar go rainbow anymore

  • @Qwertysqu
    @Qwertysqu Місяць тому +1

    Give the ai ray casts

  • @mr_epok
    @mr_epok 29 днів тому

    1:35 seems good wdym

  • @wentaoqin1446
    @wentaoqin1446 25 днів тому

    This isn't the world's hardest game but it's literally called 'the world's hardest game'.

  • @Oligael10
    @Oligael10 Місяць тому

    When Subway Surfers AI? (well, this is a little difficulty cuz in the game you run faster after pass a long time playing, if you wanna make it, it's going to be fun, hehe)

  • @M-sound23
    @M-sound23 Місяць тому

    New sub❤️

  • @TheMadProgrammersOfficial
    @TheMadProgrammersOfficial Місяць тому

    Now do it in VULKAN

  • @ric8248
    @ric8248 Місяць тому

    Artificial? YES
    Intelligence? HELL NO

  • @PedroDias-cd4hf
    @PedroDias-cd4hf 21 день тому +1

    0:28 This is the definition of og i have great memories with this game

  • @anton96400
    @anton96400 17 днів тому +1

    Not actually ai, just bruteforcing.

  • @cachamuertos
    @cachamuertos 25 днів тому +2

    Why do so many "AI learns to play..." videos rely on recreating games from scratch or using low-quality clones? I get that having full control over inputs and outputs makes training easier, but it just feels off. There was one video, though, where someone trained an AI to play Ultrakill using only visual input, which was way more engaging to watch, train, and test. It made the experience feel closer to how an actual player would approach the game. Great video overall! I hope we see more AI setups that lean on true computer vision to play games in the future.