in a way yes, i guess it is the same principle, but i dont need to draw anything i think that is later on in the book, i have just been given a word in a string that i need to get the user to figure out, but its not very clear
neptune2k
Posts
-
Comparing user input to array characters -
Comparing user input to array charactersI have an array of letters which’s makes a word and I was wondering how I could compare a user’s input letter against the letters in the array so when running it would display something like this Example ** Word to be guessed in array – train ** User inputs letter a Displays _ _ a_ _ User inputs letter n Displays _ _ a _ n User inputs letter t Displays t _ a _ n And so on until the word is complete. If some1 could provide an example I could follow id be most grateful as I purchased a book a few days ago on c# programming and this is one of the tasks it doesn’t really give much info on how to do it. i know it uses a loop to move along and check each character but im not sure on this. thanks :)
-
C# Array Problemthanks guys, thats really helped, i get where i was going wrong now i know where to come in future if i hit any problems :)
-
C# Array ProblemHey, wonder if any1 can help me, its a fairly simple issue to deal with so im told but ive spent ages trying to work this out, but havnt got anywhere.:(( So was wondering if sum1 could lend a hand. Basically ive an array of strings and i want to randomly select a word out of this array Once the word is selected i then need to split the word into separate characters, so I can check the users input against each letter until they finally guess the word I know it seems alot to ask, but id really appreciate it if sum1 could provide some example I could follow in order for me to get mine working... Thanks in advance Neptune