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

Implement Auto-Circling toggle #324

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi developers, first i wanna thank you for your awesome tool :+1: ,

it would be cool if you can add a function that lets the snake circle arround itself. How the circle shouldn't be: the snakes head right inside its body, because that would make the snake shrink quickly over time. Instead, let it circle (sankewidth/50-1) pixels outside of the body. This way, the snake will nearly(!) not shrink. For people who are doing the "big circle of death" to get really really big (above 500k, my current personal best is 350k) this could be a GREAT tool if they need to go to toilet, get something to eat or even take the dog for a walk (if big enough, why not? :P) or if they just need a break.

Further details: To be able to toggle the function, ppl should prebuild the big circle and as soon as they reach their back end, they can press the hotkey and the snake starts to follow ~20px inside its back end and (sankewidth/50-1)px outside of its body.

If you dont leave your head stick out more than half your width, you cant be killed.

This would just be a helper tool ofc, people would still need to get the starting score of ~50-100k manually, and if they enable the tool and never disable it, they would still shrink to zero.

khumarahn commented 8 years ago

Hi, something like this is implemented in https://github.com/j-c-m/Slither.io-bot

ghost commented 8 years ago

Can you explain how to use it in the manner i described above? I cant find such a function.

khumarahn commented 8 years ago

Let it run, it should start circling after 5000, after it builds a circle. You can take control at any time by disabling the bot.