ivan1993spb / snake-server

Snake-Server is a pure Go implementation of the famous arcade game 🐍
https://snakeonline.xyz
MIT License
33 stars 3 forks source link

Change the hunting rule #24

Closed ivan1993spb closed 5 years ago

ivan1993spb commented 5 years ago

Now a snake can eat another snake if the first snake has eaten at least one apple and the second snake hasn't eaten any food. It would be better if big long snakes could eat any snake smaller then them but not only the smallest just started snakes. It seems to be right to use this formula:

can_I_eat = my_len >= a_snake_len^2