My program is a game called 'Hangman' finding a word, which added to the program and choosing a word randomly how can i make this possible to write a test case
so far you got: h___
Enter your next letter: a
so far you got: ha__
Enter your next letter: r
so far you got: har_
Enter your next letter: l
Wrong Try Left: 4
so far you got: har_
Enter your next letter: e
Wrong Try Left: 3
so far you got: har_
Enter your next letter: o
Wrong Try Left: 2
so far you got: har_
Enter your next letter: d
so far you got: hard
YAY!!! You Win
I want to add a test case for whole program at once