Code Bullet
62 851 Áhorf 6 m.

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


  1. Angie Nguyen
    Angie Nguyen
    7 klukkustundum síðan

    what programming language is this?

  2. Owen Phares
    Owen Phares
    13 klukkustundum síðan

    His code is very overrated he’s a good coder but no we’re near even the best coder on ISpulse

  3. KabeeshS
    17 klukkustundum síðan

    looks like the system is defragmenting the hard drives. 20:20

  4. Скелет Привет
    Скелет Привет
    19 klukkustundum síðan

    Dude, your snake is perfect, it was just a bug 20:51

  5. Tac Dragonblade
    Tac Dragonblade
    22 klukkustundum síðan

    Fucking tv as a head? Im gone...

  6. RickyTube
    23 klukkustundum síðan

    if the bigger space has 70 % blocks and other has 30 than you imiditly dead

  7. Julian Schöndorf
    Julian Schöndorf
    Degi Síðan síðan

    Is it possible that the snake's head was exactly behind its end and that it actually would have won

  8. RandUF
    Degi Síðan síðan

    18:32 , it looks like a snake is running in a green maze to find its little kid with a flower on its head

  9. TheCrazyCrafter 23
    TheCrazyCrafter 23
    Degi Síðan síðan

    God it's actually really interesting to see what moves the algorithm makes

  10. Finlay Corrigan
    Finlay Corrigan
    Degi Síðan síðan

    The army literally made me laugh so hard 😂😂😂😂😂😂🤣🤣🤣🤣🤣🤣

  11. MrToast 434
    MrToast 434
    Degi Síðan síðan

    what is this music from 13:18

  12. Ray Kaladis
    Ray Kaladis
    Degi Síðan síðan

    I would use the speed up version of the large snake as an intro thing or something it is super cool.

  13. SummeR RiseN
    SummeR RiseN
    Degi Síðan síðan

    I could do better than the AI

    1. Oci Stephens
      Oci Stephens
      19 klukkustundum síðan

      Yeah, sure

  14. David Davison
    David Davison
    Degi Síðan síðan

    In Google snake game, I somehow made the snake rainbow and when it hit the wall it teleported to the other wall and kept going

  15. Ravagr YT
    Ravagr YT
    Degi Síðan síðan

    _and that's how mazes are made kids_

  16. A Python
    A Python
    Degi Síðan síðan

    I’m a Python and I am now realizing there is a game named after us snake?

  17. Sam re
    Sam re
    Degi Síðan síðan

    Enjoyed this more than I should.

  18. ᴀɴᴀ ᴘøʀᴛø
    ᴀɴᴀ ᴘøʀᴛø
    Degi Síðan síðan

    this video gave me SO MUCH anxiety, I wasn't ready for that

  19. Julius Caesar of the Empire
    Julius Caesar of the Empire
    Degi Síðan síðan

    What's the algorithm that he's using for the machine learning part?

  20. CreativeRoblox Channel
    CreativeRoblox Channel
    Degi Síðan síðan

    Dont Lie To Us, We Know You Throw Pro Player Into Snake

    1. Oci Stephens
      Oci Stephens
      19 klukkustundum síðan

      He didn't

  21. SirTalksAlot496 !
    SirTalksAlot496 !
    2 dögum síðan

    For those of you wondering 34 to the 4th power is 1,336,336

  22. Noobjesus 13
    Noobjesus 13
    2 dögum síðan

    17:49 Welcome to the Matrix

  23. Barkboi197 Boibro
    Barkboi197 Boibro
    2 dögum síðan

    i pretty sure this is how maxes are made

    1. Barkboi197 Boibro
      Barkboi197 Boibro
      2 dögum síðan


  24. ItsZed01
    2 dögum síðan

    Your bullet looks like a mustache xD

  25. Purple Cat Lover 8
    Purple Cat Lover 8
    2 dögum síðan

    1:13 My crybaby ass: *sniff* Yup... I don't care or anything- *sniff*

  26. Paper Dino
    Paper Dino
    2 dögum síðan

    Imagine future historians looking at this video And is like looking at the snake and thinking "What could this green thing mean? Does it have a hidden meaning? Look its creating Different patterns, do you think the people from the past is trying to tell us something?"

  27. The Blindspot
    The Blindspot
    3 dögum síðan

    20:51 He kinda made the worlds largest maze

  28. Baby Pyscho
    Baby Pyscho
    3 dögum síðan

    this is really stressful

  29. Aiden Bridges
    Aiden Bridges
    3 dögum síðan

    I recommend you watch the snake action with 2x speed.

  30. The Big Potato
    The Big Potato
    3 dögum síðan

    So this is how they make mazes?

  31. Aiden Yerby
    Aiden Yerby
    3 dögum síðan

    21:16 funniest thing I’ve heard in a while

  32. Eoin Breathnach
    Eoin Breathnach
    3 dögum síðan

    Am I the only one who now wants a code bullet brand GPS?

  33. Erick Vitor
    Erick Vitor
    3 dögum síðan

    Looks like a giant godlike anime villain that tries to get the protagonist wich is teleporting every time

  34. Erick Vitor
    Erick Vitor
    3 dögum síðan

    I don't understand anything that you talk but I like it anyway

  35. Kaiden Barta
    Kaiden Barta
    3 dögum síðan

    Oh ;&%$([*%$%&_/_ mode?

  36. Dean The minecrafter blogs
    Dean The minecrafter blogs
    3 dögum síðan

    2:00 Jesus Christ

  37. TheGuyWithNoLife
    3 dögum síðan

    14:24 Did u just finnish with doing your crack?

  38. GokuFighterSaiyan
    3 dögum síðan

    I am Satisfied.

  39. Sam Laufeyson-Riddle-Malfoy-Snape
    Sam Laufeyson-Riddle-Malfoy-Snape
    3 dögum síðan

    Why, at points, does he sound exactly like CDAWGVA.

  40. MutedStoryteller
    4 dögum síðan

    Wouldn't it normally be the goal for the algorithm to find the best fitting cycle on the fly? This Is like writing one possible solution beneath a Task and then obscuring it to make mistakes where is not necessary.

  41. asianti oetojo
    asianti oetojo
    4 dögum síðan

    the snake looks like its making a scene all the time it looks sooo mezmorizing

  42. Timmy Koval
    Timmy Koval
    4 dögum síðan

    9:45 It Gives Me Anxiety When It Like Closes Itself

  43. Thé SHZ X
    Thé SHZ X
    4 dögum síðan

    hardest game forever

  44. Dexterity
    4 dögum síðan

    I would love that GPS System

  45. WhatName231
    4 dögum síðan

    Look at he go

  46. James Middleton
    James Middleton
    4 dögum síðan

    What is that song at the ooo scary part? Its like dream theatre but with elements of the 2nd law (that muse album that no one liked despite it being fantastic) and it uses a riff that i copied off of someone else... yeah i love that riff. What's that song?

  47. reprice
    4 dögum síðan

    Song at 11:26?

  48. Game Breaker
    Game Breaker
    4 dögum síðan

    I want chess

  49. Yours Truly Itz Suki
    Yours Truly Itz Suki
    4 dögum síðan

    Is there a anime bout people playing snake?

  50. OGx SWAT
    OGx SWAT
    4 dögum síðan

    CB literally made the World Serpent a thing. Wtf....

  51. JIDPMJQ Killer
    JIDPMJQ Killer
    4 dögum síðan

    Plot twist, Evan is actually a master at playing Snake.

  52. Shadow Dragon
    Shadow Dragon
    5 dögum síðan

    This is what alien space ship controls look like 19:35

  53. shadic1522
    5 dögum síðan

    Poor even if only he knew what 2020 was in store for the world at that time

  54. GOTB21
    5 dögum síðan

    No one Litterally no one Me in class learning about history : 16:14

    1. ODiverso
      9 klukkustundum síðan


  55. Thirdy Abella
    Thirdy Abella
    5 dögum síðan

    The ending looks like an maze

  56. Jayy
    5 dögum síðan

    Everybody gangsta till the AI opens CMD

  57. Kim Penaranda
    Kim Penaranda
    5 dögum síðan


    1. Oci Stephens
      Oci Stephens
      19 klukkustundum síðan

      You are

  58. Ur Mom
    Ur Mom
    5 dögum síðan

    At 18:33 just looks like a black snake

  59. Amanamator
    5 dögum síðan

    Why tf do you have so many tabs open

  60. No signal
    No signal
    5 dögum síðan

    If you want to buy some minecraft hacks than he is the right one.

  61. Anime Videos lover
    Anime Videos lover
    5 dögum síðan

    The reverse click bait shit

  62. Anime Videos lover
    Anime Videos lover
    5 dögum síðan

    Omg the intro was like am watching Harley quin tas

  63. Rivalboygamez
    5 dögum síðan

    At 18:33 it’s more like the air is the snake not the real snake

  64. Azula Gamerz
    Azula Gamerz
    5 dögum síðan

    14:9 is me when my parents FORCE me to translate a rando ass vid

  65. Jiro Potpot2
    Jiro Potpot2
    5 dögum síðan

    *they are ready*

  66. Harrison Leon
    Harrison Leon
    5 dögum síðan

    my mind when it seemingly is impossible to get out i think "how is goku going to get out of this one, find out next time on dragon ball z"

  67. Aiden stafford
    Aiden stafford
    5 dögum síðan

    I see 1010bullet bro

  68. Shelley Jackson
    Shelley Jackson
    6 dögum síðan

    18:07 in 2x speed, this gets real trippy

  69. Matze Wollnik
    Matze Wollnik
    6 dögum síðan

    This gave me severe anxiety... Looking at this snake... Creeping his way out of nearly everything 😅😂 I think thats why it is so near damn impossible to arranging a worldpopulation of nearly 8 Billion People so that everbody can be happy 😅

  70. CRS MOC
    6 dögum síðan

    your snake ai has low iq, when i was 10 years old i finished snake on a 3310, the idea is that in the end you have to make only S like moves

    1. Oci Stephens
      Oci Stephens
      19 klukkustundum síðan

      No one cares

  71. Dillon Reilly
    Dillon Reilly
    6 dögum síðan

    holy balls he did it

    6 dögum síðan

    While this may be late to whatever party I just visited website after watching your videos and a thought occurred to me the reason the snake ends up stopping when it can't reach the last 2 squares is because it doesn't know that the end part of the tail it is capable of moving to and so it can't double back on a path it itself created from it body therefore being unable to grab the last 2 squares which by the way once it can do it will truly be perfect as for coding that I do not know how to do in the slightest as I cant code ****.

      Degi Síðan síðan

      @Piotr Pietrzykowski now while that would be a good idea takes too long and I've noticed on his website which uses the snake program for the home page that it also seems to make irregular (odd) turns as well.

    2. Piotr Pietrzykowski
      Piotr Pietrzykowski
      Degi Síðan síðan

      Just make the snake follow da path 100% of da time lul

  73. El Catrin C
    El Catrin C
    6 dögum síðan

    The patterns the snake makes, are fucking beautiful

  74. Winner 1835
    Winner 1835
    6 dögum síðan

    2:00 did you put bullet proof armor on the A.I?

  75. Michael Gonzalez
    Michael Gonzalez
    6 dögum síðan

    He's gonna make cybernet skynet genisis lol he's the reason why the terminator is a thing XD lol

  76. TymberInTheWoods
    6 dögum síðan

    you have made me both want to play snake and not play snake at the same time

  77. Seal
    6 dögum síðan

    Now make a perfect SEAL A. I.

  78. Noah’s Nerdy Knowhow
    Noah’s Nerdy Knowhow
    6 dögum síðan

    Evan: So, how have you been? Me: I've been having a severe bout of depression. I'm also in major financial trouble, and I have occasional migraines. Evan: Aw, that's great. How are the kids? Me: Adam found some gasoline lying around and burned up half of the house. Lily cried in a corner of her yard for a few days, and then snuck in to the remains of the house and stole my new Macbook Pro. Evan: Yeah, fantastic! Wow, really interesting stuff.

  79. Balofobeso YT
    Balofobeso YT
    6 dögum síðan

    7:04: that's pretty good.. 7:05-7:09: what the fu-

  80. Syapa Aja
    Syapa Aja
    6 dögum síðan

    19:58 "There We Go GAME SNAKE, *Technically* "