thanks for your help
i am stuck again now on trying to get the getDirection function. this part i am striggling with as i have very little coding knowledge and am not too sure how to code it any help would again be extremely grateful or just a prod in the right direction here is what i am trying to do:
Code:
//GET DIRECTION FUNCTION
int getDirection(int room){
printf("\nType the letter of the direction you wish to go in \nOr type q to quit");
//To HERE*
user presses "n"
computer looks at current room // scanf maybe???
if exit[North]> 0
goto corresponding room
else if exit north = 0
printf("\ncannot go in this diresction, please select a different direction")
if completely wrong key pressed (so not n,e,s,w or q)
printf("\ninvalid key, please only use n,e,s,w or q")
//LOOP FROM HERE*
}
i understand a lot of this is not programming language, i am trying to show how i want it to work with what little programming knowledge i have. the example above is jus for the press of "n", im guessign once i have this "e", "s", "w" and "q" should all be fairly similar and possible for me to work out.
thanks so much for your help so far! if you cannot help anymore it is ok the help that you have gave has been invaluable and has been greatly appreciated