Testing pushing to another branch

This commit is contained in:
raul 2024-02-15 09:12:34 +00:00
parent 8beacab86b
commit 0bb8fee9a3
1 changed files with 5 additions and 0 deletions

View File

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