AI learns to play the WORLDS HARDEST GAME even more levels

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2018
  • Using the genetic algorithm I trained an Ai to play even more levels of the worlds hardest game.
    check out previous videos
    • AI learns to play the ...
    • AI Learns to play the ...
    I will upload the code soon so you can run these things yourself.
    Twitter: / code_bullet
    Patreon: / codebullet
    Discord: / discord

ความคิดเห็น • 4.8K

  • @antsinmyeyes9547
    @antsinmyeyes9547 5 ปีที่แล้ว +4096

    The *”take a kilo of cocaine approach”* is the only acceptable approach

    • @Peztllence
      @Peztllence 5 ปีที่แล้ว +24

      Yes

    • @jjs32stepstoenlightenment37
      @jjs32stepstoenlightenment37 5 ปีที่แล้ว +84

      That’s how I do my taxes

    • @angrybox4253
      @angrybox4253 5 ปีที่แล้ว +39

      That's how I play my tf2

    • @Peztllence
      @Peztllence 5 ปีที่แล้ว +24

      @@angrybox4253 let me guess, you are a demo main

    • @angrybox4253
      @angrybox4253 5 ปีที่แล้ว +29

      @@Peztllence destruction 100

  • @baalrog887
    @baalrog887 4 ปีที่แล้ว +333

    "my family have been here on this level for 72 generations... I finally freed them from this curse"

  • @captainjames4649
    @captainjames4649 3 ปีที่แล้ว +987

    "It has taken a thousand generations but we have finally met our goal.....Of avoiding spinning blue dots"

    • @kymaniislam6884
      @kymaniislam6884 3 ปีที่แล้ว +10

      I just want to say this should have way more likes that "do this for ge dash. but sadly, no. Geodash has thousands. Congrats you win the internet for today

    • @edct07videos35
      @edct07videos35 3 ปีที่แล้ว +1

      Can i just say that you forgot the closing speech marks. Thank you and good night!

    • @vaExotic
      @vaExotic 3 ปีที่แล้ว

    • @RizzytheWizzy
      @RizzytheWizzy 2 ปีที่แล้ว

      Meanwhile, in the real world:
      😭😨🔥🔥🔥😷🤢😡

    • @captainjames4649
      @captainjames4649 2 ปีที่แล้ว

      @@RizzytheWizzy I agree

  • @PVMChannel
    @PVMChannel 3 ปีที่แล้ว +2109

    Code Bullet: I will upload the code soon so you can run these things yourself.
    Uploaded: 26.8.2018
    Code still not uploaded: 8.6.2020
    :D

    • @juliansunseri8426
      @juliansunseri8426 3 ปีที่แล้ว +4

      ikr

    • @PVMChannel
      @PVMChannel 3 ปีที่แล้ว +31

      @@relms12345 but there are only 3 levels, in this video he makes more

    • @habaranagiko
      @habaranagiko 3 ปีที่แล้ว +7

      It's on his website

    • @domotron3598
      @domotron3598 3 ปีที่แล้ว +16

      Deku Kirby with cross he probably is writing it the way English people do, which switches the month and day if you're in America

    • @perturbthepixel1410
      @perturbthepixel1410 3 ปีที่แล้ว +5

      @@domotron3598 america isnt actually english confirmed

  • @jacobkeithsaldivar3347
    @jacobkeithsaldivar3347 5 ปีที่แล้ว +3581

    You know what's really messed up about this all? The fact that it's literally their life to play the world's hardest game.

    • @alakani
      @alakani 5 ปีที่แล้ว +6

      Same

    • @UFO314159
      @UFO314159 5 ปีที่แล้ว +74

      @@ChimpWhisperer 9 doesn't even have a life because 7 8 9.

    • @UFO314159
      @UFO314159 4 ปีที่แล้ว +14

      @@ChimpWhisperer As long as you don't eat pi, I'm good.

    • @merennon
      @merennon 4 ปีที่แล้ว +7

      pass the butter

    • @trantus2051
      @trantus2051 4 ปีที่แล้ว +30

      What if our ancestors or an alien species attempted the same thing: to build an advanced AI, and they did, but they didnt stop there, they combined with organic structures to build living forms called humans?

  • @jhawk2402
    @jhawk2402 5 ปีที่แล้ว +7308

    So after running my experiment 3 times, I found that on average it took me .897 seconds to draw 1 rectangle and 12 minutes and 32.153 seconds to draw 700. After seeing these results, I believe your hypothesis of drawing 1 rectangle was faster was correct.

    • @ayushneekhar
      @ayushneekhar 5 ปีที่แล้ว +773

      That depends tho, I'm still just on my first rectangle which has the perimeter of Australia

    • @spectrelex3051
      @spectrelex3051 5 ปีที่แล้ว +112

      Idk though man, seems improbable

    • @SIDYfe4r
      @SIDYfe4r 5 ปีที่แล้ว +279

      You should run a few more tests and get the average... just to be sure you've got the correct results!

    • @heidtb6746
      @heidtb6746 5 ปีที่แล้ว +302

      Well, to be 100% accurate, you should also do tests with different types of pens or paper and try it under extreme conditions like in a completely dark room for example...

    • @V3ritas1989
      @V3ritas1989 5 ปีที่แล้ว +42

      are you sure? better check back with management and ask them if they agree!

  • @mercurybot839
    @mercurybot839 3 ปีที่แล้ว +458

    "And I might have made a little mistake in the fitness function, which might have been encouraging the players to kill themselves." Wait, did CB code humans?

  • @redtomatu9719
    @redtomatu9719 3 ปีที่แล้ว +150

    "I will upload the code soon so you can run these things yourself"
    Great joke

    • @SagaDraws
      @SagaDraws 3 ปีที่แล้ว +5

      @bfdi firey someones a little pissy, huh?

  • @fungibot8389
    @fungibot8389 5 ปีที่แล้ว +2813

    "I will upload the code soon so you can run these things yourself."
    Half a year later

    • @itsastikbotparty8149
      @itsastikbotparty8149 5 ปีที่แล้ว +19

      *two more months later*

    • @csicee
      @csicee 4 ปีที่แล้ว +7

      A dolphin what website

    • @csicee
      @csicee 4 ปีที่แล้ว

      @@adolphin9348 ?

    • @csicee
      @csicee 4 ปีที่แล้ว +3

      @@adolphin9348 Not working

    • @keeganduffy7938
      @keeganduffy7938 4 ปีที่แล้ว +12

      Jeremy MCSSJ it's thebigcb.com

  • @mus4u
    @mus4u 4 ปีที่แล้ว +2064

    Code bullet: Does not let the AI use checkpoints
    Also code bullet: Uses checkpoints to get throught the level

    • @PlatinumJug
      @PlatinumJug 4 ปีที่แล้ว +9

      not exactly

    • @derdimi927
      @derdimi927 4 ปีที่แล้ว +86

      The AI doesn‘t need checkpoints because it‘s just perfect. Code bullet seems not to be a tryhard ;)

    • @gytuj6722
      @gytuj6722 4 ปีที่แล้ว +32

      The air doesnt use check points because it just follows the path the one that got the furthest in the previous generation took and then makes a slight change right before it would die.

    • @directorr_
      @directorr_ 4 ปีที่แล้ว +26

      He’s trying to train the AI to be the best. He just needs to see each level in order to do this. So, he will use checkpoints because he isn’t training himself to be the very best.

    • @lennoxschmup8733
      @lennoxschmup8733 3 ปีที่แล้ว

      reversed world?!

  • @thewolfleader500
    @thewolfleader500 4 ปีที่แล้ว +394

    "Uploading this would make me obsolete, so no dice."
    *it's called being humane*

    • @nxyn9209
      @nxyn9209 3 ปีที่แล้ว +1

      Eevee?

  • @RyanBlakeKain
    @RyanBlakeKain 2 ปีที่แล้ว +162

    In these videos, it's always really interesting to see the AI learn "superstition", or rather, it will do something random, like move up and down at a point where there currently isn't a fail state, so because it didn't fail it keeps doing that thing even though it has no positive or negative effect.

    • @KianaIsSpiraling
      @KianaIsSpiraling 10 หลายเดือนก่อน

      That's actually really interesting! I didn't notice that little tidbit :D

  • @Lumiere_
    @Lumiere_ 4 ปีที่แล้ว +4572

    Plot twist : The youtube algorithm is an AI that recommends videos about AI’s

    • @JianCB2
      @JianCB2 4 ปีที่แล้ว +119

      I mean... It is.

    • @hollowpilot
      @hollowpilot 4 ปีที่แล้ว +87

      Shhshshshshs shut up. SHUT. UP.
      we can't let it know we know!

    • @mellowyellow7523
      @mellowyellow7523 4 ปีที่แล้ว +21

      RcGamerYt yea im pretty sure that's why he wrote that comment thanks for reiterating

    • @SonGayku
      @SonGayku 4 ปีที่แล้ว +17

      MII music intensifies

    • @SonGayku
      @SonGayku 4 ปีที่แล้ว +14

      AI gets friendzoned.
      AI cries in robotics.

  • @itsbk6192
    @itsbk6192 5 ปีที่แล้ว +6060

    Dude,you could literally make a video on watching paint dry but as long as you cracked jokes and made it informative I'd watch

    • @taureon_
      @taureon_ 5 ปีที่แล้ว +64

      watch mr beast he did it

    • @lempreurthaurissan6497
      @lempreurthaurissan6497 5 ปีที่แล้ว +99

      I'd prefer warching grass grow tho

    • @tzuyd
      @tzuyd 5 ปีที่แล้ว +162

      I'd only watch if he made an AI watch paint dry.

    • @Cyberian_Khatru
      @Cyberian_Khatru 5 ปีที่แล้ว +64

      and putting overtly dramatic, royalty-free music obvs

    • @CadetGriffin
      @CadetGriffin 5 ปีที่แล้ว +11

      But people that hate the French vocabulary will still get offended and hit the dislike button either way despite those haters not being SJWs or PC police officers or even socialists at all.

  • @mrpeanut728
    @mrpeanut728 3 ปีที่แล้ว +726

    It took me longer to draw 1 rectangle than 700 rectangles

    • @cerealbird4476
      @cerealbird4476 3 ปีที่แล้ว +65

      Yeah same. I drew a very very very big rectangle for the 1 rectangle though.

    • @llleau
      @llleau 3 ปีที่แล้ว +21

      Yeah same, but the 700 rectangles I Kina just used a photocopier 0-0

    • @vaindrain6227
      @vaindrain6227 3 ปีที่แล้ว +6

      Wait how are you alive

    • @diamonddashdog
      @diamonddashdog 3 ปีที่แล้ว +21

      But you drew 1 rectangle to start the 700

    • @jakemueller2231
      @jakemueller2231 3 ปีที่แล้ว +3

      Now I want to see what masterpiece of rectangle takes that long.

  • @arturslunga3415
    @arturslunga3415 3 ปีที่แล้ว +41

    Took me 700 rectangles to draw 1 minute.

    • @appleinxed
      @appleinxed 3 ปีที่แล้ว +2

      Rectangles draw to 700 took minute me 1 .

    • @pepitocovid-91
      @pepitocovid-91 3 ปีที่แล้ว +1

      Me draw took 700 rectangles to 1 minutes.

    • @riesenflugzeug
      @riesenflugzeug 2 ปีที่แล้ว +1

      Minute to 700 draw 1 me Took. Rectangles

    • @towaxien6026
      @towaxien6026 2 ปีที่แล้ว +1

      me 700 draw to 1 took minute*

  • @JohnSmith-ym7jd
    @JohnSmith-ym7jd 4 ปีที่แล้ว +1486

    Code bullet: I may have been encouraging them to kill themselves
    Oh I think he might be me.

  • @JuptianGames
    @JuptianGames 5 ปีที่แล้ว +644

    Drawing 700 1cm x 1cm squares took me less time than drawing one 5km x 5km square :3

    • @mappy20yearsago
      @mappy20yearsago 5 ปีที่แล้ว +4

      Same

    • @jonasbecho7656
      @jonasbecho7656 5 ปีที่แล้ว +58

      Dude, you had to draw rectangles, now have to draw it all again to find out if it's true

    • @fahrenheit2101
      @fahrenheit2101 5 ปีที่แล้ว +48

      @@thoorlyehu360 You mean
      All squares are rectangles
      But not all rectangles are squares.

    • @jonasbecho7656
      @jonasbecho7656 5 ปีที่แล้ว +3

      Sorry my bad, misunderstood it. In my native language we have en word for a squares which have equal lengths ex. 1cm x 1 cm which i might thought were square, however my point is still true😉

    • @jonasbecho7656
      @jonasbecho7656 5 ปีที่แล้ว +1

      @@fahrenheit2101 love the fact that you knew i were about squares being rectangles, but still got it wrong anyway😂

  • @arenowsmoker8903
    @arenowsmoker8903 4 ปีที่แล้ว +34

    8:17 I actually did both at de same time and it took the same amount of time because I drew what 700 identical by-dimensional rectangles on top of each other would look like

  • @carbarn3081
    @carbarn3081 3 ปีที่แล้ว +63

    😭I drew 700 rectangles in 4 hours and then my arm was sore so I took 4hrs and 15 mins to draw the one rectangle

    • @zelrysec5890
      @zelrysec5890 3 ปีที่แล้ว +6

      Pain at it’s finest

    • @pacomatic9833
      @pacomatic9833 3 ปีที่แล้ว +3

      ...

    • @radiationstandard
      @radiationstandard 3 ปีที่แล้ว +5

      I drew 700 normal rectangles then one the size of Russia so it seems by my analysis that it may take longer to draw 1 rectangle. Hah analysis big word I smart

    • @allinonecuber9064
      @allinonecuber9064 3 ปีที่แล้ว +1

      Hey fu** u- Code Bullet

  • @gdal6961
    @gdal6961 5 ปีที่แล้ว +286

    Next Video:
    AI learns how to ask the player to do the game for them

    • @RGC_animation
      @RGC_animation 4 ปีที่แล้ว +1

      Wow, 267 likes with no reply!

    • @adeeasrauf1710
      @adeeasrauf1710 2 ปีที่แล้ว

      Why doesn't this have more likes? I'd pay to watch that 😂😂

  • @TheV4D3R
    @TheV4D3R 5 ปีที่แล้ว +69

    i probably never will learn programming and never was into AIs before but the way you portray it and make it understandeable just makes you Always wanting more
    Keep it up and im happy to be one of your new subscribers!

  • @nodontdothat5346
    @nodontdothat5346 4 ปีที่แล้ว +57

    I took 17 minutes to draw 1 rectangle and 7 minutes to draw 700.
    Just gotta draw them in a different size!

  • @pogrammer
    @pogrammer 4 ปีที่แล้ว +18

    i love how when you see them progress in a unknown area they shake like their having a seizer

  • @Hasa07
    @Hasa07 5 ปีที่แล้ว +4024

    AI learns how to beat Sans please

    • @tazzz745
      @tazzz745 5 ปีที่แล้ว +94

      Hasa Rafael NO STOP IT’S 2018

    • @imnotcrazy8430
      @imnotcrazy8430 5 ปีที่แล้ว +121

      @@tazzz745 well deltarune exists sooooooooo

    • @neilisbored2177
      @neilisbored2177 5 ปีที่แล้ว +43

      AI learns to beat Lotus Guardian from battle kid.
      Or heck, even Owlbot.
      AI vs. AI.

    • @bruhbbawallace
      @bruhbbawallace 5 ปีที่แล้ว +58

      NeilIsBored I once knew a man named Jesus. One day I asked him, "hey, isn't your name pronounced Hay-zoos?", and he said "no, my mother is very religious", and I said "wouldn't that prevent her from naming you Jesus?", and he said "FUUUUUCK".

    • @neilisbored2177
      @neilisbored2177 5 ปีที่แล้ว +1

      @@bruhbbawallace Nice

  • @alexrud7377
    @alexrud7377 5 ปีที่แล้ว +509

    For me the 700 rectangles took longer

    • @vigilviglantie8613
      @vigilviglantie8613 5 ปีที่แล้ว +21

      A J R C for me, sense I had more time sense I was only doing one rectangle I spent an hour shading texturing and all that. Where as for the 700 I spent 6 minutes.

    • @VoidLantadd
      @VoidLantadd 5 ปีที่แล้ว +10

      Vigil Vig Lantie - makes since.

    • @d.blacksmith8466
      @d.blacksmith8466 5 ปีที่แล้ว +4

      @@VoidLantadd r/boneappletea

    • @asherhovell
      @asherhovell 5 ปีที่แล้ว +1

      Really? Odd results. Maybe try it again. It took me significantly longer to draw one. IDK, did I do it wrong? I did it a few times just to get my results right, the likely hood of them all being wrong is so low. Any thoughts?

    • @clovairity
      @clovairity 5 ปีที่แล้ว +2

      For me the 1 rectangle took longer... you must have a fast hand..

  • @danp832
    @danp832 4 ปีที่แล้ว +1

    Dude, I love this channel so much. You are a damn fantastic host and i love the frustration of trying to be perfect. . PLEASE for the love of all things make more videos!!

  • @nathaniellowthian5281
    @nathaniellowthian5281 4 ปีที่แล้ว +1

    I literally have no idea why I enjoy these so much but I literally sit here and watch the whole thing genuinely fascinated good work mate subbed 👍

  • @lolwasaperson9924
    @lolwasaperson9924 5 ปีที่แล้ว +560

    My mile long rectangle took longer than my small grid

  • @josktv_
    @josktv_ 5 ปีที่แล้ว +202

    YES! Do more for "the challenge" pls :^)

    • @ofirrolev
      @ofirrolev 5 ปีที่แล้ว

      please don't

    • @thegamingmetagross8191
      @thegamingmetagross8191 5 ปีที่แล้ว +2

      Please do

    • @AaronTheGerman
      @AaronTheGerman 5 ปีที่แล้ว +1

      Yeah!!! Do what Kanna-san says!!!

    • @FrostMonolith
      @FrostMonolith 5 ปีที่แล้ว +2

      his honesty about that youtube algorithm thing makes me subscribe to him

    • @carterjean
      @carterjean 5 ปีที่แล้ว +1

      Just skip to the last level I wanna see that

  • @spytf2203
    @spytf2203 4 ปีที่แล้ว +36

    "I will upload the code soon so you can run these things yourself."
    a year later

    • @airnomad2650
      @airnomad2650 3 ปีที่แล้ว +1

      It's on his github

  • @sircheesethethird6179
    @sircheesethethird6179 4 ปีที่แล้ว +9

    ok so first i drew 700 rectangles by just smacking my pencil on a piece of paper while counting to 700 but i’m still on my rectangle which goes from the north pole to the south pole and like 1/4 of the way around the world and it’s been like 15 years since i last saw my family

  • @trolllol7264
    @trolllol7264 5 ปีที่แล้ว +70

    Drawing 700 triangles took longer than drawing one!

    • @Dylems
      @Dylems 5 ปีที่แล้ว +14

      you messed up, you had to draw rectangles... And also do an average of 10 experiments to be sure.

    • @thatoneguy9582
      @thatoneguy9582 5 ปีที่แล้ว +2

      Troll Lol
      Did you make a triangle the size of like Russia

    • @funtm7
      @funtm7 5 ปีที่แล้ว

      That One Guy no. he said the drawing one triangle was faster. also, *_they were supposed to be rectangles_*

  • @ikbintom
    @ikbintom 5 ปีที่แล้ว +398

    As I said a month ago, it didn't learn to avoid the dots, it just found a winning path.
    The algorithm would look a lot more "intelligent" if repeated elements in the levels were passed more and more efficiently.
    Why don't you try something with a neural network? Then your blocks can actually see and learn to avoid the blue dots.

    • @ore2236
      @ore2236 5 ปีที่แล้ว +6

      I would be interesting to see, why don't you do it ?

    • @ikbintom
      @ikbintom 5 ปีที่แล้ว +26

      I know right? Evan's made neural networks before, I'm sure he is able to do make an ai similar to MarI/O: th-cam.com/video/qv6UVOQ0F44/w-d-xo.html

    • @ikbintom
      @ikbintom 5 ปีที่แล้ว +7

      It's just that the goal here is a bit more difficult to specify, but he has to do that anyway I guess. Then the input nodes could be just the whole level, just like is done in MarI/O (That's if his pc is beefy enough, I guess). Or maybe only the (perhaps polar?) coordinates of the nearest dots, coins, walls and green zones would be enough.. The outputs would of course still just be up, down, left, right, and combinations thereof.

    • @ikbintom
      @ikbintom 5 ปีที่แล้ว +10

      Also, if I did it myself, you wouldn't get to see it. I'm not a youtuber and I don't want to be one ;)

    • @__goat__
      @__goat__ 5 ปีที่แล้ว +40

      Yes, its just bruteforcing a path, that’s nothing that couldn’t be done 20 years ago.

  • @joepterpstra5020
    @joepterpstra5020 3 ปีที่แล้ว +136

    “I will upload the code soon” boii it’s 2 years later

  • @Lilycade
    @Lilycade 4 ปีที่แล้ว +1

    this game was literally my biggest pass time in school!
    i appreciate you making this :)

  • @benjaminbrady2385
    @benjaminbrady2385 5 ปีที่แล้ว +87

    Oh... oh... oh, oh, oh
    Top tier royalty free music

    • @nullnvoid404
      @nullnvoid404 5 ปีที่แล้ว +2

      I liked the "Ah, Ah, Ahaha" better.

    • @asiongkam3541
      @asiongkam3541 5 ปีที่แล้ว

      Its very akward when u watched it when dinner

    • @ohhellothere8954
      @ohhellothere8954 5 ปีที่แล้ว

      That’s the music my pe teacher used to play VERY loud when we were running laps, she had a speaker system and everything.

    • @melon8342
      @melon8342 5 ปีที่แล้ว +1

      *the fitnessgram pacer test*

  • @henrycgs
    @henrycgs 5 ปีที่แล้ว +2160

    Somehow you made a genetic algorithm look hardcoded. The problem here is that the players don't know anything about their environment and are only able to finish the single level they were trained to beat. Can you see where I'm getting at? This is no different from trying all possible movement combinations and seeing which one takes you the farthest. It doesn't feel like the players know anything.
    You want a real challenge? Make an AI that is aware of its surroundings. An AI that can beat ALL levels.
    Now THAT would be a cool video.

    • @PandoraMakesGames
      @PandoraMakesGames 5 ปีที่แล้ว +117

      You are absolutely correct about that. I recently started making AI videos. I still have to improve, but let me know what you think!

    • @Joe-xr2xl
      @Joe-xr2xl 5 ปีที่แล้ว +48

      You could do this using a softmax function with automatic weights that change on the four local directions. The ai changes the weights, with the genetic algorithm telling it the wanted path. This way the survivabilty of each worker increases

    • @PandoraMakesGames
      @PandoraMakesGames 5 ปีที่แล้ว +6

      Good observation Joe! I made a video about AI learning to shoot zombies.

    • @ShubhamSuneja
      @ShubhamSuneja 5 ปีที่แล้ว +57

      He is basically just overfitting the heck out of these levels

    • @PandoraMakesGames
      @PandoraMakesGames 5 ปีที่แล้ว +2

      That's right Shubham!

  • @richardthach6855
    @richardthach6855 3 ปีที่แล้ว +21

    That one square: “I’ve done it! I have completed the level
    All the other ais” then you have been able to do what I could have not

  • @hypercoder-gaming
    @hypercoder-gaming 4 ปีที่แล้ว +216

    I will upload the code soon
    2 years later:
    Hmmmmmmmm...

    • @itoaste
      @itoaste 4 ปีที่แล้ว +1

      2020 quarintine things

    • @hamzein6831
      @hamzein6831 4 ปีที่แล้ว +1

      i'm still waiting:(

    • @normalname3623
      @normalname3623 3 ปีที่แล้ว +4

      github.com/Code-Bullet/WorldsHardestGameAI here, no need to thanks me, thanks BC

  • @HECKproductions
    @HECKproductions 5 ปีที่แล้ว +543

    you didnt specify the size of the rectangles....

    • @mappy20yearsago
      @mappy20yearsago 5 ปีที่แล้ว +9

      Correct

    • @truthecamacho9715
      @truthecamacho9715 4 ปีที่แล้ว +33

      My rectangle was Three miles long while my seven hundred were 1 cm by 0.5 cm

    • @r3birthr3ap3r4
      @r3birthr3ap3r4 4 ปีที่แล้ว +1

      @@truthecamacho9715 same

    • @adaragsdale3360
      @adaragsdale3360 4 ปีที่แล้ว +5

      Truthe Camacho oh my rectangle was 1 centimeter then my 700 were 800miles long each

    • @robertboerwinkle8577
      @robertboerwinkle8577 4 ปีที่แล้ว +1

      I made a copy of each in all possible sizes...

  • @rovertronic
    @rovertronic 5 ปีที่แล้ว +536

    Make an AI that can play any level. Instead of brute forcing what direction to go (which appears what your AI is doing) do something similar to what sethbling did on his mario kart video. Use path finding to increase fitness, and make so that the AI can see the blue dots.

    • @oscarmulin114
      @oscarmulin114 5 ปีที่แล้ว +28

      Hey, that's what I'm doing now!
      The reason code bullet doesn't do such a thing is because AI takes work and time to make.
      He's not even programming an AI. Just bruteforcing directions with a genetic algorithm as you've said.
      1.5 months in and I'm still not done with a proper WHG AI.
      I'll release a video once I'm finished, though!

    • @rovertronic
      @rovertronic 5 ปีที่แล้ว +4

      Sounds awesome!
      I didn't know programming an AI like the one I mentioned would be much of a task, I have no experience in programming AI so I wouldn't know.

    • @oscarmulin114
      @oscarmulin114 5 ปีที่แล้ว +4

      Yeah, it's pretty hard.
      Especially if you're using original game's raw pixels (like I do).
      CB avoids this entirely by using genetic algorithms which simply memorize levels.
      >I didn't know programming an AI like the one I mentioned would be much of a task
      The field of reinforcement learning is a fairly new one, so there's a lot to fiddle with.
      Check out DeepMind's work on Atari games: th-cam.com/video/V1eYniJ0Rnk/w-d-xo.html
      I'm using the same technique as they did for atari games, namely Deep-Q learning.
      Anyways, I won't go too much into detail. Once I'm finished (should be over in 2-3 weeks) I'll make a video!

    • @oscarmulin114
      @oscarmulin114 5 ปีที่แล้ว +5

      There's no the "language" for AI development. But most use Python and use machine learning libraries with it like SKLearn, Tensorflow, Pytorch, etc.

    • @drahsid2
      @drahsid2 5 ปีที่แล้ว +4

      Based on what I'm seeing, the AI is just a cache of probable "correct" inputs that grows with the generations. That being said, I wouldn't call it an AI, since it shows no form of intelligence, nor learning, but rather making guesses and storing successful data. What you're suggesting is far more interesting than this, I can't wait to see what Oscar can do.

  • @bushido1783
    @bushido1783 3 ปีที่แล้ว +9

    i can hear the gears turning in his brain when making the levels, it's funny

  • @bunnycakes2305
    @bunnycakes2305 3 ปีที่แล้ว +7

    "I'll see everyone in the next one, I'm going to bed" me with my CS assignments

  • @camjnz
    @camjnz 5 ปีที่แล้ว +31

    Wow, 700 squares did take longer, man you're so smart.

  • @adnanahmed5256
    @adnanahmed5256 5 ปีที่แล้ว +84

    Dam you were right drawing one square is faster than drawing 700.

    • @Sir_Budginton
      @Sir_Budginton 5 ปีที่แล้ว +2

      I know right, who knew.

    • @SJohann
      @SJohann 5 ปีที่แล้ว +2

      But what if you draw 700 squares which are 1mm x 1mm and 1 square which is 1000km x 1000km?

    • @neoxus30
      @neoxus30 5 ปีที่แล้ว +1

      @@SJohann Its hard to make a square that small, the smaller it is, the harder it is to be accurate, that's basically quantum physics)

    • @NoNameAtAll2
      @NoNameAtAll2 5 ปีที่แล้ว

      @@neoxus30
      1mm is not *that* small

    • @Ze_eT
      @Ze_eT 5 ปีที่แล้ว

      +Neoxus 1mm is something on a ruler. You easily can make it. But it certainly is slower than a 1cm², as a 1mm² got so much room for error.

  • @OTFTYT
    @OTFTYT 4 ปีที่แล้ว +9

    “This will never be uploaded...”
    CB 2020: *makes a website and uses this*

  • @kireitonsi
    @kireitonsi 3 ปีที่แล้ว +6

    Code bullet: **Doesn't let AI use inbuilt checkpoints**
    Also Code Bullet: **Codes a checkpoint after every 15 generations that not even all AI hit**
    *makes sense*

  • @oxygen0069
    @oxygen0069 5 ปีที่แล้ว +12

    I find it extremely fascinating how we come so far in technology that we can teach ai to play games

  • @tefixers9158
    @tefixers9158 5 ปีที่แล้ว +6

    I actually love these videos they’re so fun to watch

  • @boostedrival5505
    @boostedrival5505 4 ปีที่แล้ว

    I enjoy these videos keep em comin

  • @mx9580
    @mx9580 4 ปีที่แล้ว +110

    you can imagine how God was excited while creating huam when seeing people excited about these AI dots.

  • @cihanfatihi
    @cihanfatihi 5 ปีที่แล้ว +62

    2:01 Giving us a middle finger. Thank you.

  • @coolswat2957
    @coolswat2957 5 ปีที่แล้ว +137

    To do 700 rectangles it took me 0.0093 seconds and for 1 it was 26 days, 16 hours, 32 minutes and 7.3 seconds, 700 was faster

    • @SoI-
      @SoI- 5 ปีที่แล้ว

      You swapped.

    • @khali_d_b4784
      @khali_d_b4784 5 ปีที่แล้ว +11

      @@SoI- r/woosh

    • @youknowihadtodoittoem3579
      @youknowihadtodoittoem3579 5 ปีที่แล้ว +7

      @@SoI- no he didnt, i had the same results

    • @SoI-
      @SoI- 5 ปีที่แล้ว

      ROBOT?

    • @bubba2985
      @bubba2985 5 ปีที่แล้ว

      Caleb Birtwistle swapped?

  • @tc-bladeofgrass6719
    @tc-bladeofgrass6719 4 ปีที่แล้ว +1

    I've watched a lot of your videos and I'm so impressed and entertained by your coding.
    Something has occurred to me when watching you train models for this game, are you just training a single model to solve each level? Would it be possible to train a model which could solve a level which it's not seen before, as of the model was actually seeing what was going on and solving in real time?

  • @kimballestad4536
    @kimballestad4536 3 ปีที่แล้ว +1

    I loved this intro so much, that was high-quality humor

  • @erikchristiansson5324
    @erikchristiansson5324 5 ปีที่แล้ว +3

    Congrats on 300k!!!

  • @olikat9774
    @olikat9774 5 ปีที่แล้ว +36

    I had to stop playing factorio to watch this, better be good

  • @traviskrebs7551
    @traviskrebs7551 2 ปีที่แล้ว +2

    I like how CB actually played the levels instead of looking them up, or looking up a hacked version considering when this video was released.

  • @Nippopip
    @Nippopip 4 ปีที่แล้ว +3

    the music on level 5 when evan leaves sounds like the opening music of legend of zelda twilight princess

  • @thebestone8872
    @thebestone8872 4 ปีที่แล้ว +235

    It took me 6 hours to make a rectangle and 20 min to make 700

    • @K_amonger
      @K_amonger 4 ปีที่แล้ว +21

      ...how big was that rectangle?

    • @AlphaToast27
      @AlphaToast27 4 ปีที่แล้ว

      Kraxle Oofs ITS A JOKE YOU DIPSHIT

    • @Wren_Coffelt
      @Wren_Coffelt 4 ปีที่แล้ว +7

      @Vsus Here HE WAS (probably) JOKING TOO DIPSHIT!

    • @sql64
      @sql64 4 ปีที่แล้ว +7

      Guys calm down
      Youre fighting over a joke

    • @Wren_Coffelt
      @Wren_Coffelt 4 ปีที่แล้ว +6

      SO WHAT IF IT'S A MONTH OLD
      (What even is this chat anymore)

  • @grantschulz9730
    @grantschulz9730 5 ปีที่แล้ว +76

    You should make ai do geometry dash

  • @capta1nseal
    @capta1nseal 3 ปีที่แล้ว +3

    Well I tried drawing the one rectangle with a raytracing engine turned on and it's fair to say the 700 with just layout rendering was much faster

  • @hottox8861
    @hottox8861 3 ปีที่แล้ว

    Good content. Subbed

  • @Y4nn1z
    @Y4nn1z 5 ปีที่แล้ว +3

    Πολύ ωραίος...συνέχισε έτσι, να παίρνουμε ιδέες και οι υπόλοιποι περί τεχνιτής νοημοσύνης. ΣΥΓΧΑΡΗΤΉΡΙΑ! ☺❤

  • @jorgevazquezacevedo2322
    @jorgevazquezacevedo2322 5 ปีที่แล้ว +62

    Just a question... The fact that you make all the subjects adopt the first steps from the best one, could it into lead (in another different problem) into a relative minimum, diferent than the absolute one? In other words... Imagine that the first steps fixed by the best candidate condition all of the population to a situation where there is no possible solution, because they are conditioned by those 30-45 first steps... Does it makes sense?

    • @AVerySexuallyDeviantOrange
      @AVerySexuallyDeviantOrange 5 ปีที่แล้ว +4

      Jorge Vázquez Acevedo I’ve thought of that too, learning something good at that time but bad later. Pretty much making it impossible to fix as the problem is what they based all other evolutions on, right?

    • @swissmed4606
      @swissmed4606 5 ปีที่แล้ว +1

      Yes, but Neural Networks in general are a localized optimization method, so no matter what you are never guaranteed an absolute minima unless you perform a BFS on your state space

  • @hackmaster124
    @hackmaster124 4 ปีที่แล้ว +14

    So it looks like the bot has to be retrained for each level. Could you make one that can generalize across different levels?

    • @baronvonbeandip
      @baronvonbeandip 2 ปีที่แล้ว

      Generalize intelligence?
      We don't do that here.

  • @alexlearoyd8668
    @alexlearoyd8668 4 ปีที่แล้ว +1

    me and the bois
    at 3am
    waiting for
    code bullet
    to make
    another enigma amchine video

  • @wyrmkintoothgrim1174
    @wyrmkintoothgrim1174 5 ปีที่แล้ว +66

    Well, for the rectangle drawing part, it really depends on the size of the rectangle. For example, a rectangle the size of Europe would take a lot longer to draw than 700 coin sized rectangles. Of course, then you have to take into account the weather ruining the Europe-sized rectangle, mistakes, how many people are doing it, how good they are at doing it, the quality of the tool being used to draw the rectangle, the skill of the person/people doing it, the quality of the paper/land you're doing it on, the size of the tools used, the size of the area, how many breaks you have, how long the breaks are, people quiting early, people joining late, whether or not it's legal to draw a massive Europe sized rectangle, where you're actually going to draw the rectangles, mold destroying the paper, the sun falling onto the Earth, forest burning, how much paper you have, how much paper you can get, someone pissing on the materiel you do end up using, and more. Please feel free to add anything I forgot and I will add it to the main comment.

    • @Ze_eT
      @Ze_eT 5 ปีที่แล้ว +3

      You need to remember that the sun could fall onto Earth or forest burns and how much paper you left.

    • @betterert
      @betterert 5 ปีที่แล้ว

      what if mold destroyed the paper?

    • @wyrmkintoothgrim1174
      @wyrmkintoothgrim1174 5 ปีที่แล้ว

      Added.

    • @matusstefanec5217
      @matusstefanec5217 5 ปีที่แล้ว

      What about rain and storms?

    • @cubethesquid3919
      @cubethesquid3919 5 ปีที่แล้ว +3

      Plague killing off the participants

  • @VoidX17
    @VoidX17 5 ปีที่แล้ว +48

    5:13 to make things faster and make the music even more catchy turn playback to 1.5

    • @endlessblades4369
      @endlessblades4369 5 ปีที่แล้ว +6

      For drug induced music turnnto 0.5

    • @DemonaLynn
      @DemonaLynn 5 ปีที่แล้ว

      0.25 is literally possessed dear god

    • @wozahh
      @wozahh 5 ปีที่แล้ว +1

      whats the song name tho

    • @darkpeasant2496
      @darkpeasant2496 5 ปีที่แล้ว +1

      @@wozahh etherial choir ascends -Doug maxwell

    • @wozahh
      @wozahh 5 ปีที่แล้ว

      @@darkpeasant2496 Thanks, Appreciate the help.

  • @bobjoebo8933
    @bobjoebo8933 2 ปีที่แล้ว +2

    I love how he doesn't try to hide him making videos just for views. He just says; this is popular here you go

  • @Mochibillsnucks
    @Mochibillsnucks 4 ปีที่แล้ว

    Just watched the newest video and looked at the art and got to say great upgrade in art

  • @razolo5814
    @razolo5814 4 ปีที่แล้ว +146

    You know there’s a level selector, right?

    • @ceniilo4407
      @ceniilo4407 4 ปีที่แล้ว +50

      Razolo581 when this video was made the game didn’t have a level selector

    • @razolo5814
      @razolo5814 4 ปีที่แล้ว +16

      tracing -_- that makes sense

    • @MuchWhittering
      @MuchWhittering 3 ปีที่แล้ว +3

      Also TH-cam videos showing all the levels off.

  • @calioryforever3431
    @calioryforever3431 5 ปีที่แล้ว +43

    It's so clean.... not a bunch of 'First'.

    • @ansh6370
      @ansh6370 5 ปีที่แล้ว +4

      CoolioGuy 123
      First

    • @medicalbar
      @medicalbar 5 ปีที่แล้ว +4

      'First'

    • @unnamedperson8619
      @unnamedperson8619 5 ปีที่แล้ว

      Second

    • @taureon_
      @taureon_ 5 ปีที่แล้ว +1

      First

    • @art1637
      @art1637 5 ปีที่แล้ว

      a bunch of 'First'

  • @seejay_through_life
    @seejay_through_life 9 หลายเดือนก่อน

    i know i'm super late to the party but that optimization got me thinking. saving an entire successful path up to a point and working from there is great but what if you used a trie? a tree structure where each leaf represents an individual and the path from the root represents the moves over time. that way you can still change early moves in the hopes of optimizing the entire path, just heavily preferring mutating the end over the start. maybe it wouldn't provide any performance gain but it could be interesting to try

  • @facade11663
    @facade11663 4 ปีที่แล้ว

    You pool shot strat should be the default for anything that has a static scenario. (asteroids and snake maybe not) it is basically pruned evolution since you cut out mutations occurring in the confirmed correct path more of the generation makes it to the point that matters. saving you lag and increasing the likelihood of finding the next step both should save a lot of time. If you can do it go for it

  • @majora748
    @majora748 5 ปีที่แล้ว +3

    dear god, im binge watching these videos, welp ill sub why not

  • @shiningstar737
    @shiningstar737 5 ปีที่แล้ว +33

    draw 700 rectangles faster than 1 rectangle
    CHALLENGE ACCEPTED!!!
    Opening photoshop
    Make rectangular brush
    Add multiplayer and scatter +lower flow
    Draw line
    Count all rectangles
    1103 rectangles under 0.25 seconds

  • @gamingwithhunna422
    @gamingwithhunna422 ปีที่แล้ว

    I fucking love code bullets background music

  • @retro1337
    @retro1337 3 ปีที่แล้ว +3

    It took so long to draw those 701 rectangles! I'm done now and I found that doing 700 was slower than doing 1!

  • @shot-gi6mr
    @shot-gi6mr 4 ปีที่แล้ว +10

    Drawing one rectangle took longer.
    *I drew a very large and detailed rectangle ok*

  • @archeaico7744
    @archeaico7744 5 ปีที่แล้ว +86

    AI learns to beat AI

    • @JohnDoe-jm6dz
      @JohnDoe-jm6dz 5 ปีที่แล้ว +1

      That's what GANs are, it's pretty cool

    • @margaretbillings85
      @margaretbillings85 5 ปีที่แล้ว +1

      I mean, isn't that kinda what its already doing?

  • @C3Crunch
    @C3Crunch 3 ปีที่แล้ว +2

    due to the fact that i have seven hundred arms that are hard to function independantly, it takes much more concentration to move one of my arms to draw a rectangle (fastest time: 1hr 21min 62sec) than to use all seven hundred to draw one (fastest time: 2sec).
    it took me two years to write this, and apparently corona is poisoning people?

  • @marakatat
    @marakatat ปีที่แล้ว +2

    "Will upload code soon." Famous last words

  • @rockandseven57
    @rockandseven57 5 ปีที่แล้ว +120

    Worlds hardest game=views

    • @skeleton-11-
      @skeleton-11- 5 ปีที่แล้ว +3

      rockandseven57 plus the caps lock

    • @bane7679
      @bane7679 5 ปีที่แล้ว +1

      I couldnt really care about clickbait, unless it has nothing to do with the video

    • @victorvillalba7401
      @victorvillalba7401 5 ปีที่แล้ว

      IA killing itself in the hardest game ever*=views

    • @Kaan-Yaprak
      @Kaan-Yaprak 5 ปีที่แล้ว

      no truth or square is

  • @arcionek
    @arcionek 4 ปีที่แล้ว +4

    Bullet: *Awkwardly says bye.*
    Me: Y- you too.

  • @benicamera1577
    @benicamera1577 4 ปีที่แล้ว +1

    Can you make a video about the whole process of making such an AI? It could also be 8h long!

  • @oofergoofer1029
    @oofergoofer1029 3 ปีที่แล้ว +2

    when you realize that the level he fixed the "them taking a long time to finish" he got the rotations of the spinning dots wrong

  • @IamCoalfoot
    @IamCoalfoot 5 ปีที่แล้ว +406

    But isn't this AI just memorizing paths, rather than learning how to play? It doesn't seem to be getting better at _avoiding_ obstacles so much as learning where they are, which for an AI is a bit less impressive.

    • @olfmombach260
      @olfmombach260 5 ปีที่แล้ว +78

      Yes, that's also what I was thinking. This rather looks like random walk where the best results are saved. However the only thing more learning-ish would be to make a Neural Net making decisions based on either the locations of surrounding objects or even the whole pixels array, but that would likely be too hard or time consuming for just one video.

    • @MatthewSmith-sz1yq
      @MatthewSmith-sz1yq 5 ปีที่แล้ว +4

      IamCoalfoot SHHHHHHHHHHHHHHHHHHHHHHH

    • @hazmatharry
      @hazmatharry 5 ปีที่แล้ว +34

      Well, it’s the approach a human would make to this so making an AI do this is totally justified.

    • @devbom878
      @devbom878 5 ปีที่แล้ว +59

      Nope, that's not how a genetic algorithm works. You basically give the AI a bunch of variables, such as location, distance to goal, distance to obstacle, speed of obstacle, direction of obstacle etc. Based on those variables the AI can make certain decisions: move right, left, up or down. The decisions the AI's are making are based on these variables, but their decision making are all slightly different. For example, one bot might try moving left every time an obstacle is moving towards him from the right and another might try moving down. The best tactic survives each generation, based on their fitness (how close it is to reaching the goal). After a bunch of generations the best tactic to beat that a certain level survives. Of course this tactic might not work as well on other levels. So in a sense it doesn't really learn how to avoid the obstacles, only to reach the goal of that level.

    • @A2Ztigers
      @A2Ztigers 5 ปีที่แล้ว +2

      It tries something to achieve its goal a lot of different ways and repeats the ways that work up to the point they stopped working, then went back to square one - trying a lot of different things until one progresses it further. That's textbook trial and error, and I'd call it very simple and niche learning.

  • @cryingwater
    @cryingwater 5 ปีที่แล้ว +121

    AI jokes in the future
    AI: My parents learned it the hard way.
    Me: *surprised Pikachu face*

  • @PogoChamp1
    @PogoChamp1 4 ปีที่แล้ว +1

    Oh that bass line before he goes to bed tho 😍

  • @legendgames128
    @legendgames128 3 ปีที่แล้ว

    Thank you so much! :D

  • @jakemckee1986
    @jakemckee1986 5 ปีที่แล้ว +8

    I am not even subbed and I see all your videos pop up and they are really good

  • @antaresmaelstrom5365
    @antaresmaelstrom5365 5 ปีที่แล้ว +32

    Huh, so you basically introduced extinction events into the algorithm?

    • @PandoraMakesGames
      @PandoraMakesGames 5 ปีที่แล้ว +1

      Hi, I recently started making AI videos. I still have to improve, but let me know what you think!

  • @amaidiot
    @amaidiot 3 ปีที่แล้ว +2

    8:29 1 square took longer

    • @NikoThe_Skeleton
      @NikoThe_Skeleton 7 หลายเดือนก่อน

      The trick is you draw one bigger than the Moon

  • @burgersnchips
    @burgersnchips 3 ปีที่แล้ว

    More levels please!

  • @infinity_0016
    @infinity_0016 5 ปีที่แล้ว +45

    **coding intensifies**

  • @bray7934
    @bray7934 5 ปีที่แล้ว +8

    Evan made an AI to do stuff that he himself is incapable of doing.
    Evan has already completed this and the whole game multiple times.
    My name is Evan.

  • @erikhansen70
    @erikhansen70 4 ปีที่แล้ว +1

    I can relate. We're all being forced to play the worlds hardest game.

  • @smokeynifty4376
    @smokeynifty4376 4 ปีที่แล้ว

    Depends on if you put off drawing the one