instructions

We need to remember that repeating code is highly unproductive. This is why, most of the time, we need to resort to reusable snippets of code, called functions.

To train Miorița, we need to write some functions and call them every time we need to execute the code.

commands

function

pick("hatchet")

drop("hatchet")

challenge

Create your own instructions and help Miorița play fetch.

Miorița

4/4

Functions