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:
parent
dabbe7dfb5
commit
e416384007
8 changed files with 341 additions and 288 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue