parent
8153585f57
commit
44b6b94666
5 changed files with 420 additions and 15 deletions
|
|
@ -34,5 +34,5 @@ type SnakeMove struct {
|
|||
|
||||
type Ruleset interface {
|
||||
CreateInitialBoardState(width int32, height int32, snakeIDs []string) (*BoardState, error)
|
||||
ResolveMoves(prevState *BoardState, moves []SnakeMove) (*BoardState, error)
|
||||
CreateNextBoardState(prevState *BoardState, moves []SnakeMove) (*BoardState, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue