AI learns to play the WORLDS HARDEST GAME even more levels

Поделиться
HTML-код
  • Опубликовано: 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,8 тыс.

  • @jhawk2402
    @jhawk2402 5 лет назад +7313

    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 лет назад +774

      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!

  • @antsinmyeyes9547
    @antsinmyeyes9547 5 лет назад +4101

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

  • @baalrog887
    @baalrog887 4 года назад +335

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

  • @PVMChannel
    @PVMChannel 4 года назад +2111

    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 лет назад +3582

    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 5 лет назад +14

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

    • @merennon
      @merennon 5 лет назад +7

      pass the butter

    • @trantus2051
      @trantus2051 5 лет назад +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?

  • @captainjames4649
    @captainjames4649 3 года назад +989

    "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

  • @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?

  • @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.

  • @fungibot8389
    @fungibot8389 5 лет назад +2812

    "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

  • @thewolfleader500
    @thewolfleader500 4 года назад +394

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

  • @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 года назад +4571

    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.

  • @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 года назад +85

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

    • @gytuj6722
      @gytuj6722 4 года назад +31

      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.

    • @lennoxschmup8733
      @lennoxschmup8733 3 года назад

      reversed world?!

    • @GermaphobeMusic
      @GermaphobeMusic 3 года назад +6

      smh robot double standards

  • @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 года назад +1485

    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😂

  • @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

  • @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!

  • @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

  • @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 😂😂

  • @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

  • @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!!

  • @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!

  • @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!

  • @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 👍

  • @pogrammer
    @pogrammer 4 года назад +18

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

  • @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: ruclips.net/video/qv6UVOQ0F44/видео.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.

  • @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..

  • @joepterpstra5020
    @joepterpstra5020 3 года назад +136

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

  • @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

  • @josktv_
    @josktv_ 5 лет назад +202

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

  • @lolwasaperson9924
    @lolwasaperson9924 5 лет назад +560

    My mile long rectangle took longer than my small grid

  • @spytf2203
    @spytf2203 4 года назад +36

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

  • @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

  • @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_*

  • @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: ruclips.net/video/V1eYniJ0Rnk/видео.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.

  • @Lilycade
    @Lilycade 4 года назад +1

    this game was literally my biggest pass time in school!
    i appreciate you making 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*

  • @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*

  • @cihanfatihi
    @cihanfatihi 5 лет назад +62

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

  • @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

  • @mx9580
    @mx9580 4 года назад +110

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

  • @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...

  • @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.

  • @boostedrival5505
    @boostedrival5505 4 года назад

    I enjoy these videos keep em comin

  • @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?

  • @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

  • @camjnz
    @camjnz 5 лет назад +31

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

  • @OTFTYT
    @OTFTYT 4 года назад +9

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

  • @kimballestad4536
    @kimballestad4536 4 года назад +1

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

  • @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

  • @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)

  • @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

  • @tefixers9158
    @tefixers9158 5 лет назад +6

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

  • @oxygen0069
    @oxygen0069 5 лет назад +12

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

  • @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.

  • @alexlearoyd8668
    @alexlearoyd8668 4 года назад +1

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

  • @Y4nn1z
    @Y4nn1z 5 лет назад +3

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

  • @erikchristiansson5324
    @erikchristiansson5324 5 лет назад +3

    Congrats on 300k!!!

  • @Nippopip
    @Nippopip 4 года назад +3

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

  • @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

  • @olikat9774
    @olikat9774 5 лет назад +36

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

  • @grantschulz9730
    @grantschulz9730 5 лет назад +76

    You should make ai do geometry dash

  • @hottox8861
    @hottox8861 3 года назад

    Good content. Subbed

  • @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

  • @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

  • @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

  • @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

  • @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.

  • @calioryforever3431
    @calioryforever3431 5 лет назад +43

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

  • @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

  • @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?

  • @burgersnchips
    @burgersnchips 3 года назад

    More levels please!

  • @perecollfdz
    @perecollfdz 5 лет назад +3

    Hi mate. How does your fitness function selects the best square? Does it only takes in account the number of steps? Or is there a distance calculator from the yellow dots?
    Thanks!

    • @Cyberian_Khatru
      @Cyberian_Khatru 5 лет назад +1

      i may be wrong, but I think he just calculates which player got the closest to the current objective (first coins then end zone) and selects that one.

    • @buckiez
      @buckiez 5 лет назад +1

      pretty sure it's calculated like in the dots video, it just chooses the player that got the closest to the current objective, BUT! once a player beats the level, the fitness function switches to whoever can beat the level with the fewest steps

  • @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 RUclips videos showing all the levels off.

  • @PogoChamp1
    @PogoChamp1 4 года назад +1

    Oh that bass line before he goes to bed tho 😍

  • @bevaninaustralia
    @bevaninaustralia 2 года назад

    i know the video is old, great to see code bullet back
    is this an AI learning to play? or a recorded sequence moving randomly, if it doesn't fail it progresses in the next generation? or is that just what we call AI?

  • @infinity_0016
    @infinity_0016 5 лет назад +45

    **coding intensifies**

  • @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.

  • @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

  • @gamingwithhunna422
    @gamingwithhunna422 Год назад

    I fucking love code bullets background music

  • @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.

  • @majora748
    @majora748 5 лет назад +3

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

  • @erikhansen70
    @erikhansen70 4 года назад +1

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

  • @Mochibillsnucks
    @Mochibillsnucks 4 года назад

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

  • @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?

  • @jakemckee1986
    @jakemckee1986 5 лет назад +8

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

  • @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!

  • @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

  • @cryingwater
    @cryingwater 5 лет назад +121

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

  • @arcionek
    @arcionek 4 года назад +4

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

  • @marakatat
    @marakatat Год назад +2

    "Will upload code soon." Famous last words

  • @maxbear4655
    @maxbear4655 4 года назад +80

    Who else watches this just bc he never uploads on time lol

    • @patricktho6546
      @patricktho6546 3 года назад

      @@nohumanman technically you can define a trivial one, but...
      Evan things :)

  • @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.

  • @cplnerf
    @cplnerf 5 лет назад +61

    I don't feel like evolutionary AIs are real AIs. We want an AI that can complete ANY level!

    • @greyl1
      @greyl1 5 лет назад +25

      cplnerf “Once it works, nobody calls it AI anymore” - John McCarthy

    • @spartanwar1185
      @spartanwar1185 5 лет назад +6

      WRONG!
      Common sense is often a vague term
      And even searching what separates humans from AI will reveal it's not common sense
      It's borders like morale and our bodies' physical capacity
      And our experiences and how our minds hold onto those experiences, how they change and affect us
      There's alot of variables in a human mind an AI is yet to replicate
      And there's no one label for them all
      We CAN code it
      It's just figuring out how is such a long difficult task
      Probably harder than the world's hardest game
      And even then we need technology capable of computing those variables
      Which i think Nasa has already done for us lmao

    • @jeffreyblack666
      @jeffreyblack666 5 лет назад +5

      Greyli, while that is a nice sentiment, it isn't accurate.
      A more accurate version is that once we can program it with a static program (i.e. no database required) where it will do just as well with a new set of stimuli (new level in this case) regardless of if it has just been compiled and is being run for the first time or being run for the millionth time, it isn't AI.
      That is because it is just following a simple set of instructions. It isn't learning or otherwise displaying intelligence.

    • @stormreach1234
      @stormreach1234 5 лет назад +5

      The real problem with the program in this scenario is that they aren't AI's, they're just a random set of movements which just so happen to carry the square past all obstacles and to the goal area. It would be very cool if Code Bullet could make an ACTUAL AI to do this, while difficult it's definitely possible.

    • @Andersmithy
      @Andersmithy 5 лет назад +8

      haha ping me when you find a human with common sense

  • @J0sh00
    @J0sh00 2 года назад

    That royalty free music at 5:10 is pretty banging

  • @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