The Impossible Snake
I have made a snake game.. but not just any snake game...
This is a snake game where you have enemies. Their only job is to kill you. And they do it very well. I have never eaten more than 3 apples. Anyone who wins gets an upvote on there comment cuase its darned hard.
Each enemy is called a verminion. They will do everything that they can to destroy you. You can not run into them, so they will do their best to get in front of you and kill you. I have made 4 different AIs, and each vermion is assigned a different one. There can be duplicates.
Control your snake using WASD, don't hit walls, verminions, or yourself.
Get to adult size (1o apples) without dying, and you have won.
If you want to create your own AI, you can use the provided global variables:
If you want to create you own algorithm, you can use these. Create a function and return the targeted block. My own algorithms will calculate the path to it.
Best algorithms get mentioned. Comment them below!
Also I wanted to test out those two things so here they are. Scroll down to play.
Two more things: Maybe change the title of the game to "
Impossible Snake" instead of "
repl.it"... Also maybe make it so when you press space, you can skip the intro, instead of having to click many times.
Also could you make it so the end of the game is at a score of... 30, or like 50?... Or maybe 100.
I don't understand why people can't get 10... I mean it's not that hard ;-;.
I could have gotten more, but I pressed up + left too fast, and it thought I pressed only left -_-... Well that was sad :(...
Also btw I played in the background after I hit 10, because when you click, it just refreshes the game :(...