DEV 953: Add basic maps support to CLI (#74)
* remove squad support and switch to using pipelines only in RulesBuilder * remove spawn_food.standard from legacy ruleset definitions * bugfix: Royale map generates Standard food * add maps support to CLI * add automated tests for all registered GameMap implementations * update README
This commit is contained in:
parent
3bd1e47bb4
commit
1adbc79168
27 changed files with 565 additions and 1371 deletions
|
|
@ -18,7 +18,6 @@ var standardRulesetStages = []string{
|
|||
StageStarvationStandard,
|
||||
StageHazardDamageStandard,
|
||||
StageFeedSnakesStandard,
|
||||
StageSpawnFoodStandard,
|
||||
StageEliminationStandard,
|
||||
StageGameOverStandard,
|
||||
}
|
||||
|
|
@ -387,6 +386,7 @@ func growSnake(snake *Snake) {
|
|||
}
|
||||
}
|
||||
|
||||
// Deprecated: handled by maps.Standard
|
||||
func SpawnFoodStandard(b *BoardState, settings Settings, moves []SnakeMove) (bool, error) {
|
||||
if IsInitialization(b, settings, moves) {
|
||||
return false, nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue