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

Question about Collisions #33

Open
exzizt opened this issue Feb 3, 2018 · 3 comments
Open

Question about Collisions #33

exzizt opened this issue Feb 3, 2018 · 3 comments

Comments

@exzizt
Copy link

exzizt commented Feb 3, 2018

Are head-on collisions resolved first, then all other collisions are considered equal and resolved next?

For example:

image

If 7 and 9 have a head-on, 9 will kill 7--if the brown snake moves right, will it survive since 7 is killed in the head-on collision? Or, will it and 7 die in this case?

What I mean by all other collisions except head-ons being equal is, for example, brown and 7 both turn right--will they both die (brown collides with 7 and 7 collides with itself), or are self-collisions resolved first, therefore brown will survive?

Thanks for your help.

@daniel-swu
Copy link

All collisions are evaluated together, so there is order dependent operations. So in your example brown will still die.

@exzizt
Copy link
Author

exzizt commented Feb 7, 2018

Thank you.

@brandonb927
Copy link

@exzizt we've moved development work over to https://github.com/sendwithus/battlesnake-server/ and further issues should be addressed over there. Reach out if you have questions or issues at all!

Cheers 🍻

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

3 participants