change all "int32" types to "int" (#75)

This commit is contained in:
Torben 2022-05-25 11:17:41 -07:00 committed by GitHub
parent 2d8342018e
commit 3bd1e47bb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 176 additions and 176 deletions

View file

@ -43,7 +43,7 @@ type Editor interface {
RemoveHazard(rules.Point)
// Updates the body and health of a snake.
PlaceSnake(id string, body []rules.Point, health int32)
PlaceSnake(id string, body []rules.Point, health int)
}
// An Editor backed by a BoardState.
@ -91,7 +91,7 @@ func (editor *BoardStateEditor) RemoveHazard(p rules.Point) {
}
}
func (editor *BoardStateEditor) PlaceSnake(id string, body []rules.Point, health int32) {
func (editor *BoardStateEditor) PlaceSnake(id string, body []rules.Point, health int) {
for index, snake := range editor.Snakes {
if snake.ID == id {
editor.Snakes[index].Body = body