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: www.patreon.com/CodeBullet
Discord: discord.gg/UZDMYx5
Art created by @Dachi.art dachi.art




  • You did great, now teach an AI to play Minesweeper.

    ydoc180ydoc180Orë më parë
  • Plot twist it’s actually him playing

    Michael O'RourkeMichael O'RourkeOrë më parë
  • Why is the food an apple? What kind of snake eats apples?

    JaclynJaclynOrë më parë
  • *All this to make a gnarly screensaver...... I approve. ^~^*

    ZGuy0fSciZGuy0fSciOrë më parë
  • Nigga the character is controlled by me scene hacked

    Kale KaleKale Kale2 orë më parë
  • This video took so long to go up because of the quality of the editing at 1:48. That is something that takes a very long time to perfect, but I daresay it was perfect.

    Alden S JonesAlden S Jones2 orë më parë
  • Looks like a cool live background

    Madhura KaribeMadhura Karibe2 orë më parë
  • “You guys gave me some great ideas” *Insert a lot of 3-4 months jokes and... OH an actual idea! Aaaaand back to the jokes* “But I’m not going to do those ideas” That got a laugh outta me

    scottishboy112scottishboy1123 orë më parë
  • Honestly you don't need a "good" upload schedule coz this is so good

    AlwaysLazyAlwaysLazy3 orë më parë
  • I dare you to make an AI for Tetris now.

    AltrunchenAltrunchen3 orë më parë
  • Dude you legit had me cracking the fuck up this entire video. You are awesome man. Lol

    Tyler HumphrevilleTyler Humphreville3 orë më parë
  • 15:52. I feel you there CB. Its the same for me, i don't really remember the Hamiltonian cycle, i just know the name lol

    Dan WilkinsonDan Wilkinson3 orë më parë
  • snake : is green my brain: nct logo/light stick

    An HuynhAn Huynh4 orë më parë
  • This more of a comedy channel than a code channel.But great content eitherways.

    Daz GamingDaz Gaming4 orë më parë
  • thanks for this video. love the train layout in the lobby

    crayolakid456crayolakid4564 orë më parë
  • Imagine how much effort it took to just cheat at snake. Also: have you thought of moving snake's tail in A* algorithm?

    LedoCool1LedoCool14 orë më parë
  • can u do an agario or snakeio ai video? i think that would be pretty cool

    william Scharnhorstwilliam Scharnhorst5 orë më parë
  • What is the music playing at 9:30?

    Jsizzle4242 WebbJsizzle4242 Webb5 orë më parë
  • Once the snake completes the game, automatically generate a new Hamiltonian Cycle and start again? Just an idea

    James HJames H5 orë më parë
  • @Code Bullet did i do it right?

    TheTearfulPrismTheTearfulPrism5 orë më parë
  • 295147910000000000000 is the number of different paths.

    tepu sultantepu sultan5 orë më parë
  • Watching at 1.5x speed is like a Snake Fever Dream.

    Earl ShattuckEarl Shattuck5 orë më parë
  • Making an AI to destroy idle breakout tycoon when

    WarshonWarshon5 orë më parë
  • The Nasa need your I.A. dude

    SomeoneSomeone6 orë më parë
  • wait does the binary on his...face...mean anything?

    MarGuy ThatguyMarGuy Thatguy6 orë më parë
  • As I fellow programmer love your approach! It is refreshing as opposed to the "idk I threw it into a deep learning model". Love the music as well!

    ZinxZinx6 orë më parë
  • what program does he use for coding? I'm trying to get into coding and can't seem to find any good programs, I'm probably going to learn JS or something similar to that. Any help is appreciated!

    Gamer JoojGamer Jooj6 orë më parë
  • How's that sneaking suit working out?

    Liam !84488282Liam !844882826 orë më parë
  • I just realized the CB on his shirt CAN Stand for Click Bait

  • so.. the title is literally a lie.... I watched this video because I wanted to learn about all the optimizations involved, and you pretty much just didn't mention any of the optimizations.

    NikWillOrStuffNikWillOrStuff6 orë më parë
  • whĘn yöû ŚtuB yoūr tĖø 8:15

    Thicc PolloThicc Pollo7 orë më parë
  • Isn't it beautiful? It's almost tragic. When life ends, it gives off a final lingering aroma. Light is but a farewell gift from the darkness to those on their way to die. I've been waiting, Snake, for a long time. Waiting for your birth, your growth, and the finality of today.

    Liam !84488282Liam !844882827 orë më parë
  • Somewhere between 19:64 and 20:02 I'm pretty sure I saw Jesus.

    zeronthzeronth7 orë më parë
  • Make an A.I than can play geometry dash

    NobodyNobody7 orë më parë
  • Hello there, Snake Bullet

    AuNSHiVA GibbonsAuNSHiVA Gibbons8 orë më parë
  • How could a Hamiltonian cycle snake crash? Was the head just following the tail, which would take a while to reach the last two. How do you define when to jump? By a ratio of snake length to jump gain. Could you use an AI? How do you define your path? I presume randomly. Could this also use AI? This snake algorithm will always win but not quickly. Improving path and jumps it'd be faster.

    A. WestA. West8 orë më parë
  • When you asked if they were done killing Adrian, you should’ve had them respond with “Ladies and gentlemen... WE GOT HIM.” Would’ve been comedy GOLD.

    Thori AmThori Am8 orë më parë
  • 21:15 almost killed me I WHEEZED JAJAJA anyways, aren't we going to talk about Evan's edditing skills are getting better?

    Forever AlphaForever Alpha9 orë më parë
  • Lil too extra

    WonderFoxGDWonderFoxGD9 orë më parë
  • Solve Your enigma machine please!!!

    Night ShadeNight Shade9 orë më parë