util

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Faint = iota
	White
	Red
	Green
	BrightGreen
	Blue
	Yellow
	Magenta
	Cyan
	WallColor
	WaterColor  = Blue
	PlayerColor = BrightGreen
	Ghost       = Red
	Char
	Nothing

	WallPortrait   = '#'
	WaterPortrait  = '~'
	PlayerPortrait = 'P'
	GhostPortrait  = 'G'

	Win        = 1
	Lost       = -1
	Gaming     = 0
	GhostSpeed = time.Second / 3 // 幽灵移动速度,time.Second / 3 代表每秒移动 3 步
)

Variables

This section is empty.

Functions

func GetColor

func GetColor(color int) termenv.ANSIColor

func IsAlphanumeric added in v0.0.3

func IsAlphanumeric(chr rune) bool

func MinFloat

func MinFloat(nums ...float64) float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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