ui

package
v0.0.0-...-dd43f55 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Reset  = "\033[0m"
	Red    = "\033[31m"
	Green  = "\033[32m"
	Blue   = "\033[34m"
	Yellow = "\033[33m"
)
View Source
const DefaultWidth = 80

Variables

This section is empty.

Functions

func BlueText

func BlueText(text string) string

func CenterText

func CenterText(text string) string

func DisplayArt

func DisplayArt()

func DisplayAvailableActions

func DisplayAvailableActions()

func DisplayHelp

func DisplayHelp()

func DisplayMessage

func DisplayMessage(message string, colorFunc func(a ...interface{}) string)

func DisplayOutcome

func DisplayOutcome(g *game.Game)

func DisplayRoundSummary

func DisplayRoundSummary(round int, g *game.Game)

func GetPlayerAction

func GetPlayerAction(name string) string

func GetRounds

func GetRounds() int

func GetTerminalWidth

func GetTerminalWidth() int

func GreenText

func GreenText(text string) string

func LoadArt

func LoadArt() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