There isn't any in depth technical explanation in either video though the creator links the source code in a pinned comment on each video. At the very least it's interesting to watch it going from barely being able to make it to the food to playing (relatively) intelligently.
Part 1
[video=youtube;3bhP7zulFfY]https://www.youtube.com/watch?v=3bhP7zulFfY[/video]
Part 2, now featuring multiple AIs
[video=youtube;mqz16vhWwlU]https://www.youtube.com/watch?v=mqz16vhWwlU[/video]
Yeah, a genetic algorithm would be good for something like Snake. Great video!
For those looking on making something like this yourself, the guy put the github link in the comments of the first video.
[editline]9th February 2018[/editline]
One thing I could say that would have sped up the learning process significantly would be to add a 'death timer' that immediately kills the snake if it spends too long between getting food. Probably make it long enough so that it's very reasonable in the later stages of the game too.
[editline]9th February 2018[/editline]
Also, the weird inhuman movements of it are because of the input neurons - it's not looking at the whole board, so a lot of the time it doesn't even see the food at all and only homes in after it after it sees it, and in doing so can also just lose it again :v:
[editline]9th February 2018[/editline]
So to make a perfect Snake AI, you'd want to have an input neuron for basically every single tile and possibly a thalamus function.
ive never been so proud of an ai before
In part two it was really interesting how Sammy and Sally developed differently. One of them scanned for food by hugging the left side and the other scanned for food by hugging the bottom.
[QUOTE=ForgottenKane;53119290]Yeah, a genetic algorithm would be good for something like Snake. Great video!
For those looking on making something like this yourself, the guy put the github link in the comments of the first video.
[editline]9th February 2018[/editline]
One thing I could say that would have sped up the learning process significantly would be to add a 'death timer' that immediately kills the snake if it spends too long between getting food. Probably make it long enough so that it's very reasonable in the later stages of the game too.
[editline]9th February 2018[/editline]
Also, the weird inhuman movements of it are because of the input neurons - it's not looking at the whole board, so a lot of the time it doesn't even see the food at all and only homes in after it after it sees it, and in doing so can also just lose it again :v:
[editline]9th February 2018[/editline]
So to make a perfect Snake AI, you'd want to have an input neuron for basically every single tile and possibly a thalamus function.[/QUOTE]
I prefer it this way, it feels more like an actual animal. It just goes around looking for food and eats it when it is found.
That second video was great
That behavior switching was amazing
I love how the subtitles throughout the video get more and more bewildered at the stupidity of the AI
Reminds me of someone who owns a cat
“What? Why? Why would you even do that?”
I love how it pulls off the most retarded self trap imaginable and then just immediately gets out with some impossible fucking flawless escape
Sorry, you need to Log In to post a reply to this thread.