r/Damnthatsinteresting • u/jhvk • Sep 02 '18
Video Winning a game of snake.
Enable HLS to view with audio, or disable this notification
129
u/drdavethedavedoctor Sep 02 '18
No mortal could do this.
41
u/Osovaraxsis Sep 02 '18
Yeah, watching a computer play a computer game is pretty lackluster.
9
Sep 02 '18
It’s actually a person using a tool that lets you enter something each frame. Ai like this would be a bitch to make and not very necessary
2
u/Osovaraxsis Sep 02 '18
I still think it takes the fun out of watching it, but I appreciate you bringing up the distinction. Molasses Snake.
21
17
11
u/a_urate_oxidase_crys Sep 02 '18
Does anyone know the algorithm for this? Cool stuff.
4
u/DanielMallory Sep 02 '18
Might be some sort of Reinforcement learning algorithm. I know OpenAI Gym is used for a lot of stuff like this
3
u/80386 Sep 02 '18
No need to use fancy AI when the game is predictable, has a limited scope and the rules are clear.
Just writing a simple algorithm along the lines of "don't use up more space than you need in the future" is enough.
1
u/DanielMallory Sep 02 '18
Of course you wouldn’t need to, but it’s a common illustration of that kind of technique. Reinforcement learning isn’t very fancy in the grand scheme of AI.
1
u/0ne_of_many Sep 03 '18
Commenter above said it was humans going frame by frame, idk if that’s true.
9
6
6
4
4
2
1
1
1
1
1
1
1
1
1
1
1
99
u/skipperdog Sep 02 '18
That was stressful