Code Bullet
Using a neural network and the genetic algorithm I trained an AI to play snake.
Time Passing By by Audionautix is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/)
Artist: http://audionautix.com/
Source
Hey guys
I've uploaded the source code for my second video
Its the same as this videos source just with a few added functionalities
check it out here https://github.com/Code-Bullet/SnakeFusion
6:35 fuck this shit, i hate life
Or you could just program a specific path for it to follow, wherever you are go to a certain block at the bottom and going to the right x amount of spaces going up once then to the left x amount leaving only the leftmost column empty thereby making a path for it to loop
Yep , i remember the first time I've seen your channel in this video , oh , it's your first video
Nokia like it
At the end of the video it turned right instead of left to commit suicide as it realized the meaninglessness of its life and the absurdity in finding a higher value. It was a pity that it chose to end its life when facing the problem of absurdity. So unfortunate that it haven't read the works of Albert Camus and have started to revolt and create its own meaning of life in order to defeat the absurdity. Perhaps in level 100, it will follow the footsteps of Sisyphus by rejecting all the predetermined meaning imposed on it and will continue its monostrous life in a cheerful way. Then we may say: il faut imaginer le serpent heureux.
TURN LEFT FUCKING DUMB AI
At 5:54 the snake eats the food before I can see 😛
Hmm. I can see the future. The Ai going to take over the world than kill everyone and everything except their types. Then they are going to have a war just like WWI and WWII. After many many years, they will realise that they are just like humans and selfish. Then committed suicide. Fix this if i’m worng
It's like watching baby's first steps. I'm so proud of that AI. He's one step closer to ruling mankind.
AL dustys twin
4:12 the snake got friendzoned …
DiD YoU JuSt AsSumE iTs GeNdeR?!¿!
yeaah how is name game? i know that is a snake game but, Exactly name of THIS?
Its like a parasite evolving
I just realized, I completed a personal snake game (no AI, yet) yesterday-ish, and it uses the same exact color scheme you did!
The DvD screensaver hits the corner
Why does it keep going towards the top left corner
Please, re make these videos please with your awesome voice and stuff I would be much appreciated!
6:35
snake? SNAAAAKE!!!
sorry not sorry
wouldn't it have been faster and more effective if you implemented an algorithm for it to read where the food was on the screen
What if you added a piece of code, if snake has not grown after x amount of time to change direction? Would this stop the loop outs?
I was just watching a emotional video why am I here
You should do this again but better. It would be cool to see how you would do it differently this time.
While AI generation keeps on improving our generation does not
Ps. This is just a joke, saying it early before everyone keeps on hating, but you know it’s true
I don't think apples spawn INSIDE the snake's body in the actual game.
I was never any good at this game
*snake runs in circles*
This is sooooo awesome
Video In yo years:
AI learns how to kill human
I think generation 17 never ended.
The music reminded of the music of interstellar. Also, what does generation refers to?
This is a very counterclockwise inclined snake
I’m too hung over for this
Did u programmed it to always turn at the top right corner or atleast in a specific way? Coz im getting the vibe that u did.
What does 'generation' mean here?
I think using genetic algorithm and NN is too long to find an optimal solution, here my approach using path finding https://asemenov.com/SnakeGame/
That sankes loves upper left corner
Music was so annoying!!
How did you solve the problem on Generation 17? Did you have to tweak the code?
Is it state-based? Do you halt only if a loop appear or it dies?
At level 30 or 40 my cat suddenly got obsessed by my phone. Took me a few seconds to realize.
That said, you have come a long way with your videos. I like the talking, keep it up, keep leaning how to train an AI.
As a veteran snake coder, a few pointers: your food generation should check that the food is placed on an empty square, otherwise try again. You could have just one output neuron, an int from -1 (left), 0 (forward) or 1 (right).
U CREATED A WALKING VIRUS
AL is a snake beast!
4 outputs rather than 2? (turn left/right) oke
Which fitness function did you use, sir?