I Created a PERFECT SNAKE A.I.

Share
Embed
  • Published on Nov 28, 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: 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

Comments • 14 968

  • Ethan Krieger
    Ethan Krieger 13 hours ago

    Can you teach two AI to kill each other?!?!?

  • Kappy P
    Kappy P 18 hours ago

    I know this voice... Anomaly? I bet that's you! hahaha

  • Stefan Daraban
    Stefan Daraban 23 hours ago

    Published on 28 nov. 2019
    TheXvid : UpLoadEd 1 MonTh Ago

  • Home COMP
    Home COMP 23 hours ago

    Do you have a github for the code?

  • Home COMP
    Home COMP 23 hours ago

    The perfect AI would be an ai thats uses help from the game to find the apple. The only problem is: its not an ai

  • Jace Baltazar
    Jace Baltazar Day ago

    There is a limit to the snakes growth. Play snakes on nokia and youll see...

  • Professor pug craft

    A.I. That codes A.I. for you.

  • Anand Ricky
    Anand Ricky Day ago

    Please make video of how to make anyone of the game you make, from scratch with code. We are expecting a lot.

  • Steven Mortimer
    Steven Mortimer Day ago

    If you don't mind me asking, what program do you use to code? I know its in C++ but I can't seem to find the program.

  • Cattin
    Cattin Day ago

    14:11 getting up for school
    *Remembered that you dropped*
    *Also remembering that the meme doesn't apply if you dint drop*

  • Martin Szorad
    Martin Szorad Day ago

    Cool metal music bro

  • Kasper Tvergaard
    Kasper Tvergaard 2 days ago

    Is it possible to build a AI to play a TD in WC3 ?

  • Demna Makhatadze
    Demna Makhatadze 2 days ago

    A.I can do some art

  • JediM1ndFux
    JediM1ndFux 2 days ago

    can i get this as a screen saver?

  • Optic 041
    Optic 041 2 days ago

    can you make an ai that can beat sugar sugar

  • Aaron Payne
    Aaron Payne 2 days ago

    If it helps, 20:51 is one of the best looking failures I've ever seen. So... Take from that what you like. :-D

  • Scariestfungus
    Scariestfungus 2 days ago

    Not again here we go another dry sprout

  • ツGraVity
    ツGraVity 2 days ago

    You know The Hype House you should make a Code House it could have you, Dani, and other coders

  • PEYTON FONTENOT
    PEYTON FONTENOT 2 days ago

    I love your content. It’s always so hilarious

  • Aljon Cruzada
    Aljon Cruzada 2 days ago

    8:10 lol.

  • VTX Ryan YT
    VTX Ryan YT 2 days ago +1

    *This is what people do for the purpose of your entertainment.*

  • Don't Care Daniel
    Don't Care Daniel 2 days ago

    We need AI learns to play subway surfers

  • Boston Overstreet
    Boston Overstreet 3 days ago

    You su**

  • AttackZack
    AttackZack 3 days ago

    I don't understand a single bit of coding, I just find this dude funny and I like his voice.

  • SpongeBob SquarePants
    SpongeBob SquarePants 3 days ago +1

    Anyone know the song names?

  • Xander is MLG
    Xander is MLG 3 days ago

    21:16

  • 3Rokaz
    3Rokaz 3 days ago

    Hey, try creating a subway surfers AI

  • The Rolfster
    The Rolfster 3 days ago

    if{goingToCrashIntoSelf},
    {dont}

  • letcreate123
    letcreate123 3 days ago

    Tbh you could've made it work with the reverse A* algorithm if you changed the code for survival mode a bit to prioritize movements which get the snake as close to the tail as possible when there aren't as many empty spaces on the board anymore. Nice video, though!

  • KanoaISGermanz Roblox
    KanoaISGermanz Roblox 4 days ago +1

    Find the head if not
    | click me
    V

  • Daniel Chernyavsky
    Daniel Chernyavsky 4 days ago +1

    We need an ai to tell Code bullet to upload

  • S K
    S K 5 days ago +1

    You might ask
    Why will a AI ever play a game
    Well................................UM IT'S 2020 So an AI Can do anything He/She/IT wants

    • Kid Kyle
      Kid Kyle 3 days ago

      1. a bit late but whatever
      2. wtf is this joke? is it even a joke? if it is... it's bad

  • Our Country
    Our Country 5 days ago

    Just damn upload! Just do it

  • Haley Montana
    Haley Montana 5 days ago +1

    hey codebullet try making a number of AI play agar.io

  • Krussy
    Krussy 5 days ago +1

    PewDiePie should do "You laugh you lose" to this

  • Krussy
    Krussy 5 days ago

    This was so intense to watch

  • Victor Reynoso
    Victor Reynoso 6 days ago

    Code bullet makes A.I. That predicts the future

  • • Leafy
    • Leafy 6 days ago

    hey CB, i found a channel that is copying your videos without any permission. its called Universo Programado, its a brazillian channel. check him out ASAP.

  • Povidis 5374 II
    Povidis 5374 II 6 days ago

    Nobody:


    The test: 5 minutes remain
    My brain: 19:39

    • Stanley Parable
      Stanley Parable 2 days ago

      *00.00001 seconds remain*
      _Stanley's brain _*_19:46_*

  • Jeffrey Gates
    Jeffrey Gates 6 days ago

    could probably generate a rather neat intro by assigning colors to the blocks of the snake as it grows so that by the end of the solved hamiltonian cycle it forms an image or logo or name or something!

  • Ziggy
    Ziggy 6 days ago

    7:17 too much brooklyn 99

  • Gregory Zelevinsky
    Gregory Zelevinsky 6 days ago

    In the Hamiltonian cycle version of the code, it seems like it would be a lot faster if at some point (maybe half the grid, idk) it started just following it completely. Then, the food is guaranteed to spawn close ahead in the cycle rather than being able to spawn behind it and making the snake loop all the way around again.

  • Edian Broche Castro
    Edian Broche Castro 6 days ago

    you should create an AI that plays mamba

  • Srihari Chiravuri
    Srihari Chiravuri 6 days ago

    The opposite of astart should be Zstop

  • Two Face
    Two Face 6 days ago

    It took u 5 months to upload and u came up with this 🥳 holy shit he uploaded

  • Oscar Carzaniga
    Oscar Carzaniga 6 days ago +1

    "Do it." 🤣

  • Peter Ilalukjuak
    Peter Ilalukjuak 7 days ago

    Hey code bullet just wondering when your next video?

  • Miner Xen
    Miner Xen 7 days ago

    am i one of the only few who actually looks at the coding Evan made?

  • Izhan Hakimi hadi
    Izhan Hakimi hadi 7 days ago

    whats the song at 5:10

  • all the boost
    all the boost 7 days ago

    21:16... the whole video was worth it just to hear that moment.

  • Angel Gamer
    Angel Gamer 7 days ago

    Watching in 2020, hope your doing ok after the fires

  • Gordon Yax
    Gordon Yax 7 days ago

    Your Concept of coding is good but the comedy and attitude is dry and cringe. I hope this helps you improve and grow

  • Jackattack MC
    Jackattack MC 7 days ago

    BEAT THE HIGHSCORE OF FLO (APP) TRUST ME THIS IS A HARD ONE

  • The Jurassic World
    The Jurassic World 7 days ago

    Snakes in Africa be like:

  • Sweegy
    Sweegy 7 days ago +1

    11:38 hEs doing ALL OF THIS just to get an APPLE

  • Agron Gjonaj
    Agron Gjonaj 8 days ago

    C.B why dont you try make a 3d game?

  • Hyper Kin
    Hyper Kin 8 days ago

    You suck and package it to preteens. Call a polygon a voxel. DO IT.

  • Hyper Kin
    Hyper Kin 8 days ago

    So did everybody with a degree. They also probably didn't go down that random, awful path.

  • ultimate tm
    ultimate tm 8 days ago +1

    4:37 What programming language is that?

  • Pugman Playz
    Pugman Playz 8 days ago

    5:49 it’s a one legged turtle!