Tap to unmute

DESTROYING Donkey Kong with AI (Deep Reinforcement Learning)

Share
Embed
  • Published on Feb 16, 2026

Comments •

  • @comradebusman3
    @comradebusman3 3 years ago +19828

    As a wise man once said: “if your code works perfectly first try, it didn’t, you just haven’t noticed what’s broken yet”

    • @OneDapperFrog
      @OneDapperFrog 3 years ago +767

      I have never heard so much wisdom in a single sentence.

    • @CaspersUniverse
      @CaspersUniverse 3 years ago +152

      Truly inspiring

    • @stardragon8585
      @stardragon8585 3 years ago +292

      And you probably won't until you start testing the thing you needed it for 3 phases down the line, so it'll take you extra long to find where it is. Also with the collective luck of all people involved, it's a single misplaced negative

    • @CainXVII
      @CainXVII 3 years ago +47

      As a wise man once said: we don't talk about the last video

    • @tristanridley1601
      @tristanridley1601 3 years ago +107

      I once coded for 2 weeks without access to testing it, and had it working perfectly in 5 minutes. In my entire career this was my proudest moment.

  • @theirishninjasanimations
    @theirishninjasanimations 3 years ago +7321

    That whole "Ground? No." bit was painfully accurate to the game dev experience.

    • @Robyamdam
      @Robyamdam 3 years ago +63

      this 100%

    • @alucard4344
      @alucard4344 3 years ago +45

      No fucking way 345+ game devs are watching this...

    • @Quadr44t
      @Quadr44t 3 years ago +34

      Very relatable to my experience with "gamemaker5&6" in the early 00s.
      And that program should've made that whole process way easier.... 🤣

    • @Dr_mafario
      @Dr_mafario 3 years ago +59

      Collision in general is stupid hard to do from scratch. Unity? Kinda hard. Unreal? Less hard, I guess. Game maker? Still kinda hard. Even in my own custom made game engine, its way easier but…. still kinda hard :|
      Or maybe Im just really bad as a programmer, who knows

    • @Eis_
      @Eis_ 3 years ago

      @@syntex3664 Because that's the thing with programming, if you somehow made something work the first time, you should probably visit an exorcist.

  • @LlyricDragon
    @LlyricDragon 3 years ago +12095

    There is nothing more terrifying than when code works the first time immediately. How can we know it really works if we don't spend hours fixing the bugs?

    • @_marshP
      @_marshP 3 years ago +631

      "The code works flawlessly first try" is what happens to programmers when the world turns upside down.

    • @JansthcirlU
      @JansthcirlU 3 years ago +182

      Spoken like a true unit-test averse programmer!

    • @jimmyhirr5773
      @jimmyhirr5773 3 years ago +53

      Learn test-driven development. Then you will be surprised if it doesn't work immediately.

    • @oblivion_2852
      @oblivion_2852 3 years ago +198

      @jimmyhirr5773 believe it or not. Tests are also written with code. Which can also have bugs!

    • @MisterPyOne
      @MisterPyOne 3 years ago +80

      It happened once to me, I tested it like 10 times and it seemed to just work, it was for an assignment and honestly I just took that gift from the gods and it only had to work once more for the tutor to grade me and it did :). Honestly I don't know if I was just lucky it work 11 times in a row or it really actually just really worked first try.

  • @Livingike
    @Livingike 2 years ago +1790

    Now make a Donkey Kong AI that learns the best barrel throwing strategies and pit them against each other for eternity

    • @dreemurrdelm7865
      @dreemurrdelm7865 2 years ago +158

      But that was the first version of Donkey Kong he made, it threw infinity barrels.

    • @legaming4859
      @legaming4859 Year ago +80

      ​@dreemurrdelm7865 just give the ai a reload time so it can't spam

    • @ishu4227
      @ishu4227 Year ago +58

      give the barrels ai so they know when to climb and not climb arrows to fuck up with the mario/player ai

    • @ishu4227
      @ishu4227 Year ago +9

      ladders not arrows*

    • @Nikarus2370
      @Nikarus2370 Year ago +15

      Go full GAN. 2 AIs, DK and Jumpman trapped in never ending combat with eachother.

  • @InkyDustMan
    @InkyDustMan 3 years ago +8145

    I love how the second AI effectively decides to become a challenge runner by removing the part of it's brain responsible for jumping, just because it could-

  • @brobs0463
    @brobs0463 3 years ago +2623

    Code Bullet is kind of like an A.I himself. In his videos he get slightly more competent over time

  • @TheKing-fo4xo
    @TheKing-fo4xo 3 years ago +3129

    Every code bullet video is an event that should be treated with utmost respect.

  • @jthegamer360
    @jthegamer360 18 minutes ago

    Why dose the ChatGPT voice sound like the honest trailers guy

  • @fizipcfx
    @fizipcfx 3 years ago +1719

    as an Artificial Intelligence Engineer, I can confirm we tickle the balls of the reinforcement learning agents as a reward function. Its one of the best ones out there.

    • @pw7225
      @pw7225 3 years ago +28

      No ML engineer would call himself AI engineer.

    • @fizipcfx
      @fizipcfx 3 years ago +128

      @pw7225 correct, but the name of my university department is "Artificial Intelligence Engineering". i live with people who call themselves prompt engineers, soo who gives a fuck XD

    • @ki0w0-lordofwatersheep
      @ki0w0-lordofwatersheep 3 years ago +10

      ​@pw7225 so no ML engineer understands set theory? :p

    • @fizipcfx
      @fizipcfx 3 years ago +46

      Repent and believe in Jesus Christ i am just thinkin, that there is a religious programmer out there who uses all the resources he can to influence people on youtube comments without making a youtube video. He releases all these bots here expecting people to let go of their beliefs and follow Christianity. If he could give all this effort into philosophy and science, he would become an atheist

    • @yoshi6421
      @yoshi6421 3 years ago +8

      ​@fizip I just report the religio-bots. It's spam just like any other.

  • @cositayjack
    @cositayjack 3 years ago +2109

    Code bullet is probably the inner voice every programmer has while working on projects.

    • @lubraethecat
      @lubraethecat 3 years ago +88

      As a software developer by profession,
      Yes.
      This is precisely how it sounds

    • @curtiswfranks
      @curtiswfranks 3 years ago +71

      The swearing is especially accurate. I curse every single entity imaginable, mostly my computer and myself and anyone who dares to message me at the time.

    • @sjs9698
      @sjs9698 3 years ago +29

      esp the little part of him that goes 'hey let's use someone else's code for this'

    • @GamingProsAdventure
      @GamingProsAdventure 3 years ago +18

      @sjs9698 “I’ll ask chatGPT” has also become a voice for me

    • @tcarrotgaming1639
      @tcarrotgaming1639 3 years ago +14

      code bullet is the devil on my shoulder

  • @SneakyAxe992
    @SneakyAxe992 3 years ago +1080

    I absolutely love how accurate you show the process of coding, just fail after fail until somehow it works and you’re not really completely sure why but hey it works so it’s all good

    • @TheLtVoss
      @TheLtVoss 3 years ago +11

      Well have seen same yt creator's that show failures more regularly and everyone is doing good but CB is the master of this discipline and his very loyal sub show us that

    • @Tortellia
      @Tortellia 3 years ago +32

      There’s a Russian anecdote which, in translated form, goes something like this:
      « Dad, why does the sun go from east to west every day? »
      « East to west? »
      « Yes »
      « Every day? »
      « Yes »
      « I don’t know son, but better leave it alone »
      It’s a stupid anecdote, but one of my favourites when it comes to programming

    • @skierpage
      @skierpage 3 years ago +2

      There's test-driven development, where you write a test for everything that should and should not happen, e.g. jumpman jumps at least once per game, and over time more tests pass. It's a lot of work, but the benefit is it will catch regressions; as we see here when Jumpman sometimes flies into the air after Code Bullet thought he'd fixed gravity issues.

    • @nikolaoslibero
      @nikolaoslibero 3 years ago +4

      @skierpage I'd love to be able to apply TDD to game development, but the number of states and the non-deterministic means of reaching those states most games have means that you end up with very, very low coverage of the code base and/or end up pointlessly testing third party code. I've seen fat too many "tutorials" where the speaker just tests engine code

    • @bend.n
      @bend.n 3 years ago

      and then it suddenly doesnt

  • @desmolbean404
    @desmolbean404 Year ago +85

    4:31 The dead silence as CB flips off the player character block while it ascends to heaven is simply hilarious.

  • @rpsnider85
    @rpsnider85 3 years ago +690

    When you mentioned the jumping, or absolute lack of them doing it in NEAT, I instantly had a vision of you adding points for jumping over barrels and the AI dudes going balls first sailing back and forth over the barrels instead of going to the end. Just racking up massive points for themselves over and over again.

    • @GabriTheBotha
      @GabriTheBotha 3 years ago +10

      This

    • @HRIDOYKHAN-he7ss
      @HRIDOYKHAN-he7ss 3 years ago

      @GabriTheBotha Subscriber place
      #selimtune

    • @TopLaHats
      @TopLaHats 3 years ago

      ah, I see that you have done that... Ima kick you in the balls

    • @ClippyJoestar
      @ClippyJoestar 3 years ago +38

      Who needs a princess when god gives you testi-tickles

  • @RomanQrr
    @RomanQrr 3 years ago +320

    PPO is basically strapping the AI to an N-dimensional sled and punting it down the N-dimensional hill. You need to choose how big a sled to use, how much momentum to conserve, and even how the hill looks like. And in the end when you think you reached the bottom and looking for an N-dimensional cable car to take you up for more you find out that you are in a shallow N-dimensional depression somewhere half way down the N dimensional hill. Where N is the amount of weights you are using.

    • @MaxLennon
      @MaxLennon 3 years ago +12

      That's just gradient descent mostly, not really specific to PPO

    • @maartenbeute6742
      @maartenbeute6742 3 years ago +11

      I love 150 dimensional sleds on 150 dimensional hills, but it seems like a pretty good anecdote

    • @maartenbeute6742
      @maartenbeute6742 3 years ago +3

      @MaxLennon but the gradient descent is used to find the most optimal values for a neutral netwerk

    • @MaxLennon
      @MaxLennon 3 years ago +4

      @maartenbeute6742 yes but PPO is a specific algorithm describing how to leverage a neural network (actually two neural networks), so just describing how to fit the parameters of any model doesn't tell people very much. The method above could also be given as a description for how to do linear regression, for example. Or image classification. Or basically any machine learning task.

    • @MaxLennon
      @MaxLennon 3 years ago

      @maartenbeute6742 If you want to see how an explanation of the actual algorithm would look, this link should take you to my other comment where I explained it:
      ruclips.net/video/ovIykchkW5I/video.html&lc=UgxFRqioM8iaM4rJvs54AaABAg

  • @theglagglesland
    @theglagglesland 5 months ago +29

    6:28 Konkey Dong, God of Barrels

  • @yoface2537
    @yoface2537 2 years ago +153

    Life: gravity pushes you against the surface below you
    Code: gravity shuts off if you're touching the ground

    • @sshw_t
      @sshw_t 5 months ago +9

      I mean the correct way to make gravity function is to keep it running all time, it just cant decrease your Y position further than the ground

    • @SpaceIsAwesome0358
      @SpaceIsAwesome0358 5 months ago +2

      ⁠@sshw_t
      saw a RUclips short about this once, wouldn’t that mean that the downwards acceleration would build up or something?

    • @sshw_t
      @sshw_t 5 months ago +2

      When you jump, you apply a strong upward force. This is stronger than the constant downward force of gravity, so the player moves up. Once the jump force runs out, gravity is the only force left, pulling the player down. Gravity is always on, you just dont decrease the player's y-position if its equal to the ground level.
      so like in code example you would do smth like, decrease player Y unless the ground Y is lower
      player.y = Math.min(player.y + gravity_force, ground.y)

    • @chesschaser-q4y
      @chesschaser-q4y 3 months ago +1

      But the only reason you don't get pushed THROUGH the surface is because of normal reaction force, which counteracts gravity. So the net force acting on you is 0

  • @sonicexer1856
    @sonicexer1856 3 years ago +529

    DONKEY KONG?
    You surprise us with the most varied yet entertaining video games to let an AI learn.
    Thank you

    • @minkmiau
      @minkmiau 3 years ago +1

      I didn't expect him to make a donkey kong AI tbh.

  • @xanderwhitt9580
    @xanderwhitt9580 3 years ago +339

    Less than a minute in and he's already killing clones, and he's also learned and used a silenced gun too, this is definitely gonna be good

    • @hayond656
      @hayond656 3 years ago +11

      Imagine a Code Bullet Bingo with those stuff lol

    • @xanderwhitt9580
      @xanderwhitt9580 3 years ago +3

      @hayond656 dear God that would be hilarious

    • @Ari-8449
      @Ari-8449 3 years ago +3

      13:54 it was short lived

  • @bitteerloesmich
    @bitteerloesmich Year ago +22

    1:08 i hated dealing with these when I wrote my first game

  • @aidenwalmer
    @aidenwalmer 3 years ago +1377

    Despite your hatred of explaining, you did an amazing job defining and explaining each AI algorithm…while not simultaneously putting me asleep in the process. Great video and always very entertaining! 🔥

    • @evanedgar8698
      @evanedgar8698 3 years ago +12

      I agree, I leanred more from code bullet than high school

  • @wykipedia4199
    @wykipedia4199 3 years ago +2269

    Code bullet explains his coding better than my lecturers does and that’s saying something

  • @richardgozinya1435
    @richardgozinya1435 2 years ago +1836

    one of the best things about these is when your AI finds out a trick to your programming and starts exploiting you. funny as hell

    • @missionpupa
      @missionpupa 2 years ago +26

      Is it exploiting or failure to limit parameters? I mean the Ai just does what you asked it to do, it has no concept of cheating or exploitation.

    • @venuent_
      @venuent_ 2 years ago +34

      @missionpupaexploiting.

    • @Grebogoborp
      @Grebogoborp 2 years ago +73

      @missionpupaI mean the overwatch 2 AIs will walk through walls sometimes because they have found pixel wide gaps and can spam input movement commands every tick so they can just kinda clip through the walls then shoot you from under the map it’s not really a failure of parameters as much as a failure to block exploits

    • @NonsensicalSpudz
      @NonsensicalSpudz 2 years ago +3

      @Grebogoborp wait what

    • @Grebogoborp
      @Grebogoborp 2 years ago

      @NonsensicalSpudz flats has a video on it you should look it up it’s hilarious

  • @vandapanda6570
    @vandapanda6570 5 months ago +15

    I swear he has to re-learn making a working ground every time

  • @kiteal1
    @kiteal1 3 years ago +154

    You mentioned the RNG involved with the barrels, but fun fact about the OG donkey kong. Whether a barrel goes down a ladder or not is based on where the player is and what direction they are facing so you can actually control when the barrels go down ladders, which would have been cool to see how the AI learns to manipulate it
    Also a huge pain in the ass to code so who knows if it would have been worth it

    • @trim7911
      @trim7911 3 years ago +11

      Also would have been interesting to see how the AI would coupe with a four way joystick. You can't turn and travel on ladders. But that's beyond the scope CB is at ... For now.

    • @alaeriia01
      @alaeriia01 3 years ago +23

      ​@trim7911 the AI can use an 8 way joystick if it's Billy Mitchell.

    • @rstewa35
      @rstewa35 3 years ago +2

      @alaeriia01 lmao

  • @Deadplay945
    @Deadplay945 3 years ago +488

    He first learnt the whole AI thing and then went for the 2d sprites.
    This man is on another level.

    • @jebclang9403
      @jebclang9403 3 years ago +1

      @HRIDOYKHAN-he7ss What? Can you do English?

    • @sjs9698
      @sjs9698 3 years ago +6

      @jebclang9403 hey so what if they can't? don't be mean - this is one of the few chanels on yt where the comments aren't lethally toxic.

  • @meihauf
    @meihauf 2 years ago +1666

    Code Bullet really is the best inspiration. He doesn't hide or gloss over his mistakes and in so doing shows that coding really is a perpetual state of learning through trial and error.
    And then promptly forgetting everything while we binge our next dopamine fix instead of working.
    Seriously though, I really appreciate that you include the struggle of being human in your videos. It makes them so much more relatable.

    • @steveblack720
      @steveblack720 Year ago +1

      Not to brag or something, but.... I'm not sure that it is that hard unless you learned something. Floor not working is sort of close, but not for THAT long

  • @TheAdvertisement
    @TheAdvertisement 2 years ago +474

    Neat detail I noticed that wasn't brought up. At 2:46 you can see the player square falls all the platform a bit early, when it's only halfway off, which causes it to clip into the floor a bit. This is because the "laser" vector that detects if the floor is there is positioned in the middle of the square, and therefore doesn't detect the ground when the square is only halfway off.
    This is silently fixed at 2:58, where the square now only falls when it's fully off the platform. As you can see, the lasers are on either side of the square, making sure both have to be off the platform before it falls.

    • @barni_7762
      @barni_7762 2 years ago +27

      Calling it a NEAT detail is a little confusing but yeah, I also noticed that

    • @KI682H
      @KI682H 2 years ago

      probably neat how they realized it @barni_7762

    • @XYZsaid3
      @XYZsaid3 8 months ago +2

      Honestly as a programmer, I think that this comment will help a lot of headaches better than ibuprofen Lol

  • @Solesteam
    @Solesteam 3 years ago +764

    Codebullet getting scared of something working properly was hilarious.

  • @stoopidapples1596
    @stoopidapples1596 3 years ago +963

    I love how you somehow have the most inconsistent upload schedule, it takes you hundreds of attempts just to get code right per episode, and yet somehow you also have 2.7 million subscribers. Congratz!

    • @heavenstone3503
      @heavenstone3503 3 years ago +4

      It's fare to say he got these subs when he was more regular

    • @queenofpups
      @queenofpups 3 years ago +73

      ​@heavenstone3503was he ever really regular though? Even when he was posting more often the upload schedule was still pretty erratic

    • @HRIDOYKHAN-he7ss
      @HRIDOYKHAN-he7ss 3 years ago +1

      Subscriber place
      #selimtune

    • @EverTheFractal
      @EverTheFractal 3 years ago +41

      ​@Heavenstone long time subscriber, he's never been consistent. He's always had the charm though!

    • @ki11er24
      @ki11er24 3 years ago +2

      @heavenstone3503 cough enigma machine part 2

  • @hsw_53
    @hsw_53 3 years ago +300

    The square refusing to fall off after crossing the ledge unless it "looked down" was some real looney tunes stuff haha

    • @kelleroid
      @kelleroid 3 years ago +20

      I couldn't believe a coding channel with nearly 3M subscribers has to deal with the exact same shit as I did when I was really into Game Maker in my free teenager time

    • @Nyx42707
      @Nyx42707 3 years ago +4

      @kelleroid are you new to this channel?

    • @kelleroid
      @kelleroid 3 years ago +6

      @Nyx42707 Nope, just finally saw a moment I could very strongly relate to

    • @HRIDOYKHAN-he7ss
      @HRIDOYKHAN-he7ss 3 years ago

      Subscriber place
      #selimtune

  • @shinami3758
    @shinami3758 2 years ago +231

    The jokes and screwing around in the first 4 minutes got you a new sub. The "breath of fresh air" bonus is how you're not afraid to swear and genuinely enjoy what you do even when your code doesn't work.

    • @UpnaLab
      @UpnaLab 2 years ago +2

      I do not know. I love codebullet, but this video feels over the top, for me hard to watch, almost cringy, and weaker than usual in the technical part.

  • @shinysilverstardust
    @shinysilverstardust 3 years ago +205

    CodeBullet still having to watch tutorials on the most simple thing start to become more relatable the further I get in my software studies

  • @mairder6773
    @mairder6773 3 years ago +369

    I was half expecting your "AI learns to run" videos to be the only two videos in one year.
    Good for you to have another one. And us.

  • @AROAH
    @AROAH 2 years ago +2125

    I love the extremely 2020’s approach of using raycasting for floor detection. The original Donkey Kong programmer would have lost their mind. 😂

    • @WingMaster562
      @WingMaster562 2 years ago +139

      I too lost my mind for a bit

    • @MythicTF2
      @MythicTF2 2 years ago +206

      @WingMaster562 same tbh, I was just sitting here thinking "Wouldn't just a simple AABB collision algorithm be better?" but hey, he makes games on youtube for a living so he probably knows whats best

    • @treeck3724
      @treeck3724 2 years ago +449

      ​@MythicTF2 trust him, he doesn't

    • @teachersammy7423
      @teachersammy7423 2 years ago +78

      @treeck3724 such an unwieldy way to code, it's fun to watch though

    • @core3game
      @core3game 2 years ago +180

      Its resource heavy and unnecessary. If OG DK used ray casting EVERY FRAME TO SEE THE GROUND it would crash the game.

  • @TQ0
    @TQ0 5 months ago +3

    11:55 I love watching the singular mario suddenly replicating like a bacteria

  • @WH40ktyranids
    @WH40ktyranids 3 years ago +1454

    The fact that he has the Honest Trailers epic voice guy read the AI explanation made it so much better.

    • @zorglub667
      @zorglub667 3 years ago +61

      Was that a cameo or some text to speech generator we should all be aware of? 😄

    • @scottgatchell5049
      @scottgatchell5049 3 years ago +47

      ​@zorglub667 just what I was thinking.... HonestGPT

    • @DanieleGiorgino
      @DanieleGiorgino 2 years ago +15

      Took me a second to notice it was AI generated.

    • @zorglub667
      @zorglub667 2 years ago +7

      @DanieleGiorgino but how? If there's an epic voice guy AI generator, I must know 😄

    • @DanieleGiorgino
      @DanieleGiorgino 2 years ago +13

      @zorglub667 there are ais where you feed it a few minutes of voice and it can recreate it pretty well

  • @TheKz262
    @TheKz262 3 years ago +37

    22:05 That caught me off guard and now my face hurts from laughing

  • @jaesjmes5498
    @jaesjmes5498 3 years ago +631

    MUM, CODE BULLET JUST DROPPED ANOTHER VIDEOOOO!!! woo

  • @Smitology
    @Smitology 3 years ago +53

    There's a certain irony in Code Bullet disliking an AI's explanation of AI techniques and preferring his own human explanation

  • @justfeeldbyrne2791
    @justfeeldbyrne2791 5 months ago +7

    13:26 I defo wasn't distracted by the car the whole time 😭 I totally didn't need the recap

  • @bluepaperclip_
    @bluepaperclip_ 3 years ago +302

    As much as CodeBullet struggled, it was still impressive once he started driving over those ramps with relative ease near the end. Couldn't ask for better entertainment. The part where he made an AI was cool too.

  • @shanggosteen9804
    @shanggosteen9804 3 years ago +151

    Honestly, the whole part of debugging the gameplay and code was the most accurate representation of game development.

  • @keyb
    @keyb 2 years ago +897

    I actually really like how you explained everything!
    Most of the time when a youtuber makes “AI plays X” or “AI learns to Y”
    They don’t explain in more detail how they did it, or they skip over a lot of the crucial information when it comes to it.
    Thanks for going the extra mile and actually going into things, even if only a little bit.

    • @adfinder5791
      @adfinder5791 2 years ago +12

      we love code bullet

    • @efulmer8675
      @efulmer8675 2 years ago +22

      Code Bullet actually shoots the relevant knowledge into your brain. Hence the name.

    • @steviousmusic
      @steviousmusic 2 years ago +10

      "So as to how this thing works, -- your guess is as good as mine, I have no f*cking idea but at least it works"

    • @EvykhaitsSchmurf-tg7ge
      @EvykhaitsSchmurf-tg7ge 2 years ago +14

      "skip over a lot of crucial information" that precisely describes his explanation. No critique towards him, explaining that shit takes ages and I understand why he doesn't do it (it would also be boring af), but he doesn't explain it well.

    • @draketurtle4169
      @draketurtle4169 2 years ago +1

      @EvykhaitsSchmurf-tg7gehe doesn’t explain it well or in depth to every kind of code… he explains to us neruron activation monkeys in a way we will understand and at a level deep enough to explain some nugget of inform without boring us.

  • @JoeCnNd
    @JoeCnNd Year ago +9

    26:20, it always takes the shortest path, but the safest path would be for them to climb the far right ladder from 5th girder to 6th.

  • @RixityRick
    @RixityRick 3 years ago +57

    Instead of fixing the ladder glitch in PPO algo Code Bullet punishing the AI for falling off is such a good parent move

  • @raffel08108
    @raffel08108 3 years ago +152

    I always love seeing timelapeses of bug fixing in videos where someone shows themselves coding - Being a java developer myself, I can truly appreciate that :P

  • @baptistebauer99
    @baptistebauer99 3 years ago +150

    This is honestly one of the best, if not the best Code Bullet video there is. It was an absolute blast to watch

  • @zach5539
    @zach5539 Year ago +7

    21:52 is that... The Skyrim U.i. font?

  • @wolfwing5602
    @wolfwing5602 3 years ago +116

    The chaotic energy in these videos just keeps growing and I'm absolutely on board.

  • @adamantii
    @adamantii 3 years ago +70

    I love watching a successful programming channel that doesn't understand letters with hats on them either just like me! So quirky and relatable

  • @Nightstick24
    @Nightstick24 2 years ago +385

    24:15 There's a sentiment I can get behind! Instead of fixing the bugs, teach the AI to avoid them at all costs! Lol, this was an interesting video, thanks for comparing the three, I liked how you mentioned the strengths and weaknesses of them and how it's more like a "pick the best tool for the job" than it is "this one is the best".

    • @banishedpest115
      @banishedpest115 2 years ago +24

      Code bullet: *becomes game dev*
      Playerbase: *finds bug in game*
      Code bullet: “Where’s my ban hammer?”

    • @EEEEEEEE
      @EEEEEEEE 2 years ago +1

      E

    • @madgaming69420
      @madgaming69420 2 years ago +1

      Instead of paying money to fix the hole in the floor teach the baby not to fall in it

  • @ERY_MX
    @ERY_MX 8 months ago +2

    12:28 i already have this video popped out and in the corner of my game while i grind 😭

  • @kolkonut
    @kolkonut 3 years ago +20

    At 9:39, CB states "2 extra nipples" while adding 2 nipples to a nipple-less entity, presumably a human. However, we are aware that all humans have 2 nipples by default. Therefore, we can conclude that CB canonically has 0 nipples.

  • @pneumantic6297
    @pneumantic6297 2 years ago +99

    After talking to people that work with AI, one of the things they mostly agree on is that not even they have any idea what is going on in the back end.

    • @Hypernova7777
      @Hypernova7777 2 years ago +2

      What IS going on in the back end?
      That question is harder to answer than physics probably

    • @IAmUnderscore
      @IAmUnderscore 2 years ago +3

      @Hypernova7777Look up how neural networks function, it’s not actually very complicated on paper. The issue is that with enough nodes, it becomes impossible for humans to possibly follow exactly what’s happening in the “brain” of the AI.

    • @Hypernova7777
      @Hypernova7777 2 years ago +2

      @IAmUnderscore That's what I meant...
      I know the base stuff about nodes.

    • @IAmUnderscore
      @IAmUnderscore 2 years ago +1

      @Hypernova7777 Ooookkayyy….

    • @Hypernova7777
      @Hypernova7777 2 years ago +1

      @IAmUnderscore I took a class on this

  • @CheeeseGrilled
    @CheeeseGrilled 3 years ago +96

    As a person who has no idea how to code, I can say that your videos are very entertaining

  • @Trilles16
    @Trilles16 5 months ago +1

    18:25 I can’t unsee that one google ad when I hear this music

  • @Chevifier
    @Chevifier 2 years ago +189

    13:33 The AI finding a glitch and taking advantage of it is freaking awesome 🤣

    • @Alucard-gt1zf
      @Alucard-gt1zf 2 years ago +10

      Even spiffing brit isn't safe from ai

    • @nubbyboi6523
      @nubbyboi6523 2 years ago +18

      @Alucard-gt1zf The Genetic Algorithm is a perfectly balanced game with no exploits

  • @LutzHerting
    @LutzHerting 3 years ago +245

    NEAT is pretty neat... (*groan*) One problem with it is that it often throws away good solutions because the mutation can often be quite aggressive and throw out long-term positive traits for short-term gains. That said: This is literally how real-world genetic evolution works too. So for this algorithm, it pays #1 to have bigger population sizes, #2 to be careful about your mutation rate, and #3 to give it enough time to run. In all experiments I did with it, it often reaches a plateau where not much happens for many generations, but after a long time, it suddenly starts improving again. I'm pretty sure it has to do with the "species" system it uses: Often, one species is so good at what it does, that even "geniuses" in other species don't have enough impact to lift their otherwise mediocre species above the king of the hill species. This can lead to situations, where species with the potential to become the new best species die out before ever getting the chance to reach their full potential. So, like I said: It works just like natural genetic evolution... A species doesn't automatically survive just because it is fitter. There also have to be the right set of random circumstances to allow them to succeed.
    P.S.: One interesting experiment you can do with NEAT is to have to mutation rate ALSO me a trait that can be mutated. That leads to some low-mutation species that keep SLOWLY improving their positive traits and several high-mutation species that keep trying out random stuff. This stops a typical problem in machine learning: The algorithm settling in a "just-good-enough" plateau instead of keeping to improve in the hopes of finding an "even better" plateau further down the line.

    • @ThePoodle
      @ThePoodle 3 years ago +6

      hamburger

    • @justaguycalledjosh
      @justaguycalledjosh 2 years ago +22

      It's nice to know that even simulated evolution suffers carcination.

    • @zyxwv
      @zyxwv 2 years ago +5

      hamburger

    • @zyxwv
      @zyxwv 2 years ago

      @CalvinArt nft pfp lookin mf

    • @alessioplt8786
      @alessioplt8786 2 years ago +3

      you can implement speciation to fix the "aggressive" problem

  • @SpremeCalami
    @SpremeCalami 3 years ago +22

    12:45 thank god for the car video, I lost interest 0.0000004 seconds into the timelapse and I really needed it to help with focus

  • @kittenthesmol7373
    @kittenthesmol7373 5 months ago +4

    24:08 ah yes, giving someone a punishment for allowing a problem to occur instead of actually fixing said problem, _where have i seen that before_

  • @mutiny1953
    @mutiny1953 3 years ago +82

    I love the chaos of the process. It really gives you a sense of how many times it truly takes programmers to get stuff done 😂

  • @mellalith4493
    @mellalith4493 3 years ago +584

    This man has the most elite upload schedule 😂

    • @thomask2133
      @thomask2133 2 years ago +38

      it took me the same time it took him to upload 15 of his videos (provided he doesn't upload for two months... which is guaranteed) to get a cs deegree

    • @76Arfa
      @76Arfa 2 years ago +2

      @thomask2133 provided you actually get the degree 😏

  • @securitycheesehostage7542

    18:22 where's our car??????????? my gen z brain cant function without gtav gameplay covering half of the screen D:

  • @JTKmusic360
    @JTKmusic360 10 days ago

    block going straight up at @4:20 lmaooooo

  • @primenumberbuster404
    @primenumberbuster404 2 years ago +242

    I like how nobody really forgets about the Enigma machine even after 5 years

    • @nubbyboi6523
      @nubbyboi6523 2 years ago +26

      Evan is such a nice guy, always keeps his promises, especially Enigma Machine Part 2

    • @GooberInternet
      @GooberInternet 2 years ago +13

      ​@nubbyboi6523 Yeah, he'll probably make it in the next...millennia.

    • @nubbyboi6523
      @nubbyboi6523 2 years ago +10

      @GooberInternet Better than his normal upload schedule 💀

    • @puffboifedora6831
      @puffboifedora6831 2 years ago +3

      @nubbyboi6523Wait until it’s 2068

    • @elstarnor4628
      @elstarnor4628 2 years ago +1

      TemmiePlays any chance you would do it for us? 👀

  • @lix2146
    @lix2146 3 years ago +77

    Code Bullet always delivers!!!
    Also for me, I loved the explanations and the glimpse behind the scenes.
    I know if the video gets too technical viewer retention kind of takes a hit, but this time, I thought there was a healthy amount of "nerd-talk". Ty!

  • @chromium_ink
    @chromium_ink 3 years ago +74

    I too feel that excitement when testing basic movements. People got no idea how tedious it is to implement those perfectly…

  • @derekfordyce9
    @derekfordyce9 2 years ago +38

    The Jon Bailey cameo is the crossover I didn't know I needed.

  • @ribbonduckling1314
    @ribbonduckling1314 3 years ago +15

    21:30 "As soon as some letter start wearing little hats..."
    The funniest part about that is that it is called a hat. The A is A hat. At least in stats and I assume tin this context as well.

  • @Name_Pendingg
    @Name_Pendingg 3 years ago +9

    12:24 *NOOOOOOO, KEEP THIS IN THE TICK-TOCK QUARANTINE ZONE*

  • @nottherealendie
    @nottherealendie 3 years ago +51

    I feel like I'm being spoiled with so much Code Bullet content in such a small span of time.

  • @AccismusArcade
    @AccismusArcade 5 months ago +1

    This is halfway between a bad trip and a good day. Like a train wreck I can’t look away until it’s all straightened out.

  • @dynad00d15
    @dynad00d15 2 years ago +53

    13:38 Code Bullet is so good at coding, the AI felt necessary to learn speedrunning!

  • @zeldaplayergreenlink
    @zeldaplayergreenlink 3 years ago +83

    Honestly... I love your editing style and your content. I continue to admire your effort and sacrifice!

  • @DarcyRyder2010
    @DarcyRyder2010 3 years ago +55

    I like the balance between random entertainment and coding/AI a lot more in this video than the last. Always love the uploads!

  • @АллаБабич-л6т
    @АллаБабич-л6т 5 months ago +1

    5:06 "but because im a good boy and nintendo has lawyers" yeah i tought about that

  • @Blit_Wizbok
    @Blit_Wizbok 2 years ago +29

    it's hard to describe the fear of something working the first time when you know it SHOULDN'T HAVE WORKED THE FIRST TIME

  • @Maker0824
    @Maker0824 3 years ago +38

    I now see why it takes you so long to upload. Creating a bug every single time you add a new feature is a genuine gift. Never change

  • @gamer-x2173
    @gamer-x2173 3 years ago +23

    6:29 when you set the difficulty on Dark Souls

  • @Flynnstone2011
    @Flynnstone2011 3 months ago +2

    19:10
    "Sigh"
    *checks comments*

  • @Syvtek
    @Syvtek 3 years ago +58

    Your video editing gets better and better with time. I believe this one is the best so far for various reasons. Just want to say I recognize and appreciate your efforts. Well done.

    • @ki0w0-lordofwatersheep
      @ki0w0-lordofwatersheep 3 years ago +1

      The ✨animations✨

    • @Syvtek
      @Syvtek 3 years ago +1

      @ki0w0-lordofwatersheep The animations were great, but it's other little things that have improved as well. The Dialogue, the tempo,, The video overall feels more cohesive while retaining all of the wonderful chaotic energy of previous vids.

  • @Gigas0101
    @Gigas0101 2 years ago +131

    I like to imagine the time between episodes is actually spent making more poses for codebullet's vtuber sona, and he hammers this code out like a legend over the course of an afternoon.

  • @Liggliluff
    @Liggliluff 3 years ago +22

    (23:00) You should preferably also set the distance to the nearest ladder upwards and nearest ladder downwards. Since you can add a lot of inputs, the nearest ladder upward can also have the inputs for the next barrel to that ladder that might fall down it.

  • @Geekomorph
    @Geekomorph Year ago +2

    22:05 I was rolling in my bed after this bit 💀💀💀😭😭😭🙏

  • @NotASpyReally
    @NotASpyReally 3 years ago +17

    1:50 "I'm scared"
    Man I relate so much, that's so true.
    The worst in programming is not "It doesn't work and I don't know why", it's "It WORKS and I don't know why!"

  • @AsmodeusMictian
    @AsmodeusMictian 3 years ago +110

    Awesome video! Your combination of code and tons of humor cracks me up.
    As for your AI?
    I will only say the following:
    Still less cheating involved than Billy Mitchell's runs.
    (And still a better love story than Twilight.)

  • @pimplyface64
    @pimplyface64 3 years ago +51

    Completely forgot you were planning to make an ai. It was so intriguing to watch you just rebuild the game. 2 awesome subjects in one video

  • @Billy-jo3bt
    @Billy-jo3bt 3 months ago +1

    I have never seen someone make it all the way down the ramp like that in GTA. I was HOOKED on that omg.

  • @ImminDragon
    @ImminDragon 3 years ago +65

    Next time you want ChatGPT to explain something, ask it to explain it in the style of Code Bullet. I really want to see you react to it trying to imitate you. I checked, and it absolutely knows about you.

    • @valovanonym
      @valovanonym 3 years ago +3

      That's genius, I need to try it now

    • @masterofdoots5965
      @masterofdoots5965 Year ago

      ChatGPT doesn't really know what it's talking about with games and stuff in general. It told me that Ghost type is super effective against Fairy type in Pokemon, which is just entirely wrong

  • @swift2789
    @swift2789 3 years ago +83

    Gotta love to watch another 30 minutes of talking TV with a bullet on it! Jokes aside, great content!

  • @Guy-i7h
    @Guy-i7h 3 years ago +84

    I think that you need to add a zone that will eventually rise from the bottom, and you need to divide it into levels, and if the AI ​​​​touches the highest level, then one point will be taken from it, if it touches the level below two points will be taken away from it, etc. This provokes the AI ​​to climb faster rather than stay still.

    • @renakunisaki
      @renakunisaki 3 years ago +11

      I made a really crude, crappy AI that learned Super Mario Bros (the first level...) and it helped to reward them for moving, penalize for stopping too long, and immediately kill if they don't move within the first second.

  • @croissant9127
    @croissant9127 8 months ago +3

    I think the ai liked to hide behind donkey kong because it counted as them "missing barrels" and gave extra points

  • @king_br0k
    @king_br0k 3 years ago +12

    16:52 that broke me

  • @user-cx5jj2yv3p
    @user-cx5jj2yv3p 3 years ago +26

    3 AIs competing was really interesting. It laid out a lot of pros and cons of each while showing actual results. Nice 👍

  • @alan.328
    @alan.328 3 years ago +132

    I loved that you went more in depth this time! I can imagine a lot of us here watch and enjoy your videos because we're programmers ourselves, so getting more details is always interesting (in my opinion). Loved the video!

  • @DoomIIMaster
    @DoomIIMaster Year ago +1

    8:33 is that Honest Game Trailers lol

  • @xnathanog2006
    @xnathanog2006 3 years ago +35

    i love even coding experts go through a ton of challenges when it comes to coding. also the thing of just “moving a red square across the screen”. like bro, that’s a big step when it comes to coding😂. like all u have to do now is get a character and then change it from the square to ur character of choice and then now u have a person that moves instead of a square

  • @thegamingkaiser2874
    @thegamingkaiser2874 3 years ago +8

    "Man, this insomnia sucks. I should atleast try to get to sleep though."
    *Code Bullet uploads
    "What's 30 more minutes?"

  • @pigeonman6000
    @pigeonman6000 3 years ago +10

    1:56 that panic when your code works without needing to debug🤣🤣🤣

  • @Zeny9C
    @Zeny9C 5 months ago

    I like when car syncs in timelapse