I Created a PERFECT SNAKE A.I.

Sdílet
Vložit
  • čas přidán 27. 11. 2019
  • I used math, science and tears to create a snake AI which always wins (sometimes).
    Massive thanks to brilliant.org for supporting this episode, check them out here: www.brilliant.org/CodeBullet
    Also check out John Tapsells work: johnflux.com/
    Heres my stuff
    Twitter: / code_bullet
    Patreon: / codebullet
    Discord: / discord
    Art created by @Dachi.art / dachi.art

Komentáře • 20K

  • @sirapple589
    @sirapple589 Před 4 lety +5422

    CB Viewers: “Why is he taking so long to upload?”
    Code Bullet: *Throwing out entire weeks of progress for shits and giggles*

    • @ewan7746
      @ewan7746 Před 4 lety +111

      CBT viewers: ouch my balls

    • @Sarah12471
      @Sarah12471 Před 4 lety +145

      CB veiwers:.... Wait what the fuck? Why?
      Code Bullet: cause fuck you and fuck me that's why

    • @hydra9070
      @hydra9070 Před 4 lety +6

      -

    • @seeker4430
      @seeker4430 Před 4 lety +2

      Also no sharing code

    • @sirapple589
      @sirapple589 Před 4 lety +1

      tremonk
      I don’t play Fortnite.

  • @hackhair5832
    @hackhair5832 Před 4 lety +6989

    This guy always sounds like someone just told him a clever joke that wasnt quite good enough to make him laugh but made him smile widely through the rest of the conversation

    • @Lone_Rocket
      @Lone_Rocket Před 4 lety +364

      Strangely specific.

    • @rozh996
      @rozh996 Před 4 lety +209

      Satisfying and specific

    • @HelpOTWx3
      @HelpOTWx3 Před 4 lety +169

      Strangely specific, but not wrong

    • @levelup6243
      @levelup6243 Před 4 lety +33

      Basically exactly like Daniel Ricciardo...

    • @ConnorMeagher
      @ConnorMeagher Před 4 lety +49

      Which translates to the viewer. The process is fun to watch though

  • @samurai2871
    @samurai2871 Před 2 lety +1243

    Dude if your GPS was actually like that, I'd totally buy one.

  • @randorookie8587
    @randorookie8587 Před 2 lety +394

    A code bullet GPS would just be “keep doing random shit till something works” and then take the best of all those failing methods rinse repeat till we’ve got a route

    • @wilbo_baggins
      @wilbo_baggins Před rokem +10

      Also new roads won't be added for months to a year

    • @timdadwagan
      @timdadwagan Před 12 dny

      Just go for the longest path duh

  • @TheTruth-si5zq
    @TheTruth-si5zq Před 4 lety +6530

    “He didn’t die, he just kinda gave up” This hit to close to home 😂

  • @nikscerniss6429
    @nikscerniss6429 Před 4 lety +5652

    If: gonna run into self
    -don't.

    • @alejrandom6592
      @alejrandom6592 Před 4 lety +340

      deep shit you got over there

    • @romankalinchuk2750
      @romankalinchuk2750 Před 4 lety +389

      If: hungery
      -eat
      Function.repeat

    • @shaunclarke04
      @shaunclarke04 Před 4 lety +43

      Evija Cernisa what bloody syntax is that??

    • @laserbeem6692
      @laserbeem6692 Před 4 lety +81

      accualy it goes like this in java
      if(head of snake touches self){
      user is dead;
      }
      this is pseudocode

    • @foxfyre3600
      @foxfyre3600 Před 4 lety +73

      @@laserbeem6692 else { dontDie(bool justDont = true) }

  • @iwtbwiw
    @iwtbwiw Před rokem +95

    I love how it doesn't even look like a game of snake at one point on, it just looks like a green box with random changing lines and holes

  • @nathanmay9694
    @nathanmay9694 Před rokem +30

    I’ve been watching him for a good bit now, and just now realized he codes IN LIGHT MODE. Anyone that codes in light mode is secretly burying some bodies in their backyard

    • @bestintheband5114
      @bestintheband5114 Před 6 měsíci

      Me: no, Michael Reeves codes in light mo... no that checks out
      (In some of his old videos at least idk if he still does don't @ me)

    • @Thelongestshrimp
      @Thelongestshrimp Před 14 dny

      Checks out. He killed Adrian. And Adrian killed like 5 fully-trained soldiers, but Adrian died nonetheless.

  • @Lucerne9
    @Lucerne9 Před 4 lety +4085

    "The snake will get pissed off and take an angry nap"
    This is me trying to do calculus hmwk

  • @mermer3572
    @mermer3572 Před 3 lety +3721

    First rule of snake: snake eat apple
    Second rule of snake: under absolutely zero circumstances does snake eat apple

    • @sethstersbench
      @sethstersbench Před 2 lety +117

      Third rule of snake: NO HOLES

    • @BobBob-ye4vz
      @BobBob-ye4vz Před 2 lety +54

      Fourth rule of snake: don’t die lol

    • @mynameisjoseph7848
      @mynameisjoseph7848 Před 2 lety +30

      Fifth rule: dont not cheat

    • @user-cd4bx6uq1y
      @user-cd4bx6uq1y Před 2 lety +9

      The thing at 19 40 looks like plant vines. Also I randomly pause and it was at 19:55, funny number.

    • @Finn_the_Cat
      @Finn_the_Cat Před 2 lety +9

      Paradoxically paradoxical

  • @blenderium
    @blenderium Před 2 lety +406

    4:36 the rare footage of a coder actually *writing its own code* instead of copying.....
    what an amazing discovery

    • @WinterNox
      @WinterNox Před 2 lety +3

      Hi bro >:)

    • @uhohitsatrap9989
      @uhohitsatrap9989 Před rokem +3

      Yep, that's Code Bullets content and it's so satisfying to write out working codes and scripts.

    • @Billy-jo3bt
      @Billy-jo3bt Před 9 měsíci +1

      If you’re not recording a video to showcase your talent what’s the problem with using a code that’s already been written to speed up your process?

    • @lumin_curse
      @lumin_curse Před 7 měsíci +1

      In light mode too

    • @DawnAfternoon
      @DawnAfternoon Před 7 dny

      We meme it all the time but usually we do get our hands down with programming the details in lol

  • @Helladamnleet
    @Helladamnleet Před 2 lety +214

    You should figure out a way to convert these AIs to be screensavers. I'd legit pay 99 cents for them

  • @Ryan-iz2nm
    @Ryan-iz2nm Před 4 lety +2257

    2019: trying to beat snake with an a.i.
    2020: trying to build an a.i. to hack Nasa

  • @alexi4829
    @alexi4829 Před 4 lety +1921

    Code Bullet in a nutshell:
    Angry man cries his way through life whilst complaining about the things he loves
    so basically every programmer ever

  • @cottagcheese
    @cottagcheese Před 2 lety +27

    18:32
    it now just looks like a black snake in a field of grass

  • @refl9630
    @refl9630 Před 2 lety +55

    3:37 there are only three possible moves at any time, since the snake can't go back.

  • @BalconyDog
    @BalconyDog Před 4 lety +6159

    Plot twist: it was him playing the whole time, hes spent years training

    • @jacobalexander4498
      @jacobalexander4498 Před 4 lety +163

      Years of academy training, wasted!

    • @alexh1321
      @alexh1321 Před 4 lety +148

      All that time he wasn’t uploading he was just training

    • @Buphido
      @Buphido Před 4 lety +71

      Plot twist: the actual ai is code bullet, created to produce ai offspring and making a little money through it on the side.

    • @MrWendiloohoo
      @MrWendiloohoo Před 4 lety +12

      plot twist: it was actually u playing the whole time

    • @oii_oii
      @oii_oii Před 4 lety

      not years just 4 months of playing snake

  • @formularogue
    @formularogue Před 4 lety +1304

    RIP Adrian 2019 - 2019
    Forever in our hearts

  • @mprocks6522
    @mprocks6522 Před 2 lety +69

    Near the end Even losing his sanity over 2 blocks is like the Sargent losing his mind and screaming "4 FUCKING PIXELS"

    • @ziyadessoufi2052
      @ziyadessoufi2052 Před rokem +3

      Thats some serius 096 lore right there for how long have u been in the scp community?

    • @alexaltaccount7812
      @alexaltaccount7812 Před rokem +1

      that isnt even serious lore, i think its a pretty well known thing

    • @pacifistichuman82649
      @pacifistichuman82649 Před 8 měsíci

      "Two. FUCKING. BLOCKS."
      *SANITY*

    • @ourlordandsaviorsquirtle3278
      @ourlordandsaviorsquirtle3278 Před 6 měsíci

      @@ziyadessoufi2052 thats literally the most common piece of 96 lore aside from its abilities

  • @TheSinnerReloaded
    @TheSinnerReloaded Před rokem +8

    20:51 When your download gets stuck at 99% and gives you an error after 12 hours of waiting.

  • @Furrett
    @Furrett Před 4 lety +3918

    i love how Code Bullet can disappear for months on end consistently and then release a video that'll almost immediately get on trending, i like to think he's created the perfect AI to beat CZcams

    • @NatapixAS
      @NatapixAS Před 4 lety +87

      its the two AIs trying to communicate

    • @k96man
      @k96man Před 4 lety +54

      @@NatapixAS Maybe the snake is trying to spell 'send help'

    • @Nate-bd8fg
      @Nate-bd8fg Před 4 lety +4

      DaBlackFoxAlt 'cept trending is hand selected by CZcams staff

    • @GymRat-7192
      @GymRat-7192 Před 4 lety +24

      @@Nate-bd8fg wait, does that mean that they picked a "vulgar unfamily-friendly" channel for trending? Since he swears in almost every video, including this one.

    • @Ramondorez
      @Ramondorez Před 4 lety +12

      He's the Jontron of coding.

  • @imallsoupedup
    @imallsoupedup Před 4 lety +1148

    1950: I bet they’ll have flying cars in the future!
    2019: DIVEDE BY
    M A T H N ‘ T (3:55)

    • @Zergliskful
      @Zergliskful Před 4 lety +19

      Fun fact, flying cars exist, but no one is allowed to use them because there aren't any laws for them

    • @Xusemeh
      @Xusemeh Před 4 lety +11

      @@Zergliskful it is not a fun fact if u cant fly them cars

    • @masternobody1896
      @masternobody1896 Před 4 lety +8

      1950: cold war
      2050: robot ai war....or may be not war.... girl robot sucking my popo

    • @shirleyling7923
      @shirleyling7923 Před 4 lety +2

      The future could be 1951

    • @imallsoupedup
      @imallsoupedup Před 4 lety +1

      Jeunesse Global uhhhhhhhhhhhhhhh take my thumb

  • @shink303
    @shink303 Před 9 měsíci +6

    i like how a completed snake board becomes a maze.

  • @Jaylan.M
    @Jaylan.M Před 2 lety +23

    I hope this is made into a wallpaper. It’s quite satisfying

  • @sophiacristina
    @sophiacristina Před 4 lety +638

    Programming:
    "Omg, i can't believe this really works!"
    "Omg, of course it didn't!"

    • @Hunnter2k3
      @Hunnter2k3 Před 4 lety +10

      I can get like that half-way through the first sentence sometimes.
      "omg I can't believe it didn't works!"

    • @SomeRandomDude821
      @SomeRandomDude821 Před 4 lety +3

      My teacher gave us an assignment. This was a comp 101 course, easy stuff. I spent days fixing output spacing. When it was done, I couldn't tell you why the spacing worked. I couldn't tell you why some lines were needed. But it passed the test class so...

    • @tafua_a
      @tafua_a Před 4 lety +2

      Programming is like trying to teach how to swim to a tomato.

  • @brodyfrable4250
    @brodyfrable4250 Před 3 lety +7166

    I like that everyone just looked over the fact that adrian single-handedly killed _at least_ 5 fully-trained soldiers

  • @milliesotheraccount
    @milliesotheraccount Před 2 lety +9

    I can’t be the only one to give the snake a voice when it went into “survival mode”. Like every time it did, I would just hear it screaming “SHIT FUCK GOTTA LIVE GOTTA LIVE OH MY FUCKING GOD GOGOGOGOGOGOGOG” or something.

  • @dumbo21
    @dumbo21 Před 2 lety +17

    Damn after a while the patterns it made got so hypnotizing

  • @InappropriatePolarbear
    @InappropriatePolarbear Před 3 lety +2336

    "The snake will get pissed off and take an angry nap" is a phrase I need to use more in my life.

    • @myak5754
      @myak5754 Před 2 lety +21

      Ig im a snake then

    • @abacussssss
      @abacussssss Před 2 lety +16

      finally 👨🏾‍🔬 sleeps furiously

    • @y_onis7038
      @y_onis7038 Před 2 lety +6

      @@abacussssss can you sleep depressed

    • @sinuslebastian6366
      @sinuslebastian6366 Před 2 lety +3

      Y_onis I do it everyday

    • @pacifistichuman82649
      @pacifistichuman82649 Před rokem +3

      @@y_onis7038 what about sleep neutral, happy, ecstatic, manic, sad, miserable, angry, enraged, afraid, (mostly me LOL) and stressed out?
      yes, omori reference

  • @nicholasruff7376
    @nicholasruff7376 Před 4 lety +1615

    Title: “Perfect Snake A.I”
    Me, having seen his last 12 snake A.I videos: **Doubt**

  • @anshriyal6495
    @anshriyal6495 Před 2 měsíci +1

    easy way to fix the ending: when Hamiltonian step value of tail - head becomes too small, i.e. snake has grown wayyy too long, then stop implementing shortcuts. It will help with:
    A) Winning
    B) Winning efficiently; the item gets spawned on the blocks which are empty, when the snake is long and skips small steps on the cycle, then it creates small pockets which increases the number of Hamiltonian cycles the snake takes.
    Awesome video, love the content!

  • @bowenjudd1028
    @bowenjudd1028 Před 2 lety +9

    3:07 I just realized that CB scared the driver so much, they gripped and tore part of the steering wheel off.

  • @thedrawingkidanimatedkid686
    @thedrawingkidanimatedkid686 Před 3 lety +7733

    Ai: misses by one pixel
    Ai: this little maneuver is gonna cost us 51 years

  • @alicemoffat
    @alicemoffat Před 4 lety +12826

    I swear, Evan is going to end up building the Terminator.

    • @mattes4929
      @mattes4929 Před 4 lety +416

      Didn't he already do that? His Clicking-AIs are able to open command prompt and to hire virtual gunmen. Just some more features or bugs and glitches and boom: Terminator

    • @donteatwater3607
      @donteatwater3607 Před 4 lety +34

      Lol

    • @elgurkus6885
      @elgurkus6885 Před 4 lety +99

      *accidently

    • @Elipus22
      @Elipus22 Před 4 lety +59

      He'll be able to once he cracks enigma

    • @bundog5367
      @bundog5367 Před 4 lety +38

      He is going to be a terminator

  • @yhcgamer523
    @yhcgamer523 Před 6 měsíci +3

    For some reason the designs the snakes body makes are so smooth and satisfying

  • @purestsalt8870
    @purestsalt8870 Před 2 lety +3

    i love how at the end, it seems as though the leftover spaces made by the movement of the snakes tail is the snake

  • @deevee5327
    @deevee5327 Před 4 lety +1523

    "This solution is just riddled with issues"
    *Still plays snake better than me.*

    • @adaptablerubenvideos3097
      @adaptablerubenvideos3097 Před 4 lety +16

      Idea: make a minecraft AI that is atleast capable of beating the game
      Mailed comment 2

    • @urinetrouble0543
      @urinetrouble0543 Před 4 lety

      DeeVee hey do you know what the storm light archive is?

    • @elemaire86
      @elemaire86 Před 4 lety +2

      He's not actually playing it. He's just figuring out the best algorithm and letting a computer do the rest.

    • @deevee5327
      @deevee5327 Před 4 lety +1

      @@urinetrouble0543 If I know what Stormlight Archive is? Sir, I *live and breathe* by Sanderson's books.

    • @urinetrouble0543
      @urinetrouble0543 Před 4 lety

      Eric Lemaire, Jr. they never said he was playing it

  • @ojuswi
    @ojuswi Před 4 lety +881

    "Let's make it 10 times faster"
    "Alright 50 times FASTER"
    "100 times FAYESTER"
    "1000 times FAYASTAH"

    • @matthewh8812
      @matthewh8812 Před 4 lety +12

      Let's make code change his upload schedule like that

    • @Koppu1doragon
      @Koppu1doragon Před 4 lety +6

      Me watching at 2 times speed
      "2000 times FAYASTAH"

    • @michaeltp6730
      @michaeltp6730 Před 4 lety +4

      me watching from Spain
      "1000 times FIESTA"

  • @HiddenRealm
    @HiddenRealm Před 2 lety +2

    It was so good though that whole run was amazing! The literal issue was the simple ineffeciency that it couldn't perfectly optomized based on it's tail, because it doesn't check literally every step where to reroute, or is capable of planning ahead.
    If it could plan ahead how many steps it takes to reach the point the tail would be at by that many steps, it could include that as the possible location for it to travel through, and end up optimizing it's movements, potentially perfectly following it's tail to buy time. Instead it's very visible that it does periodically check, but still tries to avoid it's phantom tail.

  • @adnamafett7862
    @adnamafett7862 Před rokem +3

    While I love watching these videos awake and aware, they also make a good sleep aide for the second+ watch. It’s a “teacher is talking about something I find interesting but have a rough time understanding and also I did not sleep last night so I guess it’s now nap time” vibe.
    So thank you so much

    • @adnamafett7862
      @adnamafett7862 Před rokem

      Instead of taking melatonin for my insomnia, I up your view count

  • @Bakken102
    @Bakken102 Před 4 lety +504

    Snake: *turns red*
    Snake's AI: current objective: *SURVIVE*

    • @jjmj4971
      @jjmj4971 Před 4 lety +1

      Current objective*

    • @Bakken102
      @Bakken102 Před 4 lety +1

      @@jjmj4971 Thanks

    • @Sparrowash97
      @Sparrowash97 Před 4 lety

      Translated into Code Bullet speech: Fuck! Fuck Fuck Fuckadie Fuuuuuck!!!

  • @Madame_Talos
    @Madame_Talos Před 3 lety +2973

    If the robot uprising starts with Evan,
    *_It probably won’t last long_*

    • @yahiaaymankamaly3518
      @yahiaaymankamaly3518 Před 3 lety +204

      Hey ! Take this more seriously , if they have 5000 attemps they may be even able to leave the room they started in

    • @tylernelson310
      @tylernelson310 Před 3 lety +9

      @Anime_Edits i cant tell if thats real or not

    • @tylernelson310
      @tylernelson310 Před 3 lety +4

      @Anime_Edits ohhhh that one

    • @nathaniel1207
      @nathaniel1207 Před 3 lety +32

      this implies 1 of 2 things. either he'll win quickly. or he'll fail quickly

    • @rodoggx9046
      @rodoggx9046 Před 3 lety +8

      No no it will be with Machine learning. So much shorter

  • @MonkeySimius
    @MonkeySimius Před 2 lety +5

    I really liked your snake that tried to circle the food before killing it. Like some boa constrictor. Only time I've seen a strategy like that.

  • @eggstatus5824
    @eggstatus5824 Před rokem +12

    If I were to fix the pathfinding one I would try to make sure the AI always knows where the tail has been. That way it can follow each place the tail has previously been in survival mode. That way it will never get trapped by going into places that are technically 80% of the remaining map, but are traps. Think about it, if you follow the exact places the tail has been, then you will never get trapped because those paths are constantly being cleared

  • @Xturnia
    @Xturnia Před 4 lety +977

    He sounds like he is smiling as he's talking.😆

  • @geimskip17
    @geimskip17 Před 4 lety +901

    Evan: "im back"
    Me: "dont do that, dont give me hope"

    • @jennacalcote2958
      @jennacalcote2958 Před 4 lety +1

      cocaine cola GUESS WHO’S BACK. BACK AGAIN. SHADY’S BACK. TELL A FRIEND. Also, great name dude👌

    • @tannerxavier9746
      @tannerxavier9746 Před 4 lety

      Bet he’s sorry he couldn’t give it to you sooner

    • @thelegendarykidofmystery1226
      @thelegendarykidofmystery1226 Před 4 lety +1

      *You regain hope but a person you love falls into a pit*

  • @DrPsychotic
    @DrPsychotic Před 10 měsíci +1

    this was surprisingly cool, I also liked watching the first one it was so suspenseful and i really thought it was gunna work

  • @dumbo21
    @dumbo21 Před 2 lety +7

    11:44 is this the intro to an 80’s “hacker” film

  • @justaderrickrosestan
    @justaderrickrosestan Před 4 lety +2684

    “He didn’t die, he just kind of gave up”
    Buddy that’s most of us now a days

    • @Iorvethfox
      @Iorvethfox Před 4 lety

      @Griffin Dale shut up

    • @tong6644
      @tong6644 Před 4 lety +12

      Darth Occlus wut

    • @IsaacClodfelter
      @IsaacClodfelter Před 4 lety

      Waaaaay too real.

    • @ebozic620
      @ebozic620 Před 4 lety +1

      i was watching your comment when he literally said that xD

    • @kellencross2760
      @kellencross2760 Před 4 lety +5

      @@Iorvethfox why are you being salty about his comment he was being nice

  • @Ha1cyon00
    @Ha1cyon00 Před 4 lety +541

    "I'm sure you can tell when it goes to 'Oh shit, Survival Mode"
    Well yes when the snake goes all blood red like it's hunting for lives

    • @thanosattorneyatlaw4062
      @thanosattorneyatlaw4062 Před 4 lety +9

      Judging from the part where the broken snake literally beat up the army, yeah it probably IS hunting people

  • @filippobilzoni5682
    @filippobilzoni5682 Před 2 lety +23

    I would love to have an animated wall in my room with this AI going all the time

    • @Brigeb20
      @Brigeb20 Před rokem +1

      And when you turn it off the snake resets it's size and position

  • @jackat4
    @jackat4 Před 7 měsíci +2

    For people who didn't hear Code Bullet over the sounds of Adrian getting murdered:
    "Ok, back to the drawing board. The whole Q Learning thing didn't go super well so what we're gonna wanna do is get rid of all Q Learning and then some fancy sh*t and just break this problem down into it's bare basics"

  • @salmon7007
    @salmon7007 Před 3 lety +5185

    This would be an awesome like monitor background just a constant repetiting game of snake for your screen saver

    • @failtronic2646
      @failtronic2646 Před 3 lety +280

      found a background on Wallpaper Engine that literally randomizes a maze and solves it.

    • @rustydawg2443
      @rustydawg2443 Před 3 lety +44

      Someone needs to make this happen

    • @slxpperyy9796
      @slxpperyy9796 Před 3 lety +40

      @@failtronic2646 what is it called

    • @failtronic2646
      @failtronic2646 Před 3 lety +111

      @@slxpperyy9796 steamcommunity.com/sharedfiles/filedetails/?id=1550989740
      The whole thing is customizable. You can change the color of the maze maker and solver, the wall color, the background color, and you can change the speed of the maze maker and the solver. Real cool stuff.

    • @evrodrill
      @evrodrill Před 3 lety +3

      Ooooooooooooooooo Fiat hi FFFFAAAAAKKKKEEEE

  • @YoursTrulyNoober
    @YoursTrulyNoober Před 9 měsíci +1

    for some reason this feels very satisfying

  • @teufel-gm9zz
    @teufel-gm9zz Před 6 měsíci +6

    2:10 i am a subscriber now

  • @witchfinda
    @witchfinda Před 4 lety +1653

    Nobody:
    The snake when it turns red: *NEW OBJECTIVE- SURVIVE*

    • @Dy1an.k
      @Dy1an.k Před 4 lety +23

      Halo reach, best halo

    • @theworldsdankestparanormal9805
      @theworldsdankestparanormal9805 Před 4 lety

      Cake 4life what

    • @Dy1an.k
      @Dy1an.k Před 4 lety +11

      @@theworldsdankestparanormal9805 new objective-survive is a halo reach reference

    • @EonsEternity
      @EonsEternity Před 4 lety

      @@Dy1an.k i mean.....

    • @Dy1an.k
      @Dy1an.k Před 4 lety +5

      @@EonsEternity what, it was defanitly a halo reference
      Zoomer

  • @michael_angelo_myers
    @michael_angelo_myers Před 3 lety +2072

    This would be the coolest screen saver.

  • @AchyutRM
    @AchyutRM Před 9 měsíci +1

    8:33-14:06 is genuinely the best screensaver ever

  • @theevilduckling7272
    @theevilduckling7272 Před 10 měsíci +6

    The problem with the second ai might have been that even though the snake's head could reach more than 80% of the empty spaces, when the snake is really long (and so there are very few empty spaces) *the snake could still get trapped in that 80%*. The solution to that might be to add a conditional for when the snake becomes really long, it starts following the Hamiltonian cycle that he used in the last ai.

  • @alexandraantimie9576
    @alexandraantimie9576 Před 3 lety +817

    My anxiety reaches a whole new level when the snake circles the apple and leaves the smallest opening

  • @BrodieEaton
    @BrodieEaton Před 4 lety +418

    Code Bullet: It’s perfect!
    The snake: *I’m ‘boutta end this man’s whole career*

  • @user-fm3xy7td5f
    @user-fm3xy7td5f Před 2 měsíci

    Honestly with how much you upload the into is accurate

  • @Shinyreaper816
    @Shinyreaper816 Před 7 měsíci +2

    Whilf observing the snake in its natural habitat, scientists recorded some strange behavior, the snake seemed to go from 7 to 12, they where quite confused due to the fact that they didnt listen to codebullets commentary, and instead paued attention in class

  • @leddy7315
    @leddy7315 Před 4 lety +21933

    It’s not an ai, he’s just really good at snake

    • @fluffiestboi175
      @fluffiestboi175 Před 4 lety +480

      Plot Twist

    • @leondyson-rix8233
      @leondyson-rix8233 Před 4 lety +119

      Lmao

    • @smiley94
      @smiley94 Před 4 lety +694

      That’s why he took so long... coudn’t do it by A.I. So he became the best snake player ever.

    • @mortemsteam
      @mortemsteam Před 4 lety +24

      @RedPanda250 wooosh

    • @nubbular
      @nubbular Před 4 lety +46

      Why do people always say this about this guy?

  • @themoldysausage
    @themoldysausage Před 2 lety +4256

    "I'm back guys!"
    The best part of Code Bullet is him pretending to be a consistently uploading youtuber

    • @jovan0454
      @jovan0454 Před 2 lety +180

      It's very consistent, at least one upload a year!

    • @assaultmodemeliodas5283
      @assaultmodemeliodas5283 Před 2 lety +19

      @@jovan0454 That is true

    • @RobertMcBride-is-cool
      @RobertMcBride-is-cool Před 2 lety +44

      And calling when he uploads a “schedule”.

    • @rangaplays2025
      @rangaplays2025 Před 2 lety +11

      it could be an aussie thing cus both of us just cant ever be bothered to upload
      and i just started like 4 months ago or something

    • @MathShorts
      @MathShorts Před 2 lety +12

      @@jovan0454 it's been 11 months since the last upload, is he gonna be able to one upload a year?

  • @ashleydejong3402
    @ashleydejong3402 Před 6 měsíci

    1:40 This is a masterpiece of combat, the effects, the visuals itself are just beautiful

  • @MATISTHERAT
    @MATISTHERAT Před 4 lety +625

    Lol imagine him trying to keep a straight face making the sounds for the military scene.

    • @user-hm1kq6lj4l
      @user-hm1kq6lj4l Před 4 lety

      MATISTHERAT it’s really not that hard to do that especially since he doesn’t have the maturity of a 12 year old

    • @olgierdvoneverec4135
      @olgierdvoneverec4135 Před 4 lety

      why would he need to keep a straight face tho?

    • @darthfikus5206
      @darthfikus5206 Před 4 lety

      TBH that was a rather accurate depiction of military - they kill a bunch of people and things only get worse.

    • @luv-uf3qz
      @luv-uf3qz Před 4 lety

      @Spit Dragon well not for me, if you told me to do that voice ,i would take a few weeks

    • @Travminer123
      @Travminer123 Před 4 lety

      B it’s meant to be funny. It’s the point and it fucking was

  • @IonicFalcon
    @IonicFalcon Před 4 lety +1865

    And like that, he’s gone again....

  • @termisher5676
    @termisher5676 Před rokem

    Best strat is to move all over plave and not take frut into consideration after reaching certan lenght.
    Like you must go trough every single square from keft to right leaving single line free on left or right and when you come back from top you repeat lines from keft to right.

  • @Broth_Hunter
    @Broth_Hunter Před 2 lety

    Having this for a screen saver would be amazing

  • @mellow6268
    @mellow6268 Před 3 lety +1895

    Funny how at the end it looks like a black snake moving along a green grid

  • @Mathrilord
    @Mathrilord Před 4 lety +1036

    Three rules to win at snake
    1: always have a direct path to your tail
    2: never create enclosed space
    3: never create dead end

    • @kaidenrogers
      @kaidenrogers Před 4 lety +74

      4. Don't lose. This can also be 1.

    • @CaelVK
      @CaelVK Před 4 lety +18

      Just be good at the game 4head

    • @courtneywaybright8184
      @courtneywaybright8184 Před 4 lety +4

      dont travel along the edge unless needed to get the next food

    • @babytricep437
      @babytricep437 Před 4 lety

      Mathrilord easier said then done

    • @ilost1492
      @ilost1492 Před 4 lety +1

      Wait, the flaw with the first rule for the AI will just continue making its circles because of the fact that ai will follow its programming

  • @guky667
    @guky667 Před 2 lety

    Also you should be able to hugely optimize the hamiltonian loop; the food only spawns in empty places, so you can systematically have the snake occupy space in a way it forces food to spawn elsewhere, so if you - for example - choose to split the screen in 4 quadrants, you could start by having the snake loop in 1 quadrant and leave its tail there so only the remaining 3 are free to move (and have food spawn in them) so it doesn't have to loop the entire cycle, and as it gets longer occupy more quadrants until everything left is 1 quadrant

  • @griffenrobrahn4604
    @griffenrobrahn4604 Před rokem +118

    i love the part where he said "it's snakeing time" and then snaked all over everyone.

  • @tylan5081
    @tylan5081 Před 4 lety +582

    Respect to cb for making this but I spent almost half an hour watching a green line on a screen

  • @bigtimeaorta
    @bigtimeaorta Před 4 lety +1178

    I like it when the snake just stops moving and gives up
    "Eventually, Kars stopped thinking..."

  • @Andrew_Shepherd870
    @Andrew_Shepherd870 Před 2 lety +1

    I would genuinely use a recording of this as a screen saver because it looks so cool

  • @HCivicFg2
    @HCivicFg2 Před 2 lety +1

    Best line of the whole video, "2020 I'm going to be a free man."

  • @Jackie777
    @Jackie777 Před 2 lety +1154

    13:00 was SUCH a "fuck the apple, I NEED TO LIVE" moment

  • @perry4808
    @perry4808 Před 4 lety +1029

    2019: building AI to beat a game !
    2025: recreating skynet!

    • @mowermen1762
      @mowermen1762 Před 4 lety +2

      Quantum _ this is the first comment

    • @Thisismaintv
      @Thisismaintv Před 4 lety +3

      Skynet already exists, I work there.

    • @ducaarimoore5290
      @ducaarimoore5290 Před 4 lety +6

      @@Thisismaintv "recreating" like re-create -_-

    • @axiomaticc
      @axiomaticc Před 4 lety +1

      LMAO

    • @BlazeRKGK
      @BlazeRKGK Před 4 lety +3

      @@Thisismaintv you OBVIOUSLY work there with that much iq

  • @german_engineering1449

    The extremely large game towards the end of the game is unironically extremely beautiful and fascinating to watch. I actually went back and slowed down the playback speed so I could follow the movement (admittedly only slightly) better

  • @isidoord6106
    @isidoord6106 Před 2 lety

    10:00 it’s honestly both so satisfying and so frustrating to watch the snake trying his best to not touch the apple.

  • @dibulater640
    @dibulater640 Před 4 lety +1447

    2019 : Perfect Snake A.I.
    2029 : Perfect World Domination by A.I.

  • @williamjohnson8543
    @williamjohnson8543 Před 4 lety +656

    It looks like the perfect maze when it is complete.

    • @Luuncho
      @Luuncho Před 4 lety +10

      Except there are zero branches in paths because it’s a snake, so there would be literally no way to fail the maze

    • @lilaxeree3621
      @lilaxeree3621 Před 4 lety +1

      @Kamarious Antonio Temple stop spam

    • @lilaxeree3621
      @lilaxeree3621 Před 4 lety

      @@Luuncho actually there would be no way to win

    • @thelyricplug1094
      @thelyricplug1094 Před 4 lety

      czcams.com/video/8cy1T169s6A/video.html

    • @Luuncho
      @Luuncho Před 4 lety

      @@lilaxeree3621 well by winning i mean go from end to end of the maze

  • @moon765
    @moon765 Před rokem +2

    he should of made a grind where it goes into all the squares only leaving the ones behind it and let it leave a little space to come back to the start and start again

  • @Badboy-vn7eb
    @Badboy-vn7eb Před 2 lety +2

    I would be interesting to see him go back to this and make a change where the head of the snake had to be a certain distance away from the tail while following it. I think that would actually be a much easier way of playing it, since that would only let the snake follow the spaces that the tail leaves open while also eating the apple. Now, he may have tried that, and I can't remember since I am writing this at the end of the video. Just an idea.

  • @_The_Dumbass_
    @_The_Dumbass_ Před 4 lety +584

    When the snake starts writing Latin and your sleep paralysis demon gets upgraded to a paralyzing demon

    • @jeffjeff2514
      @jeffjeff2514 Před 4 lety +9

      @Kamarious Antonio Temple
      Shut the fuck up, and stop your god damn lies

    • @adog8379
      @adog8379 Před 4 lety

      Kamarious Antonio Temple this is the reason I watch videos 4 or 5 hours ago

  • @Bamthis
    @Bamthis Před 4 lety +836

    You know a snake player is good, when it’s snake looks like an Aztec temple

  • @noxsnow8960
    @noxsnow8960 Před 8 měsíci

    That has got to be the most satisfying video of snake I've ever seen

  • @user-ft3nm2to8f
    @user-ft3nm2to8f Před 7 měsíci +1

    19:40 it looks like a game gradually recovering a glitched texture

  • @hellfire411
    @hellfire411 Před 4 lety +586

    I feel like this should be a screensaver.

    • @TheGauges420
      @TheGauges420 Před 4 lety +7

      @Kamarious Antonio Temple aw, I want a replay.

    • @The_One_Time
      @The_One_Time Před 4 lety +1

      same

    • @mcqueendies
      @mcqueendies Před 4 lety +3

      Kamarious Antonio Temple I’m literally reporting you for spam boi

    • @ConsoleAdmin
      @ConsoleAdmin Před 4 lety +2

      @Kamarious Antonio Temple bruh you dont have the video anywhere you uploaded 2 videos how is there a video for it?

    • @abeselby9737
      @abeselby9737 Před 4 lety +1

      I think it would be cool as like an art project at normal speed and you're special if you see it restart

  • @THEBOSS47MLG
    @THEBOSS47MLG Před 3 lety +735

    Making a perfect “Snake” AI in “Python”....

  • @edendenton7274
    @edendenton7274 Před 2 lety

    Watching the snake go around was super satisfying, love it

  • @justadrone4849
    @justadrone4849 Před rokem +2

    19:45 reminds me of Conways game of life a bit

  • @Probably_Cake
    @Probably_Cake Před 4 lety +981

    Code Bullet: leaves for 4 months
    CZcams: Hey! I've been stalking you and waiting for you to upload so i can put you on trending :)
    Edit: 1k likes...... nice

  • @2awesomegriefers
    @2awesomegriefers Před 4 lety +732

    He didn't realize the snake was still alive. It's head is right next to the tail

    • @ironcode
      @ironcode Před 4 lety +32

      2awesomegriefers OMG you're right! EVERYBODY NEEDS TO UPVOTE THIS COMMENT! It actually would have finished 😂

    • @MGSLurmey
      @MGSLurmey Před 4 lety +53

      He should have made the head look different to the body segments. Eyes or something. That would allow you to visually see that it's still going.

    • @cryofreeze_
      @cryofreeze_ Před 4 lety +1

      Witch timecode ? :o

    • @ironcode
      @ironcode Před 4 lety +3

      Nicolas Gaillard 20:51

    • @cryofreeze_
      @cryofreeze_ Před 4 lety +4

      @@ironcode Erf. I looked at that time, but didn't see it. I'll try again at 0,25 speed.

  • @renakunisaki
    @renakunisaki Před 10 měsíci +2

    I actually would like to use both of the latter algorithms. It might be interesting as some type of texture generator.

  • @phyro4122
    @phyro4122 Před 2 lety +2

    If he does end up building the terminator, you know he’s gonna steal it from someone else 😂 (love you Evan)

  • @thekrackenx
    @thekrackenx Před 4 lety +689

    Code bullet: take the longest path to the apple.
    AI: *starts recreating the actual game to then get the apple*

    • @PandaXStorm
      @PandaXStorm Před 4 lety +31

      the AI is recreating the big bang, the evolution of Life, the history of humanity and then gets the apple

    • @placidqualm
      @placidqualm Před 4 lety +11

      Don't forget paying off it's college debt

    • @DuskAlimar
      @DuskAlimar Před 4 lety +8

      CB: get. Dot.
      A.I: Live?
      CB: no. Get dot.
      A.i: I'd rather live, fleshbag

    • @samuelmarzo722
      @samuelmarzo722 Před 4 lety

      @@PandaXStorm adam and eve lol

  • @aefive_
    @aefive_ Před 4 lety +466

    I feel like I’m being flexed on for 24 minutes straight