-
Notifications
You must be signed in to change notification settings - Fork 0
/
Help.go
27 lines (24 loc) · 788 Bytes
/
Help.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package hangman
import "fmt"
func DisplayHelp() {
helpText := `
Hangman Game Help:
To start a new game:
go run main/main.go <filename> [--letterFile <letterFile>]
Optional Flags:
--letterFile <letterFile> : Specify the file containing ASCII art for letters.
--startWith <saveFile> : Resume the game from a previously saved state.
Game Commands:
Enter a single letter or a word to make a guess.
Type "STOP" to save and exit the game.
Example:
$ go run main/main.go words.txt --letterFile ascii.txt
$ go run main/main.go words.txt --letterFile ascii.txt --startWith save.txt
$ go run main/main.go help
Attempts :
You have ten attempts to beat the game
A wrong guessed letter count for one attempts
A wrong guessed words count for two attempts
`
fmt.Println(helpText)
}