WEBVTT
Kind: captions
Language: en

00:00:00.030 --> 00:00:08.069 align:start position:19%
if you've ever seen xkcd 356 you'll know
that a certain type of mind is very

00:00:06.240 --> 00:00:25.109 align:start position:19%
easily distracted by interesting
problems and for better or for worse I

00:00:10.820 --> 00:00:29.519 align:start position:19%
seem to have one of those Minds this
video is the story of one such instance

00:00:27.510 --> 00:00:34.290 align:start position:19%
where I watched a code bullet video one
morning about making an algorithm to

00:00:31.349 --> 00:00:38.610 align:start position:19%
play the game snake and by 2:00 a.m. the
next morning I found myself unable to

00:00:36.780 --> 00:00:42.270 align:start position:19%
sleep trying to teach myself about
efficient ways to determine the

00:00:40.170 --> 00:00:46.950 align:start position:19%
hamiltonicity of arbitrary bipartite
rectangular grid graphs and if none of

00:00:45.210 --> 00:00:48.690 align:start position:19%
those words made any sense to you don't
worry

00:00:47.370 --> 00:00:51.840 align:start position:19%
they didn't make sense to me before that
day and I'm really only going to be

00:00:50.370 --> 00:00:56.100 align:start position:19%
using a couple of them in the rest of
this video after the first three-day

00:00:53.640 --> 00:01:00.120 align:start position:19%
weekend of furious coding I had a
running snake algorithm that I believed

00:00:58.170 --> 00:01:06.210 align:start position:19%
was actually faster than code bullets
when it worked about half the time it

00:01:03.750 --> 00:01:10.950 align:start position:19%
would get stuck in loops like this never
dying but also never actually completing

00:01:09.119 --> 00:01:15.450 align:start position:19%
the game it also had a few really
annoying sort of poor efficiency

00:01:12.600 --> 00:01:20.189 align:start position:19%
behaviors like a tendency to draw these
huge spirals across half the screen it

00:01:17.939 --> 00:01:25.500 align:start position:19%
just did nothing but waste a whole lot
of moves after about a month completely

00:01:23.130 --> 00:01:29.700 align:start position:19%
addicted to this problem I had added a
whole bunch of features to my snake

00:01:27.060 --> 00:01:34.619 align:start position:19%
playing AI I had dropped the play times
by about 15% and I dropped the failure

00:01:32.850 --> 00:01:37.950 align:start position:19%
rate when it could stuck in loops like
that to basically zero let me show you

00:01:37.290 --> 00:01:42.450 align:start position:19%
how it works
if you haven't seen it before snake is

00:01:40.200 --> 00:01:47.729 align:start position:19%
an old arcade and early computer game
where you are a highly pixelated snake

00:01:45.000 --> 00:01:52.979 align:start position:19%
that eats highly pixelated apples in a
highly pixelated grid this one happens

00:01:50.130 --> 00:01:56.969 align:start position:19%
to be a 30 by 30 grid now I have taken a
little artistic liberty with this

00:01:54.390 --> 00:02:02.670 align:start position:19%
rendering out of MATLAB the apples are
little red circles in full HD it's

00:01:59.880 --> 00:02:06.810 align:start position:19%
absolutely amazing how new technology
can enhance old games the hard part is

00:02:05.070 --> 00:02:11.580 align:start position:19%
that you aren't allowed to run into the
walls or yourself and every time the

00:02:09.300 --> 00:02:16.010 align:start position:19%
snake eats an apple the snake gets one
pixel longer as if

00:02:13.130 --> 00:02:20.450 align:start position:19%
snakes are just stretchy green tubes
full of apples that never get digested I

00:02:18.710 --> 00:02:24.590 align:start position:19%
try not to think about it too hard
bottom line is the game gets really

00:02:22.850 --> 00:02:29.210 align:start position:19%
difficult when the snake is really long
because it's really easy to get yourself

00:02:27.020 --> 00:02:39.470 align:start position:19%
into a situation where you've trapped
the head of the snake and it can never

00:02:30.920 --> 00:02:42.560 align:start position:19%
escape or in this case because I didn't
bother to write a failure condition it

00:02:40.850 --> 00:02:47.330 align:start position:19%
just realizes that it can't see the
Apple anymore and the program blows up

00:02:44.330 --> 00:02:51.530 align:start position:19%
the game is won if you literally fill
the whole board with snake as in when

00:02:49.490 --> 00:02:55.700 align:start position:19%
the snake eats the last Apple it's next
bite would be its own tail my goal was

