add ruleset data to the calls made by the cli (name and version) (#32)
* add ruleset data to the cli (name and version) * remove double ruleset tracking with royale mode
This commit is contained in:
parent
d750b08317
commit
f31bdff4b8
11 changed files with 86 additions and 29 deletions
|
|
@ -10,6 +10,9 @@ type StandardRuleset struct {
|
|||
MinimumFood int32
|
||||
}
|
||||
|
||||
func (r *StandardRuleset) Name() string { return "standard" }
|
||||
func (r *StandardRuleset) Version() string { return "1.0.0" }
|
||||
|
||||
func (r *StandardRuleset) CreateInitialBoardState(width int32, height int32, snakeIDs []string) (*BoardState, error) {
|
||||
initialBoardState := &BoardState{
|
||||
Height: height,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue