Add TeamRuleset (#13)

This builds on work done by @dlsteuer in #10
This commit is contained in:
Brad Van Vugt 2020-02-20 10:24:44 -08:00 committed by GitHub
parent 8153585f57
commit 44b6b94666
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 420 additions and 15 deletions

View file

@ -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)
}