00:02:54.170 --> 00:02:59.720 align:start position:19%
to make an algorithm that filled the
board every single game in as few moves

00:02:58.730 --> 00:03:05.900 align:start position:19%
as possible
the single absolute easiest way to win

00:03:02.780 --> 00:03:11.630 align:start position:19%
snake is to make a path that passes
through every point on the board exactly

00:03:07.730 --> 00:03:16.010 align:start position:19%
once and follow it you will eventually
eat every Apple and because you're

00:03:14.120 --> 00:03:20.810 align:start position:19%
always going in the same path you will
never run into yourself so it's a

00:03:18.020 --> 00:03:25.330 align:start position:19%
guaranteed win however as code bullet
mentioned in his video it's boring and

00:03:23.150 --> 00:03:31.880 align:start position:19%
as I'm about to quantify it's also
painfully slow the expected travel of

00:03:29.570 --> 00:03:37.160 align:start position:19%
the snake before eating an apple is half
of the exposed tiles so at the beginning

00:03:34.160 --> 00:03:43.250 align:start position:19%
of the game that's half of almost 900 so
about 450 steps per Apple by the middle

00:03:41.270 --> 00:03:47.900 align:start position:19%
of the game the snake takes up enough
space that the Apple actually has to

00:03:45.260 --> 00:03:52.400 align:start position:19%
spawn closer to the snake's head and for
the last Apple of the game you know the

00:03:50.030 --> 00:03:56.900 align:start position:19%
Apple will spawn exactly in front of the
snake because it's the only available

00:03:53.870 --> 00:04:01.520 align:start position:19%
space so we'll only take one move to eat
the apple that means we can actually

00:03:58.780 --> 00:04:08.540 align:start position:19%
analytically determine the average 30 by
30 game will take about 200,000 moves

00:04:04.880 --> 00:04:13.070 align:start position:19%
that's really slow this path that covers
every square on the board exactly once

00:04:10.880 --> 00:04:18.680 align:start position:19%
is known to graph theorists who know a
lot more math than I do as a Hamiltonian

00:04:16.040 --> 00:04:23.720 align:start position:19%
cycle if you imagine a game of snake is
basically a square grid of nodes the

00:04:21.200 --> 00:04:28.590 align:start position:19%
Hamiltonian cycle is a way to connect
all of those nodes with a line the

00:04:26.050 --> 00:04:33.699 align:start position:19%
only passes through each node once and
returns to where it started so it makes

00:04:31.270 --> 00:04:37.960 align:start position:19%
a cycle not all connections between
nodes are available of course because

00:04:35.800 --> 00:04:42.310 align:start position:19%
the snake itself is on the board and
crossing the snake is illegal so when

00:04:40.210 --> 00:04:47.680 align:start position:19%
you try to draw Hamiltonian paths on a
snake board the entirety of the snake

00:04:44.680 --> 00:04:52.389 align:start position:19%
needs to be included in that Hamiltonian
path in order because there's no way

00:04:50.470 --> 00:04:56.289 align:start position:19%
that the snake can cross itself or you
can like exit the snake and then come

00:04:54.190 --> 00:05:01.659 align:start position:19%
back in that doesn't make any sense
code bullets ii AI is an implementation

00:04:58.930 --> 00:05:07.180 align:start position:19%
of an algorithm created by john capsule
called the perturbative hamiltonian

00:05:04.030 --> 00:05:11.380 align:start position:19%
cycle it's a really mind bogglingly
efficient algorithm that was designed to

00:05:09.880 --> 00:05:17.319 align:start position:19%
be simple so that it could run on a
phone but basically it runs the snake

00:05:14.560 --> 00:05:23.050 align:start position:19%
across this full board Hamiltonian cycle
but occasionally it decides to jump the

00:05:20.139 --> 00:05:27.430 align:start position:19%
line and skip sections of the full board
cycle in order to get to the Apple

00:05:25.210 --> 00:05:32.889 align:start position:19%
faster the problem is that especially
late in the game this means that certain

00:05:30.370 --> 00:05:36.849 align:start position:19%
parts of the board become locked until
the snake traverses the whole map if

00:05:34.719 --> 00:05:42.039 align:start position:19%
this section of the Hamiltonian path was
skipped and the Apple fell here you now

00:05:39.729 --> 00:05:46.509 align:start position:19%
have to wait for almost an entire boards
worth of moves until the snake traverses

00:05:44.349 --> 00:05:52.120 align:start position:19%
the entire path returns to this point
and then it cannot skip this section to

