Documentation
¶
Index ¶
- Constants
- func BlueText(text string) string
- func CenterText(text string) string
- func DisplayArt()
- func DisplayAvailableActions()
- func DisplayHelp()
- func DisplayMessage(message string, colorFunc func(a ...interface{}) string)
- func DisplayOutcome(g *game.Game)
- func DisplayRoundSummary(round int, g *game.Game)
- func GetPlayerAction(name string) string
- func GetRounds() int
- func GetTerminalWidth() int
- func GreenText(text string) string
- func LoadArt() (string, error)
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 CenterText ¶
func DisplayArt ¶
func DisplayArt()
func DisplayAvailableActions ¶
func DisplayAvailableActions()
func DisplayHelp ¶
func DisplayHelp()
func DisplayMessage ¶
func DisplayOutcome ¶
func DisplayRoundSummary ¶
func GetPlayerAction ¶
func GetTerminalWidth ¶
func GetTerminalWidth() int
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.