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
193 stars 124 forks source link

Intentionally die until spawning in the middle #166

Open ghost opened 8 years ago

ghost commented 8 years ago

I also don't know how to add labels (Github noob) - You can't add labels if you aren't a contributor ~ ErmiyaEskandary

chancity commented 8 years ago

It's already does that when picking food.

CJBoey commented 8 years ago

Spawning at middle doesn't necessary make the bot performs any better. Also the bot performs badly at place where there are a lot of snakes around it, it mostly just spinning in circle and afraid to get those dead snake (when the bot is big enough >5k)

ghost commented 8 years ago

@CJBoey its for manual use

tjorim commented 8 years ago

I don't think that spawning untill you are in the center would be very useful.

ghost commented 8 years ago

@tjorim it can be so you can get mass faster then move out

kakol20 commented 8 years ago

While it's true that food appear more in the middle however, it leaves you more vulnerable to dying and will more likely be targeted by the circle of death.

ghost commented 8 years ago

Yes but it's easier to get kills so you become big and then leave the mid

ChadSki commented 8 years ago

Find out the size of the food relative to your head diameter

The physical size of food seems to have more to do with zoom artifacts -- when you zoom out, food stays the same size on screen and appears larger.

Drflash55 commented 8 years ago

@ChadSki Like you said about how the food appears larger when zoomed out, there's not much you can do about that. You would need to have the game refresh the size of the food so that it's proportionally displayed correctly.

vikasTmz commented 8 years ago

Isn't the game tracking the performance from an IP? I've noticed the better I perform the more chances of spawning in the center. Seems like a strategy for them to let bigger/better players come in the center, so they will be encouraged to play further. And they also might be tracking the food cluster size, so if you've had a long game , they'll spawn you next to big food cluster in any server.