Documentation ¶
Index ¶
- Constants
- func FormatArr(arr []int) string
- func GetMountain() ([]int, int64)
- func GetMountainS(seed int64) ([]int, int64)
- func GetMountainSWH(seed int64, width, height int) ([]int, int64)
- func GetMountainSnowString(mountain, snow []int) string
- func GetMountainString(mountain []int) string
- func GetMountainW(width int) ([]int, int64)
Constants ¶
View Source
const ( MountChar = "█" SnowChar = "❄" MaxHeight = 30 // real maxHeight == maxHeight + 1 MaxWidth = 99 // real maxWidth == maxWidth + 1 )
Variables ¶
This section is empty.
Functions ¶
func GetMountain ¶
Returns an int slice that represents the topographical map of a randomly generated mountain range.
func GetMountainS ¶
Returns an int slice that represents the topographical map of a randomly generated mountain range with a given seed.
func GetMountainSWH ¶
Returns an int array that represents the topographical map of a randomly generated mountain range with a fixed width, max height, and given seed
func GetMountainSnowString ¶
returns a nicely formatted string representation of a mountain range with snow on it
func GetMountainString ¶
returns a nicely formatted string representation of a mountain range
func GetMountainW ¶
Returns an int array that represents the topographical map of a randomly generated mountain range with a given width
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.