Open an-OK-squirrel opened 9 years ago
Or be able to handle all of its blobs at once.
Should we just put buffers around them when they are bigger than the bot? The bot could handle virus buffers differently than enemy buffers, it could follow around it using tangents instead of away like with enemies.
Yeah, virii (?) don't move.
Yes, that would be good.
If I start this, what branch should I fork? Should I fork bufferless because that looks like the way we are going?
Bufferless doesn't have everything yet. Could you check out food-clusters and see if everything works? If so, merge that into master and then from master.
Are you guys still able to use stuff like angle ranges? If so, the way I solve viruses (and obstacles) works quite nicely in the current beta: https://github.com/Apostolique/Agar.io-bot/blob/master/beta.user.js
I couldn't figure out how they worked. I'll check it out. (Thanks for checking out our)
Normally when my bot runs away from enemies, it finds the angles in which it cannot run towards, then goes the other way: http://i.imgur.com/dprLCZe.png
In the case of an obstacle like a virus, instead of going the other way, if you're ever going towards a virus, it shifts the direction angle instead so that you're not running directly towards it: http://i.imgur.com/VMgEbp2.png
Cool! I don't really know how we'd implement angles because of the way our bot treats enemies and stuff. I'll try to figure it out.
Also, while your here, can you check out #49?
*you're
Seems pretty good so far, moves really fluidly. That version above made it to size 400 on first try. (It then proceeded to run in a virus.)
The one on food-clusters?
Yep.
Hm... Okay! Maybe I'm being to harsh on it.
It does seem to run into enemies though.
That was the main problem for me. Also, it seemed to just go to random points on the grid sometimes, you have any clue why?
Just by looking at it play, I couldn't figure it out.
Huh.
Did you try the bot on master?
I did try implementing angle ranges, but they were working kind of weirdly for me.
I also have it run into other players sometimes, probably because of the way vectors work (-> + <-- means a net movement of <-). @an-OK-squirrel , I don't think your solution of moving <= 10 spaces worked, no offense meant. The bot will still move, but it'll just move to the "less dangerous" bot and then get killed. I'll try to think of a way to fix it... Maybe see if it's stuck between two players at certain angles?
That solution was mine :P
oops
No offense taken.
Now that agario-bot (needs a name :P) is getting bigger, it needs to be able to avoid viruses (very minor)