• 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 • 15 075

  • Mikeplays
    Mikeplays  3 hours back

    I like how for other yt if they take a break they get less views but it’s the opposite with code bullet

    • notahotshot
      notahotshot  3 hours back

      That was fucking epic! 👊😁👍

      Do it again!

      Nevermind, found the replay button.

      • johan afrilian
        johan afrilian  8 hours back

        code bullet could you upload for 2020

        • Deku Chan
          Deku Chan  8 hours back

          The sound is really cool in 4x

          • xZasaru
            xZasaru  11 hours back

            2 months ago

            • blahhaha253 gaming
              blahhaha253 gaming  14 hours back

              Dear Code Bullet i have been trying to create a video alternative for Youtubers and for people who just dont like youtube if you are interested please contact me at [email protected] i would really appreciate this, because lets be honest youtube is going to shit but 1 fair warning my web isnt popular enough to make money or to give you money for uploads. And that my web is just a google drive for now while i look for web to use.

              • Lazy Tech
                Lazy Tech  17 hours back

                Next vid : make ai that make a ai that make a ai

                • Tom F-s
                  Tom F-s  18 hours back

                  Please keep uploading:(

                  • Twinkie Tree
                    Twinkie Tree  18 hours back


                    • RVBZIKOW Dzairi
                      RVBZIKOW Dzairi  20 hours back

                      what is the app for do a code ???

                      • Bot.o
                        Bot.o  21 hours back

                        When are you going to update the website?

                        • mossanite clan
                          mossanite clan  21 hours back

                          There are only 3 posabilities
                          2 right
                          3 wait
                          No 4 back

                          • Ayelis
                            Ayelis  23 hours back

                            I was thinking at 6:27 if you could just have it follow it's own tail it would have gotten out of that trap. Of course, there's not always a tail to follow... So maybe you could calculate where the tail is likely to show up and use up the rest of the space first... But that's sort of what the Hamilton method does I guess.

                            • Josiah Samuels
                              Josiah Samuels  23 hours back

                              code bullet wow

                              • Dibyendu Saha
                                Dibyendu Saha  24 hours back

                                hats off broooo...... u r too good on algorithms. ❤️

                                • joku vaan
                                  joku vaan  1 days back

                                  Try running this with the speed of 0.75x he sounds that hes drunk

                                  • Roby Lla
                                    Roby Lla  1 days back


                                    • Roby Lla
                                      Roby Lla  1 days back

                                      Can you create a AI that can play Doom 1

                                      • tchiwam
                                        tchiwam  1 days back

                                        You can change part of cycle that is not intersecting to make it more interesting...

                                        • RK Adi
                                          RK Adi  1 days back

                                          GPS : 100 meter turn left
                                          Me : meh, i want to drive around a little
                                          GPS : you missed it!! You imbecile!!! Out of my car!

                                          • mitch play
                                            mitch play  2 days back

                                            An AI that can play Bloons TD 6!!

                                            Thats a challenge!!

                                            • Christopher Gil
                                              Christopher Gil  2 days back

                                              Y U NO MAKE VIDS????

                                              • Christopher Gil
                                                Christopher Gil  2 days back

                                                please make more vids, I am waiting for months

                                            • Angelo Sosa Andersson
                                              Angelo Sosa Andersson  2 days back

                                              Ai plays tetris?

                                              • Clavernever
                                                Clavernever  2 days back

                                                Best intro ever

                                                • sivansh Gupta
                                                  sivansh Gupta  2 days back

                                                  And he's dead again 😂

                                                  • Niv
                                                    Niv  2 days back

                                                    Hey man I love your videos and always wonder where did you start learning what you do and how did you learn. This looks super cool and I wanna know how to do this A.I stuff too

                                                    • Ethan Thomas
                                                      Ethan Thomas  2 days back

                                                      For the next you should A.I.ify Mario Brothers

                                                      • ALTERN4TED -
                                                        ALTERN4TED -  2 days back

                                                        1:46 just as he was about to get it, too...

                                                        • Mi Ni
                                                          Mi Ni  2 days back

                                                          Ah, I see! Below the planck scale, the universe is a worm trying to avoid its own tail.

                                                          • falco830
                                                            falco830  2 days back

                                                            Now turn the snake game into TRON...
                                                            Snakes kill each other and eat each other to evolve and become stronger.

                                                            • DRFR
                                                              DRFR  2 days back

                                                              16:35 - but we can recalculate this rails on each tick!

                                                              • DRFR
                                                                DRFR  2 days back

                                                                8:56 - why the snake is red?

                                                                • hyprr gamrr
                                                                  hyprr gamrr  2 days back

                                                                  upload you prick :(((

                                                                  • DRFR
                                                                    DRFR  2 days back

                                                                    Can you make the snake for joystick? The AI want to move diagonals, but it's not easy by pixelated game field.

                                                                    • iTacoTaco
                                                                      iTacoTaco  2 days back

                                                                      AI Learns Papa's Pizzeria

                                                                      • peter everett
                                                                        peter everett  2 days back

                                                                        pft i bet you can't program an ai to be bored

                                                                        • Liam
                                                                          Liam  2 days back

                                                                          Did code bullet actually die this time

                                                                          • Carlos Martx
                                                                            Carlos Martx  3 days back

                                                                            7:16 is that jake peralta?

                                                                            • Pedro Santos
                                                                              Pedro Santos  3 days back

                                                                              Mages for ages. 🤔
                                                                              I like it.

                                                                              • Cody Ferguson
                                                                                Cody Ferguson  3 days back

                                                                                What coding platform do you use?

                                                                                • fadedreality
                                                                                  fadedreality  3 days back

                                                                                  ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh iiiiiiiiiiiiiiiiiiiiiiiiiiiiii looooooooooooooooooooovvvvvvvvvvveeeeeeeeeeee yyyyyyyyyyyyyyyyoooooooooouuuuuuuuuuurrrrrrrrrr ccccccccccccccccccccccccccccccccccooooooooooooonnnnnnnnnnnnntttttttttttttttteeeeeeeeeeennnnnnnnnnnnntttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt hahahsiwahdwiuncgs/rehm

                                                                                  • Nico L
                                                                                    Nico L  3 days back

                                                                                    Make some tutorials plsss🥺

                                                                                    • Cleon Matalino
                                                                                      Cleon Matalino  3 days back

                                                                                      Minecraft loading screen 17:35-18:49

                                                                                      • airmaster lagouras
                                                                                        airmaster lagouras  3 days back


                                                                                        • Fossky The Answerer
                                                                                          Fossky The Answerer  3 days back

                                                                                          "... one thousand times faiasta …"

                                                                                          • GAMER_ MIGZ
                                                                                            GAMER_ MIGZ  3 days back

                                                                                            looks like a brain

                                                                                            • ONEHITKILL
                                                                                              ONEHITKILL  4 days back

                                                                                              4 to the power of 34 is 24. Something something.

                                                                                              • obesechicken13
                                                                                                obesechicken13  4 days back

                                                                                                So if it followed the cycle from the start it would win every time. It just lost due to optimizations.