Refactor RoyaleRuleset and move hazard damage into StandardRuleset (#50)

* move hazard damage into StandardRuleset

* OutOfBounds -> Hazards

* remove "out of bounds" in comment

* add cases for eating food to hazard damage test
This commit is contained in:
Rob O'Dwyer 2021-08-17 16:47:06 -07:00 committed by GitHub
parent dabbe7dfb5
commit e416384007
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 341 additions and 288 deletions

View file

@ -47,10 +47,11 @@ type Snake struct {
}
type BoardState struct {
Height int32
Width int32
Food []Point
Snakes []Snake
Height int32
Width int32
Food []Point
Snakes []Snake
Hazards []Point
}
type SnakeMove struct {