instructions

We are faced with two paths, both having a happy ending: A happy and stuffed Miorița.

She is very hungry, and needs to be led to the nearest patch of grass. However, there may be a fence in the way.

We should come up with one set of instructions that will tackle both scenarios.

commands

if() && else

canMove()

canMove()

challenge

Help Miorița reach the closest patch of grass so she can finally eat.

Delete the code that already does this and come up with the best way to do it.

Miorița

2/4

Conditional statements