Add "EliminatedBy" to snake eliminations. (#11)

* add eliminated by

* add test

* make sure largest snake is listed as eliminator on head to head collisions

* remove unused type def

* Reduce memory usage during elimination checks.

Co-authored-by: Daniel Steuernol <dlsteuer@gmail.com>
This commit is contained in:
Brad Van Vugt 2020-02-19 11:44:48 -08:00 committed by GitHub
parent a241c526b2
commit 8153585f57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 70 additions and 21 deletions

View file

@ -17,6 +17,7 @@ type Snake struct {
Body []Point
Health int32
EliminatedCause string
EliminatedBy string
}
type BoardState struct {