September 6th, 2010, 10:49 PM
Loops for game: help?
Hello, today I was working on a basic text 'game' (if you can call it a game at this point) to practice some basic techniques with loops, strings, arrays, etc., and what I would like to happen is that every time the user puts in input, it activates something (like 'move north' moves the player north (duh) or 'take note' picks up a note off the ground and prints the text to the console). I know that there should be some way to do this with loops, but at my skill level I'm not exactly a pro with loops, so if possible could somebody tell me which loop would be best for my explained situation and why? Thanks in advance guys.
(PS I tried a 'while' loop and it didn't exactly work out too well, will post code with the while loop if someone asks to see it)
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.