-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get out of sticky situations a little bit better #293
base: master
Are you sure you want to change the base?
Conversation
"discard large cells as being dangerous when no good angles" so basically, die? |
Bad commit title I guess I meant ignore the splitkill avoiding mechanics unless the larger players are legitimately likely to splitkill you when you are in a bad situation. |
The way I had planned to fix this was to stop adding enemies as bad angles as soon as no good angle was found. Right now, if you are in an enemy's threat circle, the enemy is added as a bad angle. If too many enemies are around you, then it becomes impossible to find a good angle to navigate towards to. The way to fix this is by sorting enemies from closest to furthest. Then add the closest enemies one by one. As soon as you're about to block all possible good angles (when the bad angles do a full 360), then stop. This works in theory because it makes you handle the closest enemies right away. Then as you move and get in better positions, you'll restart handling enemies further away. |
So if I understand correctly, this works like repulsion: We'll be an average distance away from all enemies, instead of close to one enemy, and farther away than 5 others (for example). |
You can see it as a repulsion system if you want. I see it as a way to only chew as much as you can bite. |
This seemed to work as a good enough temporary fix until a better patch could be made but I do agree it is not ideal. |
If I understand correctly, you created a global variable called "notSplitDangerValue" that acts as a threshold value. You can then help find an escape solution by lowering it. |
Yes that is correct. |
I was thinking that when you are below about 100, you can have the bot hide inside viruses if it's a very bad situation, and then when the other person gives up, the bot can maneuver safely out of the area. |
What would happen with my luck? Some tiny cell wouldn't notice the bot in the virus the bot then eats the smaller cell trying to hide in the virus the bot then gets big enough to be split by the virus and then boom game over... just saying. |
There isn't much incentive to hide inside a virus when you can just run away elsewhere. |
"Some tiny cell wouldn't notice the bot in the virus the bot then eats the smaller cell trying to hide in the virus the bot then gets big enough to be split by the virus and then boom game over... just saying." That's only if the other cell's mass was enough to make you split at about 140. "There isn't much incentive to hide inside a virus when you can just run away elsewhere." Yeah, but then you run the risk of someone bigger than you splitkilling you, when you can just stay safe inside of the virus until they give up and leave. |
if big guys are all around you and you have no good angles what are you going to do? Ignore if they are going to splitkill you unless they very likely are going to.