Hello I am trying to make a hangman game where I ask the user to choose between a set of themes and then randomly select a word for the user to solve. However I am not sure how I am suppose to create a txt file that would allow me to do this
I wrote my themes (3) and words associated with each one (8) but I dont know if this is the proper way to write it or if it is how I would be able to display it properly.
sports- baseball soccer basketball hockey golf football lacrosse tennis
animals- dog cat deer fox fish coyote monkey zebra
trees- maple oak cherry hickory apple pine walnut ash
Make 3 vectors of strings to store your words, then prompt the user to select one of them. Shuffle the vector, afterwards pick a random word from the chosen vector.