Hey peoples..Im taking C++ for the first time and for my class I'm trying to make a text game. I want it so it asks you which direction you want to go and you have to enter n, s, e, or w. The thing is, it wont matter what direction you type because the outcome is random so it wont be the same game twice. I used strings and an array and ran it with the random generator so each time i get a new message. (for easier explanation, we can call them mess1 - mess5). What Im trying to do is have it give you 3 chances. If mess1 - mess4 show up then you have to try again, but if mess5 shows up then you can move on to part 2 of the game. Right now the program just gives me 1 message then ends. How can I get it to recognize mess1 - mess5 to where you get 3 chances and when mess5 appears then it will move on. Im thinking "If" and "Then" statements will be easier to work with but I dont know how to incorporate them into this thing (Ive only had 8 weeks of C++ and its been mostly debugging). If anybody can make sense of what I just posted and can help I would greatly appreciate it! Thanks