Testing pushing to another branch
This commit is contained in:
parent
8beacab86b
commit
0bb8fee9a3
5
main.go
5
main.go
|
@ -11,6 +11,8 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// This is a branch testing comment
|
||||
|
||||
var (
|
||||
player PlayerStats
|
||||
names []string
|
||||
|
@ -93,6 +95,7 @@ func getLetter(letter string) (isFound bool) {
|
|||
return isFound
|
||||
}
|
||||
|
||||
// TODO: Make gameStatus() prettier
|
||||
func gameStatus() {
|
||||
clear()
|
||||
fmt.Println("Player:", player.name)
|
||||
|
@ -125,6 +128,7 @@ func game() {
|
|||
fmt.Printf("Guess: ")
|
||||
fmt.Scanln(&guess)
|
||||
|
||||
// TODO: Add checking for both wrong and correct characters
|
||||
if getLetter(guess) != true {
|
||||
var isAlreadyWrong bool = false
|
||||
for _, v := range wrongChars {
|
||||
|
@ -170,6 +174,7 @@ func getWord(path string) (word string) {
|
|||
return randName
|
||||
}
|
||||
|
||||
// TODO: Add OS agnostic clearing
|
||||
func clear() {
|
||||
fmt.Print("\033[H\033[2J")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue