• Create Account

### #ActualInuyashakagome16

Posted 10 October 2012 - 06:57 AM

You really don't "need" any more files to do what you want. You could (because you did state you were a beginner) setup a while loop and some conditional statements and work through the rooms

if(direction == 'n' || direction == 'N')
{
cout << "Moving North through the door";
}


For the locked key situation you could hard code it so certain rooms are always locked:

if(direction == 'e' || direction == 'E')
{
{
cout << "You unlocked the door.";
}
else
{
cout << "The door ahead is locked.";
}
}


EDIT: You "can" if you want the extra files honestly. I figured it would be easier to work with one file at a time till you become more experienced with C++ is all. My apologies.

### #1Inuyashakagome16

Posted 10 October 2012 - 06:51 AM

You really don't "need" any more files to do what you want. You could (because you did state you were a beginner) setup a while loop and some conditional statements and work through the rooms

if(direction == 'n' || direction == 'N')
{
cout << "Moving North through the door";
}


For the locked key situation you could hard code it so certain rooms are always locked:

if(direction == 'e' || direction == 'E')
{