Line: 1, Column: 1
Commands:
- step: gardener steps forward
- turnLeft: turn gardener left
- plant: plant a flower (max 10)
- pick: pick a flower (max 10)
Conditions:
- isWall: is the gardener facing a wall?
- isNorth: is the gardener facing north?
- isPlant: is the a plant where gardener is standing?
- not: negates condition
Condition example - if the gardener is not facing a wall, make a step
if not isWall { step }
Repeat loop exemple - make turnLeft ans step 3 times
repeat 3 { turnLeft step }
while loop exemple (conditional loop) - walk until gardener faces a wall
while not isWall { step }
function example - turn back
fnc turnBack { turnLeft turnLeft } turnBack