ermiyaeskandary / Slither.io-bot

Just for fun and AI. Written in Javascript, this is a project which the aim is to make a computer play against humans inside a human-driven game, which is in this case Slither.io. The goal is simple - try and make the snake live and get as long as possible.
Mozilla Public License 2.0
195 stars 124 forks source link

shift headCircle to front instead of increasing for running snake #280

Closed alexzeit closed 8 years ago

alexzeit commented 8 years ago

The increasing of the headCircle if the snake is running is not the best thing, it is like you start to drive your car faster and try to look further in all directions. No snakes from back can overcome you, that is why I think it is better to shift the circle to front instead to increase it.

alexzeit commented 8 years ago

Other possibility to use an additional circle in the front of the snake if it runs

ChadSki commented 8 years ago

Why don't you try it out and see if it works better?

Pop in the gitter chat if you need help navigating the codebase.

ermiyaeskandary commented 8 years ago

Documentations is not fully done yet but it may help you in some cases as well. But the Gitter chat is the way to go !

alexzeit commented 8 years ago

i have tried it, it works better just an example: you have a snake body on the left side close to the blue circle , and your snake has found some amount of food in front and starts to accelerate, what will happen? The blue circle will increase and an collision will be registred to the left that was not seen before just because the circle is increased. but this is not that should prevent the snake moving, it is on the left and your snake just goes ahead

ermiyaeskandary commented 8 years ago

@alexzeit If it does, make a PR! Great! And we'll be happy to take a look at it. But please meet all requirements and read the guidelines and the contributing section in the README !

Seple commented 8 years ago

Manual control - buton mouse without a growth circle. Possible?

alexzeit commented 8 years ago

Sorry, if you like, you can easily implement it, I'll do the changes in predator-bot branch that is not fit to your project.

ermiyaeskandary commented 8 years ago

@alexzeit Sorry as well then. If you want to contribute and help, then make a PR. If not, then it's your choice. :+1: