• Published: 28 November 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: https://www.brilliant.org/CodeBullet

    Also check out John Tapsells work: https://johnflux.com/

    Heres my stuff
    Twitter: https://twitter.com/code_bullet
    Patreon: https://www.patreon.com/CodeBullet
    Discord: https://discord.gg/UZDMYx5

    Art created by @Dachi.art https://www.instagram.com/dachi.art

Comments • 13 990

  • Lord Mavramon
    Lord Mavramon  32 minutes back

    Now call me a smart ass but :“ previously on abmc's the walking dead“ are 6 words if would have wanted him to say code bullet it were 5 ... “previously on abmc‘s code bullet“ and “the Code bullet“ would not exactly make a lot of sense XD
    Still love the video though ;*

    • Check ur battery boi
      Check ur battery boi  1 hours back

      19:58 Would have been a great april's fool joke if that had turned into a creeper face

      • eddebrock
        eddebrock  1 hours back

        I studied web-development and I still maintain that mmtuts on Youtube deserved my tuition money more than the university.

        • pj dar
          pj dar  2 hours back

          Bro I fucking finished high school in the time you were away

          • pj dar
            pj dar  2 hours back

            Bro it's been long enough!

            • silkeschuller
              silkeschuller  3 hours back

              mega music starts: CHIP EATING INTENSIFIES!!!!

              • Caleb Nathan
                Caleb Nathan  4 hours back

                Just do the f***ing normal Hamiltonian cycle!!!!!! For f*ck's sake dude, I have ADHD, I know how it feels to have a short attention span!!

                • Artus HAVRET
                  Artus HAVRET  4 hours back

                  Pourquoi ne pas générer une boucle (cercle) à chaque apparition d'une pomme?
                  Où algorithme vas chercher à que le serpent soit sur la boucle, et que le plus petit numéro soit sur la pomme.
                  Il n'y a donc plus de cœur circuit (raccourci)

                  Why not generate a loop (circle) at each appearance of an apple?
                  Where algorithm go to look for that the snake is on the loop, and that the smallest number is on the apple.
                  There is no more heart circuit (shortcut)

                  • Yeet Man
                    Yeet Man  4 hours back

                    The final one looked like a brain

                    • ItsMePj Here
                      ItsMePj Here  5 hours back


                      • HoeLeePhuck
                        HoeLeePhuck  7 hours back

                        Whats the music at around 11:45?

                        • Sachin Chepuri
                          Sachin Chepuri  7 hours back

                          dudeeeeee, reallyyyyyyyyy....... i trusted you

                          • Halen Ball-Vant
                            Halen Ball-Vant  8 hours back

                            Is the second enigma code video officially cancelled:?

                            • Justin R.
                              Justin R.  8 hours back

                              is it weird that everyone assumes the snake is eating an apple?

                              • Superextremeplayer9
                                Superextremeplayer9  9 hours back

                                3:05 Wait. If he's not driving, then who is?

                                • Ljfab
                                  Ljfab  9 hours back

                                  Mathn’t more like Mathn’tn’tn’t

                                  • mason booh
                                    mason booh  9 hours back

                                    I will now call this reverse A* algorithm “Z*”

                                    • Nawor Riekena
                                      Nawor Riekena  10 hours back

                                      21:05 - 21:23
                                      My hypixel skyblock experience in a nutshell.

                                      • I’m A Alien
                                        I’m A Alien  10 hours back

                                        A.I. Plays doodle jump

                                        • RexTer Inc.
                                          RexTer Inc.  10 hours back

                                          go with cytus for your next project

                                          • Alex Gigoux
                                            Alex Gigoux  10 hours back

                                            Lol, no need for a degree when you are an entrepreneur.

                                            • Devon Bollman
                                              Devon Bollman  11 hours back

                                              14:38 +1 sin the antenna are on opposite sides

                                              • Moon_Ironhead
                                                Moon_Ironhead  11 hours back

                                                so, you are the architect?

                                                • Jackson Seeto-Lee
                                                  Jackson Seeto-Lee  12 hours back

                                                  2:02BRING IN THE FUCKING ARTILLERY!

                                                  • Lincoln Sorensen
                                                    Lincoln Sorensen  12 hours back

                                                    Why is the snake smarter than me, it's an AI!

                                                    • Nemanja Ignjatović
                                                      Nemanja Ignjatović  12 hours back

                                                      i think you named it wrong -- it's algorithm, not ai..

                                                    • The Pink llama
                                                      The Pink llama  12 hours back

                                                      Dang 4 million views NOICE!!!

                                                      • that piece of sh*t taco
                                                        that piece of sh*t taco  13 hours back

                                                        PLEASE MAKE A GEOMETRY DASH AI!!!!

                                                        • XxSuperWolfxX
                                                          XxSuperWolfxX  13 hours back

                                                          U HAVE A SHORT ATTENTION SPAN, I SAT THROUGH THE WHOLE TIME THE SNAKE WAS GOING BUT AS SOON AS YOU STARTED TALKING I WAS ABOUT TO CLICK OFF THIS VIDEO. So truthfully i probably dont have a short attention span i just cant stand the voice of a human

                                                          • John Willson
                                                            John Willson  13 hours back

                                                            What software do you use to programe ai and can you find a programing softwarware for androide

                                                            • Timothy's Technology
                                                              Timothy's Technology  13 hours back

                                                              finally. A video

                                                              • AstroGuy034
                                                                AstroGuy034  14 hours back

                                                                epilepsy warning should be included

                                                                • Aquzzi
                                                                  Aquzzi  14 hours back

                                                                  What type of coding do u use

                                                                  • Killer Wolf
                                                                    Killer Wolf  15 hours back

                                                                    I want this as a screen saver

                                                                    • Matthew Rzepecki
                                                                      Matthew Rzepecki  16 hours back

                                                                      Timelapse of the growth of human population:

                                                                      • Matthew Rzepecki
                                                                        Matthew Rzepecki  16 hours back

                                                                        When your math teacher doesn't give you math homework but instead a maze for homework and it turns out like this

                                                                        • Riff Family
                                                                          Riff Family  16 hours back

                                                                          Code bullet can you a AI that's complete hearts of iron 4

                                                                          • PurpleOranges37
                                                                            PurpleOranges37  17 hours back

                                                                            You should do a video on Minecraft. like, "I taught an A.I. how to play Minecraft!" It sounds hard, but think about it: If the AI is below a certain hunger level, it will eat; if its health is too low, it will run away and regenerate its health; if it sees a mob within a certain area, it will kill it. That kind of stuff. I know the AI would probably just aimlessly walk around killing mobs and eating, but it's a start. Please give it some consideration.

                                                                            • Patogamer4518 Red ver.
                                                                              Patogamer4518 Red ver.  17 hours back

                                                                              You could easily make Yui from S.A.O
                                                                              And this was epic... nice

                                                                              • Dean P
                                                                                Dean P  17 hours back

                                                                                You should make an ai for geometry dash also why did it turn red every now and then?

                                                                                • Avian Flight
                                                                                  Avian Flight  17 hours back


                                                                                  • Jaycubes
                                                                                    Jaycubes  17 hours back

                                                                                    the army man that told me the story of "WLLWLWLWLWLWLWLLWWL" really hit me hard 😞

                                                                                    • GoogoGoo
                                                                                      GoogoGoo  18 hours back

                                                                                      You should create a seperate channel which has less of the codebulletism’s and is more technically focused because that is the very interesting part.

                                                                                      • Gábor Lant
                                                                                        Gábor Lant  18 hours back

                                                                                        Ok but to be fair we should only call something AI if the algorithm doesn't know how to get to the GOAL rather it knows how the goal looks like. Try reinforcement learning maybe?

                                                                                        • FairiesWearBoots
                                                                                          FairiesWearBoots  18 hours back

                                                                                          it's beautiful

                                                                                          • Ty Lane
                                                                                            Ty Lane  18 hours back

                                                                                            Wonder if he wrote it in....... Python

                                                                                            • Koin
                                                                                              Koin  19 hours back

                                                                                              12:50 imagine you are out for a walk and you see a snake doing this

                                                                                              • poend
                                                                                                poend  20 hours back

                                                                                                you can win snake?