00:05:50.110 --> 00:05:56.740 align:start position:19%
grab the Apple but what if the
Hamiltonian path could change what if on

00:05:54.940 --> 00:06:01.029 align:start position:19%
the way back you just took this little
skipped part and added it back in in

00:05:58.810 --> 00:06:05.889 align:start position:19%
order to collect the Apple faster that
would work just fine and that is

00:06:03.340 --> 00:06:09.909 align:start position:19%
actually the basis of my snake playing
algorithm what I haven't mentioned yet

00:06:07.960 --> 00:06:12.969 align:start position:19%
is that while some graphs have many
Hamiltonian paths some graphs have none

00:06:12.460 --> 00:06:17.560 align:start position:19%
at all
if you imagine this tiny snake board the

00:06:15.370 --> 00:06:23.050 align:start position:19%
snake neither goes straight or turn left
and each case yields a new graph for us

00:06:20.800 --> 00:06:27.669 align:start position:19%
to check if the snake goes straight
there are a bunch of Hamiltonian cycles

00:06:25.449 --> 00:06:33.130 align:start position:19%
but if the snake turns left there are
zero Hamiltonian cycles the biggest dead

00:06:31.300 --> 00:06:38.090 align:start position:19%
giveaway here is the lone node on the
bottom right it only has one connection

00:06:35.500 --> 00:06:43.130 align:start position:19%
to the graph so there's no way to get in
out of that node to complete a cycle

00:06:40.240 --> 00:06:47.870 align:start position:19%
clearly if the snake values its life it
wants to go straight so it knows that it

00:06:45.590 --> 00:06:52.490 align:start position:19%
can always get to every space my first
instinct when designing a snake AI was

00:06:50.180 --> 00:06:56.210 align:start position:19%
to do exactly this for every move look
at the hypothetical graphs with the

00:06:54.800 --> 00:07:02.210 align:start position:19%
snake were to move in any given
direction and move towards the Apple as

00:06:58.699 --> 00:07:05.780 align:start position:19%
long as a Hamiltonian path existed in
that direction the problem with this

00:07:04.100 --> 00:07:11.389 align:start position:19%
strategy is that determining the
hamiltonicity of a graph or determining

00:07:08.780 --> 00:07:16.340 align:start position:19%
if a Hamiltonian path exists is an
np-hard problem when people say

00:07:14.060 --> 00:07:20.870 align:start position:19%
something is exponentially difficult
they normally aren't being literal but

00:07:18.889 --> 00:07:25.190 align:start position:19%
an np-hard problem is how computer
scientists refer to computation that is

00:07:23.000 --> 00:07:30.169 align:start position:19%
actually literally exponentially
difficult the bigger the graph the more

00:07:27.620 --> 00:07:35.060 align:start position:19%
CPU cycles you burn trying to find a
Hamiltonian path or even if a

00:07:32.360 --> 00:07:40.070 align:start position:19%
Hamiltonian path exists for a given
graph naively my gut reaction was that I

00:07:37.699 --> 00:07:44.389 align:start position:19%
had a nice computer I should just crank
through it by brute force

00:07:41.210 --> 00:07:49.460 align:start position:19%
turns out I underestimated what np-hard
really meant I downloaded a pre-written

00:07:47.120 --> 00:07:53.990 align:start position:19%
bit of MATLAB code to find a Hamiltonian
path on an arbitrary graph and I let it

00:07:51.530 --> 00:07:59.060 align:start position:19%
churn on a pathetic ten-by-ten snake
board now keep in mind a 10 by 10 snake

00:07:56.510 --> 00:08:05.510 align:start position:19%
board is actually a graph with 100 nodes
after 15 minutes of it not finishing the

00:08:02.810 --> 00:08:09.889 align:start position:19%
very first step in the game I had
decided that I would need a more

00:08:07.099 --> 00:08:13.610 align:start position:19%
intelligent strategy that's why I spent
so much time reading about it in the

00:08:11.450 --> 00:08:19.160 align:start position:19%
first few days I was trying to find a
moderately efficient algorithm to

00:08:15.620 --> 00:08:23.630 align:start position:19%
determine hamiltonicity of you know some
sort of arbitrary snake board it turns

00:08:21.470 --> 00:08:28.340 align:start position:19%
out that a snake board is a very
restricted definition of graph so you

00:08:27.229 --> 00:08:32.959 align:start position:19%
know you could make a little bit of
progress but it didn't find anything

