Implementing an Algorithm

Karla and Kenny live in the southwest corner of a town, whose roads are laid out in a grid. They decided to head out for an evening to either the comedy club, ice cream shop or sushi restaurant. If they walked around based on the following rules, where is the first place that they will end up?

Karla and Kenny live in the southwest corner of a town, whose roads are laid out in a grid. They decided to head out for an evening to either the comedy club, ice cream shop or sushi restaurant. If they walked around based on the following rules, starting at step A, where is the first place that they will end up?

Karla and Kenny live in the southwest corner of a town, whose roads are laid out in a grid. They decided to head out for an evening to either the comedy club, ice cream shop or sushi restaurant. If they walked around based on the following rules, where is the first place that they will end up?

Karla and Kenny live in the southwest corner of a town, whose roads are laid out in a grid. They decided to head out for an evening to either the comedy club, ice cream shop or sushi restaurant. If they walked around based on the following rules, where is the first place that they will end up?

Karla and Kenny live in the southwest corner of a town, whose roads are laid out in a grid. They decided to head out for an evening to either the comedy club, ice cream shop or sushi restaurant. If they walked around based on the following rules, where is the first place that they will end up?

Step A: Move north as far as 3 blocks. Go to step B.

Step B: Move east as far as 2 blocks. Go to step C.

Step C: Move south as far as 1 block. Go to step D.

Step D: Move east as far as 2 blocks. Go to step A.

Note: "As far as" includes zero. I.e. if you're at step B and it is not possible to move East, you go to step C.