I Created a PERFECT SNAKE A.I.

Share
HTML-code

Comments • 13 801

  • AuNSHiVA Gibbons
    AuNSHiVA Gibbons  41 minutes back

    Hello there, Snake Bullet

    • A. West
      A. West  50 minutes back

      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.

      • Thori Am
        Thori Am  1 hours back

        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.

        • Forever Alpha
          Forever Alpha  1 hours back

          21:15 almost killed me I WHEEZED JAJAJA

          anyways, aren't we going to talk about Evan's edditing skills are getting better?

          • WonderFoxGD
            WonderFoxGD  1 hours back

            Lil too extra

            • Night Shade
              Night Shade  2 hours back

              Solve Your enigma machine please!!!

              • Griffin Cook
                Griffin Cook  2 hours back

                after the bot beats a game you can solve the maze it creates

                • Zeraybifive
                  Zeraybifive  2 hours back

                  Ah, yes, cooler Pyrocynical.

                  • Eclectic
                    Eclectic  2 hours back

                    Could you "brute force it" and just set the snake to go back and forth over ever square leaving a path to return to the start? Then just repeat?

                    • _ Wolfynstine
                      _ Wolfynstine  2 hours back

                      Just recently found your stuff. I absolutely love your personality and the stuff you do is really cool too haha

                      • marcin1693
                        marcin1693  2 hours back

                        Can someone make it in Wallpaper Engine? I would be so satisfying to just watch it for hours.

                        • John Marshalll
                          John Marshalll  2 hours back

                          I think I see what went wrong at the end. The snake took a shortcut towards the end which resulted in cutting out 2 open squares to maneuver. Those 2 open squares cannot be recovered until the snake runs the entire length of the Hamiltonian Cycle and comes back to the point of where the shortcut was made. Then it would not take the shortcut, but follow the Hamiltonian path and regain the all the squares needed. This should be easy to demonstrate on a 4x4 grid.

                          • Kaizerdidrik YT
                            Kaizerdidrik YT  2 hours back

                            anyone else find this really satisfying?

                            • Livingamer29
                              Livingamer29  2 hours back

                              The ai ay the end looks like a alien trying to communicate with their native writing 🤣

                              • West
                                West  2 hours back

                                alternate title: guy loses his shit making a game of snake

                                • Adam Záliš
                                  Adam Záliš  3 hours back

                                  New video idea.
                                  Maybe you could try to create "perfect" A.I. For the dinosaur game on chrome when you are offline. It may be pretty funny video.

                                  • Ru Miak
                                    Ru Miak  3 hours back

                                    A new cool screen saver!

                                    • qShadow
                                      qShadow  3 hours back

                                      A.I. Leans to play Osu!
                                      God i would like to see that...

                                      • Kyle Mielke
                                        Kyle Mielke  3 hours back

                                        I know you said you're done, but... It strikes me that I play snake in 2 phases: Collection, and consolidation. During collection, sure I just grab the "fruit" but then I work to consolidate my body into contiguous space in the map, usually using an algorithm so I know the order my body will clear the area. Writing the snake to switch between the phases and know how long its body is (something humans instinctively check) and ensuring it consolidates to an area of the field similar in size to its total length should create a successful "human-like" performance. It should also be fairly fast, because it doesn't care where the fruit is until after consolidation, but early on, consolidation check always comes back true.

                                        • kristene humphrey
                                          kristene humphrey  3 hours back

                                          I wonder if this this is how they make bar codes lmao

                                          • IMTG Music
                                            IMTG Music  3 hours back

                                            I think everyone should watch the video just for the 21:16 moment

                                            • Zeddex
                                              Zeddex  4 hours back

                                              "cool cool cool cool cool cool cool"... could he b a b99 fan

                                              • Adolf Hitler
                                                Adolf Hitler  4 hours back

                                                ehm what about just running through each cell in the same path, wouldnt that always guarantee the snake to get all food

                                                • MLG GD
                                                  MLG GD  4 hours back

                                                  have you ever thought of using this as art?

                                                  • SeaGL Gaming
                                                    SeaGL Gaming  5 hours back

                                                    Did Code Bullet create the perfect Snake AI? Well yes, but actually no.

                                                    • Lт. Auтυмп ツ
                                                      Lт. Auтυмп ツ  5 hours back

                                                      Watch at x2 speed. Holy..

                                                      • asailijhijr
                                                        asailijhijr  5 hours back

                                                        19:40 your shake game has evolved into a game of life.

                                                        • asailijhijr
                                                          asailijhijr  6 hours back

                                                          3:03 GPS doesn't tell you when you've missed the turn anymore and that's often annoying. It'll send me around the block when I could just do a U-turn.

                                                          • Rintach
                                                            Rintach  6 hours back

                                                            Are you ai???

                                                            • stingerdragon
                                                              stingerdragon  6 hours back

                                                              Did you make an ai for the start since I think it's has a bullet in it's system:)

                                                              • superdestructo
                                                                superdestructo  6 hours back

                                                                Meanwhile in Civ VI..

                                                                • Xam1
                                                                  Xam1  6 hours back

                                                                  can you make an AI for Super Hexagone?

                                                                  • Shinryu Hazama
                                                                    Shinryu Hazama  7 hours back

                                                                    Music name?

                                                                    • Saad Bougrine
                                                                      Saad Bougrine  7 hours back

                                                                      What is the name of the programm he uses to programm interfaces such as the enigma machine using c??

                                                                      • wildgoosespeeder
                                                                        wildgoosespeeder  7 hours back

                                                                        The missing square at 20:50, the AI is perfect. I analyzed the frames in the video leading to what looks like a stalemate and there is no "cornered head". You just can't see the head moving towards the food and the tail being chased by the head because you made the snake as a whole one uniform color. Unless the AI freaks out because it thinks the tail will be in the way if it were to advance where the tail currently is. To put it simply, it can't see one step ahead, like it can't envision the tail not being where it wants to advance? This could be the classic "off by one" programming error.

                                                                        • Ben's BatCave
                                                                          Ben's BatCave  7 hours back

                                                                          I bet this would be a great algorithm for a PCB auto routing software.

                                                                          • VirusJD
                                                                            VirusJD  7 hours back

                                                                            see you all in _2020_

                                                                            • gnome gnomed
                                                                              gnome gnomed  7 hours back

                                                                              Bruh i would slowly pound you

                                                                              • Henrik Brandt
                                                                                Henrik Brandt  7 hours back

                                                                                What programm/engine is he using for programming stuff?

                                                                                • Axeltha Green
                                                                                  Axeltha Green  7 hours back

                                                                                  Hes back my fellow bullets

                                                                                  • Robin Michiels
                                                                                    Robin Michiels  7 hours back

                                                                                    "Ok now that we've caught up" *video starts buffering*

                                                                                    • Joshua Alcazar
                                                                                      Joshua Alcazar  7 hours back

                                                                                      This is giving me so much anxiety.

                                                                                      • vinasu maaj
                                                                                        vinasu maaj  7 hours back

                                                                                        I feel like a homeless man tripin balls trying to focus on something when watching this

                                                                                        • HolyGame TV
                                                                                          HolyGame TV  7 hours back

                                                                                          >Boost Boost Boost

                                                                                          Is that a motherfucking HS DxD reference?

                                                                                          • Akiyama Joji
                                                                                            Akiyama Joji  8 hours back

                                                                                            Hey CB! I'm new to your channel, and despite your hyper-eccentricism which you're probably an ENFP. I'd love to watch more!

                                                                                            • TheDarkSatirist
                                                                                              TheDarkSatirist  8 hours back

                                                                                              Why do you only sometimes censor your language?

                                                                                              • vinasu maaj
                                                                                                vinasu maaj  7 hours back

                                                                                                Ah, Code Bullet's arch nemesis, the Bode Cullet

                                                                                            • JhihYang Wu
                                                                                              JhihYang Wu  8 hours back

                                                                                              Hey Evan
                                                                                              You inspired me to create my own AI channel by not uploading regularly
                                                                                              https://youtu.be/Jqf3q9R6RjY

                                                                                              • Lionidas
                                                                                                Lionidas  8 hours back

                                                                                                Cool snake 1 8:33

                                                                                                Cool snake 2 17:34

                                                                                                For those who can’t spend 20 minutes of their time.

                                                                                                • Lionidas
                                                                                                  Lionidas  8 hours back

                                                                                                  19:23 for the failure