Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* An empty wordlist.txt could be provided, in which case hangman should fail because no lines can be read * Also, there was no code after the read-words loop to check if $word was actually given a value * Rewrite read-words loop without the need for $line_num variable * test1: create empty wordlist with "touch wordlist.txt" * test2: create a list with 1 word: "echo hey > wordlist.txt"
- Loading branch information