Remove Eliminated Snake from the send payload (#49)
This commit is contained in:
parent
97fbcb3376
commit
dabbe7dfb5
1 changed files with 3 additions and 1 deletions
|
|
@ -393,7 +393,9 @@ func snakeResponseFromSnake(snake rules.Snake) SnakeResponse {
|
||||||
func buildSnakesResponse(snakes []rules.Snake) []SnakeResponse {
|
func buildSnakesResponse(snakes []rules.Snake) []SnakeResponse {
|
||||||
var a []SnakeResponse
|
var a []SnakeResponse
|
||||||
for _, snake := range snakes {
|
for _, snake := range snakes {
|
||||||
a = append(a, snakeResponseFromSnake(snake))
|
if snake.EliminatedCause == rules.NotEliminated {
|
||||||
|
a = append(a, snakeResponseFromSnake(snake))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue