Documentation ¶
Index ¶
- Constants
- func FormatColorString(str string, color Color) string
- func OutputResults(result *sgc7game.PlayResult, mapSymbolColor *SymbolColorMap)
- func OutputScene(str string, scene *sgc7game.GameScene, mapSymbolColor *SymbolColorMap)
- func StartGame(game sgc7game.IGame, stake *sgc7game.Stake, onResult FuncOnResult) error
- type Color
- type FuncOnGetChar
- type FuncOnResult
- type SymbolColorMap
Constants ¶
View Source
const ColorBlue = "\033[34m"
View Source
const ColorCyan = "\033[36m"
View Source
const ColorGreen = "\033[32m"
View Source
const ColorPurple = "\033[35m"
View Source
const ColorRed = "\033[31m"
View Source
const ColorReset = "\033[0m"
View Source
const ColorWhite = "\033[37m"
View Source
const ColorYellow = "\033[33m"
Variables ¶
This section is empty.
Functions ¶
func FormatColorString ¶
func OutputResults ¶
func OutputResults(result *sgc7game.PlayResult, mapSymbolColor *SymbolColorMap)
func OutputScene ¶
func OutputScene(str string, scene *sgc7game.GameScene, mapSymbolColor *SymbolColorMap)
Types ¶
type FuncOnResult ¶
type FuncOnResult func(*sgc7game.PlayResult)
type SymbolColorMap ¶
func NewSymbolColorMap ¶
func NewSymbolColorMap(paytables *sgc7game.PayTables) *SymbolColorMap
func (*SymbolColorMap) AddSymbolColor ¶
func (mapSymbolColor *SymbolColorMap) AddSymbolColor(s int, c Color)
func (*SymbolColorMap) GetSymbolString ¶
func (mapSymbolColor *SymbolColorMap) GetSymbolString(s int) string
Click to show internal directories.
Click to hide internal directories.