Hey, members!
I have the same problem. I have to admit that I am a Newbie. Since I have most experience in C#, i try to implement it there. I have used your code and translated it into c# language. My "maze" class is called "_GridNode". When I tried to play, after a few steps my rat isnt going further and remains in a loop. ( e.g. up and down). My question is: the variables currentCol respectively currentRow... are these dynamically changin (=view point of the rat) or are they the right north-oriented directions, which means they only represent the coordinates without any orientations? And the Output of the code are only the new x and y -values for the rat in the maze- Am i correct?
According to my code:
North:= Nodewalls[1]
East:= Nodewalls[2]
South:= Nodewalls[3]
West:= Nodewalls[0]
I have the following coding used: _GridNode[x,y].Nodewall[1]=0 ... would mean that northern field is possible to visit.
m.xcoordinate and m.ycoordinate are the start coordinates of the rat... they are previously generated randomly.
"m" is an instance of the class rat.
My code is the following, if it helps:
Thanks in advance,
br David