Skip to content
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

Improve avoiding enemies #7

Open
iam10k opened this issue May 1, 2016 · 0 comments
Open

Improve avoiding enemies #7

iam10k opened this issue May 1, 2016 · 0 comments

Comments

@iam10k
Copy link

iam10k commented May 1, 2016

Currently the threshold for avoiding other snakes is any snake set at 1. To improve this in the future though snakes should scale their threshold based on their current size. So the larger the higher the threshold is. 1 is also overall a little to low. During testing with it, a threshold of 1.5-3 (just the ranges I tested at various sizes) works great with 3 being used while the snake is smaller and has a better turn radius and 1.5 being used when my snakes was around 8,000 in length.

I am going to work on an equation that could be used here. A linear equation should do the trick I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant