New course! Every coder should learn Generative AI!
Try a free lesson+ 9
I don't have the code, but think about it. With a break down of the game you can write the code without UI.
Break down:
* You need a list of words
* choose a random word from the list
* get a char as user input
* check all index's of the word to see if it has the char. Display it accordingly, but if there is no char in the word then the user looses a life.
* loop until all letters are found or user runs out of lifes
* make sure the user cannot input the same char twice