battle-snake / battle_snake

AI Programing Competition Game Server
GNU Affero General Public License v3.0
12 stars 11 forks source link

Feature/variable snake length #1

Closed nbw closed 6 years ago

nbw commented 6 years ago

Summary

Adds an adjustable _snake_startlength parameter, instead of the default length 3.

Code summary

Screenshots

screenshot 2018-01-17 23 32 31 screenshot 2018-01-17 23 34 01

Background and impetus for PR

My team is a sponsor for battlesnake this year and we're hoping to have a bounty snake challenge that is like tron, where the tail never moves. I'm sure you know what that is, but to clarify dig this gem:

One way to accomplish that is to set the _snake_startlength to a really high number. The rest is just on us to make a decent snake.


Just a personal comment, the code you wrote and the project is really sweet. Really easy to setup and follow. Worked exactly as expected.

Dkendal commented 6 years ago

Hey Nathan!

Thank you very much for this PR, this is actually a feature I've been meaning to tackle for a long time.

Really cool idea for a bounty snake, and thanks for your kind words!