HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to Win Snake: The UNKILLABLE Snake AI

2,251,624 views February 27, 2020 17:05

Watch on YouTube
ChannelAlphaPhoenix

Description from the creator

I watched the CodeBullet Snake AI video on the morning after Thanksgiving and spent WAAAAYY too much time working on an AI of my own. I present to you: Snake, as played algorithmically with Dynamic Hamiltonian Cycle Repair. The snake can never die - like really, actually, literally, can't be killed - it's just a matter of how fast it wins the game…

If you, like me, enjoy watching snakes run around eating apples for hours on end, enjoy this follow-up where I took the median-length game from my best performing algorithm and posted the whole darn thing on YouTube:
youtu.be/YqL7bl3I5IE

Check out the other social media for updates and ramblings:
facebook.com/AlphaPhoenixChannel/
twitter.com/Alpha__Phoenix

#Snake #AI #Math

CODE!
github.com/BrianHaidet/AlphaPhoenix/tree/master…

Snake References:
@CodeBullet
CodeBullet's (Most recent) snake video: youtu.be/tjQIO1rqTBE
@johnflux1
John Tapsell's Nokia snake project: johnflux.com/2015/05/02/nokia-6110-part-3-algor…

Mathworks File Exchange Reference:
A* code originally written by Einar Ueland
mathworks.com/matlabcentral/fileexchange/56877-…

Actual MATH Papers:
mathworld.wolfram.com/GridGraph.html
epubs.siam.org/doi/10.1137/0211056
cs.technion.ac.il/~itai/publications/Algorithms…
drops.dagstuhl.de/opus/volltexte/2018/9951/pdf/…

link.springer.com/chapter/10.1007%2F978-3-642-3…
arxiv.org/pdf/1008.0541v1.pdf
arxiv.org/pdf/1707.05994.pdf
onlinelibrary-wiley-com.proxy.library.ucsb.edu:…
sciencedirect.com/science/article/abs/pii/00200…
en.wikipedia.org/wiki/Hamiltonian_path_problem#…
citeseerx.ist.psu.edu/viewdoc/download?doi=10.1…
weber.itn.liu.se/~valpo40/pages/hamtile.pdf
sciencedirect.com/science/article/pii/S03043975…
sciencedirect.com/science/article/pii/0012365X9…

Other clips in this video:
xkcd.com/356/
Morbo "Dooom" (Futurama)
"That's Illegal" meme (Red vs. Blue)

Music in this video:
I Dunno by grapes is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/by/3.0/)
ccmixter.org/files/grapes/16626

About this tutorial

AlphaPhoenix published this 17:05 video tutorial on February 27, 2020. It has been watched 2,251,624 times on YouTube.

Duration
17:05
Published
February 27, 2020
Views
2,251,624
Likes
52,151

Tags

Share

This tutorial in other languages