i am trying to write a code for a sinple hangman game with just one word... mouse, without using strings. the pln is the word is a array then will have a second array to hold 5 -'s, then user will be asked to input characters and if they in the word will be placed in right place else they will be asked again and again unless the user inoputs * to stop. When the word is discovered the amount of tries will be displayed.
I dont want to use any global data oir strings..just functions and arrays
so far i have come up with the following code to recognise the correct characters..but there seems to be some faults with it so can anyone help me out with what that may be?
also how would i go about making the correct letter go to the correct space? and count the amount of tries.
Thank you for your help!