00:08:30.020 --> 00:08:37.640 align:start position:19%
that was super satisfying turns out that
just making tiny changes to a

00:08:35.229 --> 00:08:42.020 align:start position:19%
pre-existing Hamiltonian cycle is
sufficient for the vast majority of

00:08:39.500 --> 00:08:46.220 align:start position:19%
cases when a human plays snake
they don't reevaluate the entire board

00:08:44.300 --> 00:08:49.920 align:start position:19%
with every move they just look at the
stuff around the head of the snake

00:08:47.920 --> 00:08:54.959 align:start position:19%
imagine that you have this
and it wants to write but the

00:08:52.050 --> 00:08:59.790 align:start position:19%
Hamiltonian path takes it straight if
the snake does turn right it creates

00:08:57.180 --> 00:09:05.010 align:start position:19%
another smaller loop and leaves behind
this little disconnected loop of path

00:09:02.450 --> 00:09:10.260 align:start position:19%
neither of these paths are actually
Hamiltonian cycles because they don't

00:09:07.019 --> 00:09:15.870 align:start position:19%
cover the entire board but if you find
an easy spot and splice them back

00:09:12.600 --> 00:09:20.579 align:start position:19%
together now you have a new Hamiltonian
path and the snake still gets to turn

00:09:18.089 --> 00:09:27.630 align:start position:19%
right towards the Apple that's the basis
of my dynamic Hamiltonian cycle repair

00:09:24.420 --> 00:09:31.800 align:start position:19%
algorithm so here we go this is an early
version of the program that was trying

00:09:29.519 --> 00:09:35.590 align:start position:19%
to repair the paths nothing special it
looks pretty darn good it's going along

00:09:33.329 --> 00:09:43.120 align:start position:19%
it's getting apples
wait there are a zillion nested ifs and

00:09:40.600 --> 00:09:47.890 align:start position:19%
piles and piles of minus signs in this
code and it is an awful lot to keep

00:09:45.760 --> 00:09:52.660 align:start position:19%
track of even when it's performing
properly it's important to note that

00:09:49.870 --> 00:09:57.340 align:start position:19%
this algorithm is really really lazy and
it doesn't actually try very hard to

00:09:55.270 --> 00:10:02.560 align:start position:19%
repair the Hamiltonian path before
giving up if it can't find a solution if

00:09:59.770 --> 00:10:06.940 align:start position:19%
it does give up the snake is forced to
follow the old Hamiltonian path which

00:10:04.870 --> 00:10:11.410 align:start position:19%
might actually take it farther away from
the Apple but at the very least it

00:10:09.100 --> 00:10:16.690 align:start position:19%
ensures that the snake won't die because
it always remembers its escape route

00:10:13.660 --> 00:10:20.770 align:start position:19%
it's always following a Hamiltonian path
I was pretty pleased with the snake

00:10:18.730 --> 00:10:24.700 align:start position:19%
algorithm but it was seeing some weird
results you see how it kind of squiggles

00:10:22.930 --> 00:10:31.420 align:start position:19%
everywhere at the start like look at all
these wasted moves they can just go or

00:10:27.310 --> 00:10:36.250 align:start position:19%
even but instead it has to you know go
bad and make all this mess when I played

00:10:33.820 --> 00:10:41.380 align:start position:19%
30 games with just the loop splicing
repair algorithm I got an average game

00:10:38.770 --> 00:10:47.200 align:start position:19%
length of about 68 thousand steps or
about 76 steps per Apple when I made the

00:10:44.770 --> 00:10:52.330 align:start position:19%
repair algorithm smarter and able to fix
even more situations more than just the

00:10:49.480 --> 00:10:57.400 align:start position:19%
simple loops it actually got worse with
an average game length all the way up at

00:10:54.330 --> 00:11:01.720 align:start position:19%
72,000 moves which is over 80 moves to
collect the average Apple on the surface

00:10:59.830 --> 00:11:05.830 align:start position:19%
this seems really weird and I mean
deeper down it seems really weird that

00:11:03.910 --> 00:11:10.660 align:start position:19%
you can make the algorithm better at
moving towards the Apple but the game

00:11:08.410 --> 00:11:14.860 align:start position:19%
length goes up like it takes longer on
average to get to the Apple even though

00:11:12.220 --> 00:11:19.120 align:start position:19%
it can normally get there better that
sort of was my first clue that actually

00:11:17.500 --> 00:11:24.130 align:start position:19%
the direction from which you approached
the Apple and the strategy surrounding

