I Created a PERFECT SNAKE A.I.

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

Ummæli

  1. Gaming With Nolan/clash of clans

    Gaming With Nolan/clash of clans8 klukkustundum síðan

    You should do checkers

  2. Guepardo Guepárdez

    Guepardo Guepárdez10 klukkustundum síðan

    Can the hamiltonian-path method be adapted to ensure odd-sized boards are always solved?

  3. E942

    E94210 klukkustundum síðan

    But perfect would also mean that it solves the whole thing kinda fast. At least that would be my opinion on "perfect".

  4. Omar GamerYTTV

    Omar GamerYTTV11 klukkustundum síðan

    A.I Learns To Play Geomotry Dash

  5. 2k7

    2k711 klukkustundum síðan

    Make an ai that can complete captchas

  6. gattka504

    gattka50411 klukkustundum síðan

    The snake was alive the entire time. It just did not look like it because the head was touching the tail, which obviously your code failed to take into account.

  7. John Mcain

    John Mcain12 klukkustundum síðan

    Make an Ai learn to fight Sans Undertale

  8. salih kara

    salih kara12 klukkustundum síðan

    How about making it so that when there is a certain amount of free space left you get it to stop taking shortcuts. It would actually be faster since the apple would be reappearing closer down the route instead of a skipped space. That should work. It shouldn't be hard, right?

  9. lightmare _griff0

    lightmare _griff012 klukkustundum síðan

    your biggest challenge: civilization" AI xD

  10. John Provart

    John Provart10 klukkustundum síðan

    YES!

  11. skaliev

    skaliev13 klukkustundum síðan

    Thank you for making me blind... This white background in times of darkmode ...

  12. kartoffelwaffel

    kartoffelwaffel16 klukkustundum síðan

    this voice is annoying is it modified?

  13. Phinx Cubing

    Phinx Cubing18 klukkustundum síðan

    The title of this video should be “try to not get anxiety challenge “

  14. Cucumbulous

    Cucumbulous20 klukkustundum síðan

    What you have there is just a really, really inefficient way of colouring in a solid rectangle with a single colour.

  15. Shut Up

    Shut Up20 klukkustundum síðan

    My asshole hurts

  16. ghost Xd

    ghost Xd22 klukkustundum síðan

    Please code a helicopter that acutely works using a engine only using code😈

  17. George Tsiros

    George Tsiros22 klukkustundum síðan

    i think that AI, considering it took out a squad, a tank and a heli, was not actually a snake-game AI after all. CB, what did you copy from stackoverflow?

  18. George Tsiros

    George Tsiros23 klukkustundum síðan

    is an AI necessary to beat snake, tho? I would think the only information needed to beat it is starting position and map size, where the apple is located every time is irrelevant, unless i'm missing something

  19. TheReck

    TheReck23 klukkustundum síðan

    LMAOO can't believe you wasted all that time coding that. Here's my super efficient code. If hit tail: Don't

  20. carlos gonzalez

    carlos gonzalez23 klukkustundum síðan

    i don`t undertand ... why don`t put the snake follow the food and his tail in the seen time, if he can`t do that only put follow the tail until he can?...

  21. JacobLZP

    JacobLZPDegi Síðan síðan

    Just cover the whole map over and over again edit: oh nvm i finished the video

  22. JacobLZP

    JacobLZPDegi Síðan síðan

    The pngs of a characters fad is cancer shit that people in the future will call us stupid for doing

  23. JacobLZP

    JacobLZPDegi Síðan síðan

    I no see this in my sub

  24. Adrian Ong

    Adrian OngDegi Síðan síðan

    May I know what's the song name at 20:05?

  25. Victor0326

    Victor0326Degi Síðan síðan

    Can't you just make it go in a pattern over and over again

  26. 1kreature

    1kreatureDegi Síðan síðan

    Wouldn't the perfect snake round just move in a zigzag pattern accross entire screen, saving only a single square strip at top or bottom to move back and start over? This can run regardless of snake length until snake fills entire screen.

  27. Aleksandar Petrovic

    Aleksandar PetrovicDegi Síðan síðan

    So, next video is coming through in 6 months. I mean please, Q learning takes less time to learn than your ISgos upload schedule XD

  28. Goroyo 9090

    Goroyo 9090Degi Síðan síðan

    21:16 is me but always

  29. Goroyo 9090

    Goroyo 9090Degi Síðan síðan

    Me: taking a test My last braincell: 19:38

  30. Mika Di Re

    Mika Di ReDegi Síðan síðan

    What language does he program in?

  31. Chase Wilson

    Chase WilsonDegi Síðan síðan

    How do you know?

  32. Jsid ?

    Jsid ?Degi Síðan síðan

    You should try scratch

  33. RCB

    RCBDegi Síðan síðan

    you invented a game that simulates boiling raman noodles.

  34. Linda mc guinness

    Linda mc guinnessDegi Síðan síðan

    18:44 it looks inverted

  35. Amean Abdelfattah

    Amean AbdelfattahDegi Síðan síðan

    Did you make the program speed up forward or is that from you video editing? Bc if sometimes programing that and running can cause glitches.

  36. No Limits

    No LimitsDegi Síðan síðan

    Hey guys. Subscribe my channel or u will have bad luck for 1 month.

  37. Aaron McCracken

    Aaron McCrackenDegi Síðan síðan

    That photoshop at 3:00 was epic

  38. Molly Monkey

    Molly MonkeyDegi Síðan síðan

    Do an ai learns to play geometry dash!

  39. peace anderson

    peace andersonDegi Síðan síðan

    8:15 lmao

  40. Imroz Towhid

    Imroz TowhidDegi Síðan síðan

    Nokia is proud of you!

  41. Galactics_04

    Galactics_04Degi Síðan síðan

    Post more please

  42. sciencemind

    sciencemindDegi Síðan síðan

    This is oddly satisfying

  43. K. A. G.

    K. A. G.Degi Síðan síðan

    can you make AI for online game?

  44. Asc Speedy walker

    Asc Speedy walkerDegi Síðan síðan

    Ahem were was the weekend video last week?

  45. Bullfrog's Workshop

    Bullfrog's Workshop2 dögum síðan

    Hamiltonian cycle sped up looks suspiciously like Game of Life.

  46. Bullfrog's Workshop

    Bullfrog's Workshop2 dögum síðan

    So, AI now stands for Algorithmic Intelligence. Good to know.

  47. Heather Chapman

    Heather Chapman2 dögum síðan

    I'm fully expecting a code bullet GPS for the new year...

  48. Erik Salas

    Erik Salas2 dögum síðan

    Can Q do QWOP?

  49. jacob lourens

    jacob lourens2 dögum síðan

    So did he just get a more powerful computer so the snake could see the whole screen instead of just parts of it?

  50. Sammy Boy

    Sammy Boy2 dögum síðan

    Post you lazy pice of jelly

  51. MrTheDarku

    MrTheDarku2 dögum síðan

    This is insanely beautiful

  52. Kathryn Maimee

    Kathryn Maimee2 dögum síðan

    At one point the std song tune started playing in the background

  53. kasuha

    kasuha2 dögum síðan

    You can't make hamiltonian cycle on a grid with odd number of cells. Such as 3x3 or 5x5 grid.

  54. Azian Google Snake

    Azian Google Snake2 dögum síðan

    what a noob AI lol

  55. Seth Cereal

    Seth Cereal2 dögum síðan

    3 months. You mean 5

  56. N.J.S. Jonker

    N.J.S. Jonker2 dögum síðan

    Witch program do you use to code

  57. Sunee Vijitsrikamol

    Sunee Vijitsrikamol2 dögum síðan

    Oddly Satisfying

  58. Jhoan Martinez Silva

    Jhoan Martinez Silva2 dögum síðan

    Wowwwwww, a small and básic tutorial how to train the agent with TF, awesome work (?)

  59. sevenZ

    sevenZ2 dögum síðan

    what do you use to make these videos? what language?

  60. Michal Viljoen

    Michal Viljoen2 dögum síðan

    Yoh what and where did you study????

  61. Al Rifat

    Al Rifat2 dögum síðan

    He went into hibernation after graduating from university.