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

task execution branch: seek coord until then #306

Open phrokton opened 8 years ago

phrokton commented 8 years ago

In the task execution branch

Would it be better to have :

Seek coord, until food density greater than, resume when food density less than

Additionally in seek coord mode I have watched snake plough through piles of food ignoring the bounty.

clemens-tolboom commented 8 years ago

@phrokton your description is a little fuzzy. Why should snake go to (x,y) until food density is enough?

I would opt for 'Goto food density level X' which is when not found nearby either inward or outward.

phrokton commented 8 years ago

'Goto food density level X'

Yes, @clemens-tolboom , I would much prefer a head towards [center to find] better food but the fork already has a MoveToXY. Better food can be defined in SnakeParamsBySize.

I watched several instances fritter about on the periphery. Returning hours later than game was still in play and the bot had not grown much more with sparse edge food.

There is not a priority level setting for MoveToXY. But for seek 'density level X' bot ought not fly past a juicy carcass.