00:11:21.790 --> 00:11:28.780 align:start position:19%
that turns out to be very important so
some of my later things had to start to

00:11:26.830 --> 00:11:33.370 align:start position:19%
correct for that one of the first things
that I did notice about you know the

00:11:30.700 --> 00:11:37.420 align:start position:19%
wasted zigzag enos of the algorithm was
that it was much better at going in

00:11:34.990 --> 00:11:41.770 align:start position:19%
straight lines than when it was actually
attempting to zigzag so I went into the

00:11:40.090 --> 00:11:46.120 align:start position:19%
a-star algorithm that I had downloaded
from the math works website which is

00:11:43.960 --> 00:11:48.290 align:start position:19%
basically the algorithm that says which
direction is the fastest way to the

00:11:47.650 --> 00:11:53.630 align:start position:19%
Apple
now and I fiddled with that algorithm so

00:11:51.110 --> 00:11:57.649 align:start position:19%
that it preferred straight lines and did
some other things so that it respected

00:11:55.339 --> 00:12:01.670 align:start position:19%
the existing Hamiltonian path a little
more this combination of repairing the

00:11:59.540 --> 00:12:06.319 align:start position:19%
Hamiltonian cycle with the more advanced
version of that algorithm and trying to

00:12:04.100 --> 00:12:12.050 align:start position:19%
travel in straight lines turned out to
be extremely powerful and dropped my

00:12:09.079 --> 00:12:17.420 align:start position:19%
average game length to only 65,000 moves
now the snake plays pretty darn well and

00:12:15.110 --> 00:12:21.019 align:start position:19%
it looks much more human-like at the
beginning of the game because it travels

00:12:18.980 --> 00:12:27.079 align:start position:19%
in a lot of straight lines and it almost
never gets stuck in loops but it still

00:12:23.449 --> 00:12:32.149 align:start position:19%
has a few annoying behaviors I have
burned an awful lot of hours watching

00:12:30.050 --> 00:12:34.759 align:start position:19%
the snake wander around the board and
you know you're sort of rooting for it

00:12:33.529 --> 00:12:37.790 align:start position:19%
you're like oh that was great
oh you see how it's just like wrapped

00:12:36.259 --> 00:12:42.589 align:start position:19%
around that corner to the Apple and
sometimes you're like oh no no don't do

00:12:39.860 --> 00:12:46.190 align:start position:19%
that don't get stuck and then you watch
the thing fill in half the board and

00:12:44.449 --> 00:12:50.660 align:start position:19%
waste all these moves before it gets to
the Apple most of the small changes that

00:12:48.589 --> 00:12:55.910 align:start position:19%
I made to the algorithm were out of
frustration and watching the snake do

00:12:53.449 --> 00:13:00.220 align:start position:19%
unintelligent things and me having to
sit through it again and again so I

00:12:58.639 --> 00:13:05.389 align:start position:19%
started playing whack-a-mole with
especially annoying special cases for

00:13:03.319 --> 00:13:10.100 align:start position:19%
example in this situation right here the
snake sees the Apple and goes straight

00:13:07.430 --> 00:13:14.600 align:start position:19%
for it but now it has cut the map in
half if it grabs that Apple right now

00:13:12.529 --> 00:13:19.819 align:start position:19%
and then turns towards its tail there's
no way to get to all of these notes a

00:13:16.819 --> 00:13:25.220 align:start position:19%
Hamiltonian cycle would not exist so
instead it has to waste a whole lot of

00:13:22.160 --> 00:13:29.839 align:start position:19%
time filling in half of the board before
returning to the Apple and consuming it

00:13:27.350 --> 00:13:34.430 align:start position:19%
any human playing would just say well I
should go along the edge and not have

00:13:31.760 --> 00:13:39.439 align:start position:19%
this issue so that is the first special
case that I addressed when the snakes

00:13:36.529 --> 00:13:42.800 align:start position:19%
path would cut the board in half the
line to the Apple turns gray and instead

00:13:41.720 --> 00:13:47.959 align:start position:19%
it hugs the walls
I had to utilize a couple of parody

00:13:45.800 --> 00:13:52.490 align:start position:19%
arguments so that it knows which wall to
hug you know always turning left are

00:13:49.639 --> 00:13:57.319 align:start position:19%
always turning right but getting that
figured out brings the median game

00:13:54.500 --> 00:14:01.040 align:start position:19%
length down to fifty nine thousand so
that was an awful lot of coding effort

00:13:59.329 --> 00:14:03.799 align:start position:19%
for an additional eight percent
improvement

