mapgen

package
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBoardByGameCode added in v0.1.0

func GenerateBoardByGameCode(rules game.GameRules) game.Board

func GenerateMap

func GenerateMap(count int, loop bool, verbose bool, rules game.GameRules)

func LogRequestEvent added in v0.1.0

func LogRequestEvent(requestInfo model.RequestInfo, generations int, elapsed time.Duration, gameType string)

func MapGenerationAttempt

func MapGenerationAttempt(gameType game.GameType, verbose bool) game.Board

MapGenerationAttempt attempts to generate a map for the specified game type It is regarded as an attempt, as the randomization can produce maps that are not valid and thus discarded

func ProcessMapGenerationRequest added in v0.1.0

func ProcessMapGenerationRequest(rules game.GameRules, requestInfo model.RequestInfo) (model.Map, error)

Types

type Game

type Game int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL