hello everyone, i'd like some help with a program i have to solve..i must make a program which solves a maze by using the "right-hand rule" solving method...
they've asked me to make the maze in a 2-dimentions array and make and use 5 functions:
void moveforward( );
void turnright( ); /*turns right WITHOUT moving*/
void turnleft( ); /*turns left WITHOUT moving*/
int isfacingwall( ); /*TRUE if he faces a wall*/
int isoutside( ); /*TRUE if he has escaped the maze*/
the initial maze should be like this:
and the escape path should be like this:
please, if someone has any ideas let me know!!