00:14:01.730 --> 00:14:09.619 align:start position:19%
are you noticing the diminishing returns
here so with this change in the mid-game

00:14:06.019 --> 00:14:14.959 align:start position:19%
the snake looks brilliant until it
closes itself into a loop if you were

00:14:13.040 --> 00:14:18.829 align:start position:19%
playing a game of snake and got here
you'd realize that a couple zig zags

00:14:16.910 --> 00:14:23.959 align:start position:19%
would let you wait until the tail got
out of the way and you could go on your

00:14:20.689 --> 00:14:28.879 align:start position:19%
merry Apple eating way but is that what
the snake does no it's always trying to

00:14:27.019 --> 00:14:33.649 align:start position:19%
follow the red path to the Apple and
less explicitly prohibited by the

00:14:30.919 --> 00:14:37.489 align:start position:19%
non-existence of a Hamiltonian path so
it ends up staying close to the edge and

00:14:35.389 --> 00:14:41.299 align:start position:19%
leaving itself only a single escape
route which it's not allowed to use

00:14:39.410 --> 00:14:46.399 align:start position:19%
until it's filled in the whole spiral
these big curly Q spiral formations can

00:14:44.329 --> 00:14:51.589 align:start position:19%
take up like half the board and it just
wastes a ton of moves so the second

00:14:49.309 --> 00:14:56.569 align:start position:19%
critical special case that I addressed
was that when the snake realizes it's

00:14:53.959 --> 00:15:02.029 align:start position:19%
closed in it tries to run away from the
Apple and the line turns yellow this

00:14:59.419 --> 00:15:06.350 align:start position:19%
prevents the spirals and sometimes lets
the snake get away a whole lot faster

00:15:03.949 --> 00:15:11.779 align:start position:19%
this is a quick rundown of the stats
from my many many trials of snake the

00:15:09.739 --> 00:15:15.379 align:start position:19%
best recorded game was actually played
by the most advanced algorithm which

00:15:13.429 --> 00:15:19.999 align:start position:19%
made me feel very accomplished that all
of my bells and whistles were actually

00:15:17.419 --> 00:15:27.289 align:start position:19%
helping in that particular game only
took 50 2698 moves for the final two

00:15:24.139 --> 00:15:31.549 align:start position:19%
versions I saw no looping failures so I
guess it's still possible for it to fail

00:15:29.839 --> 00:15:35.749 align:start position:19%
by getting stuck in a loop but I've
never seen it happen so it can't be very

00:15:33.559 --> 00:15:39.649 align:start position:19%
likely this thing runs at a blistering
couple hundred frames per second when

00:15:37.879 --> 00:15:43.309 align:start position:19%
it's not plotting but when it is
plotting and actually rendering out

00:15:41.359 --> 00:15:47.419 align:start position:19%
video frames that drops to like three
fps so I'm playing it back a little bit

00:15:45.470 --> 00:15:52.309 align:start position:19%
faster than that rendering the complete
game video takes like six hours MATLAB

00:15:49.759 --> 00:15:57.619 align:start position:19%
is probably not the right tool for this
job but it is the hammer that I use to

00:15:55.160 --> 00:16:02.059 align:start position:19%
pounding nails and screws and rivets
alike the bottom line is that AI is to

00:15:59.959 --> 00:16:06.199 align:start position:19%
play snake R Orion and I would love to
see more of them a quick Google search

00:16:04.029 --> 00:16:11.089 align:start position:19%
actually doesn't turn up very many
there's a lot of like machine learning

00:16:07.899 --> 00:16:15.279 align:start position:19%
tutorials which are fun but I don't see
them reaching the sort of unkillable

00:16:13.209 --> 00:16:19.420 align:start position:19%
and efficiency that these algorithmic
solutions can provide if you've watched

00:16:17.170 --> 00:16:25.240 align:start position:19%
code bullets video or this video and get
nerd Smike the way I did please go make

00:16:22.089 --> 00:16:28.839 align:start position:19%
a snake AI and then post a video of it
and tell me how it works because I would

00:16:26.829 --> 00:16:33.100 align:start position:19%
love to see more of these things out in
the wild in the meantime remember to

00:16:30.819 --> 00:16:38.199 align:start position:19%
subscribe for more projects making
photography and I guess the occasional

00:16:35.949 --> 00:16:41.490 align:start position:19%
simulation or artificial intelligence
thanks for watching

00:16:43.470 --> 00:17:05.740 align:start position:19%
[Music]

