Fix function name and interface tests.
This commit is contained in:
parent
fe2a415cac
commit
68043109a5
4 changed files with 13 additions and 1 deletions
|
|
@ -35,5 +35,5 @@ type SnakeMove struct {
|
|||
type Ruleset interface {
|
||||
CreateInitialBoardState(width int32, height int32, snakeIDs []string) (*BoardState, error)
|
||||
CreateNextBoardState(prevState *BoardState, moves []SnakeMove) (*BoardState, error)
|
||||
IsGameFinished(state *BoardState) (bool, error)
|
||||
IsGameOver(state *BoardState) (bool, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue