Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HangmanStages = []string{
` _______
|/
|
|
|
|
|
|
|
__|________
| |
`,
` _______
|/
| ( )
|
|
|
|
|
|
__|________
| |
`,
` _______
|/
| ( )
| |
|
|
|
|
|
__|________
| |
`,
` _______
|/
| ( )
| |_
| \\
|
|
|
|
__|________
| |
`,
` _______
|/
| ( )
| _|_
| / \\
|
|
|
|
__|________
| |
`,
` _______
|/
| ( )
| _|_
| // | \\
| |
|
|
|
__|________
| |
`,
` _______
|/
| (_)
| __|__
| // | \\
| |
| // \\
| // \\
|
__|________
| |
`,
` _______
|/ |
| (_)
| __|__
| // | \\
| |
| // \\
| // \\
|
__|________
|__________|
* * * RIP * * *
`,
}
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { Attempts int MaxAttempts int Letters map[rune]struct{} WrongLetters map[rune]struct{} UniqueErrors int Word Word HangStages []string }
func (*Game) CheckLetter ¶
func (*Game) IsGameOver ¶
func (*Game) IsUserLost ¶
func (*Game) WrongLettersToString ¶
Click to show internal directories.
Click to hide internal directories.