Question: Advanced Random walks

i want to write a program to simulate a walk of a drunken sailor who walks out of a bar at the centre of a city. the city has a regular pattern of 24\24 square blocks. the sailor doesnt know where he is going and how to exist teh city. the question is how many blocks will he have to walk to exit the city?

let him start at the centre of the city and assume that he exists the city when he reaches either north, east, south or western borders. it can happen that he wlks over pArts thta he already traversed. make a few plots  of the typical paths that he might follw to exit the city. how many blocks does he need to walk to exit the city?

 

Please Wait...