Wow! When we finish this adventure, we will be half of the way! It is time to identify all the perils of the path. I know we can do it!
The plan is to move one step forward and print the numbers of mud cells we move through to find the coconut!
We have to move forward and count the different types of perils. In the end, print the number of perils you found.
Well, now we have to get the coconut. We have to count the puddles of mud and the holes, but wait! We have to use the type of the hole if the number of holes is higher than the number of puddles of mud. Otherweise, we have to use the type of the puddles of mud.
We have to get the coconut and count how many holes and puddles of mud we find along the way. If we find more holes than puddles of mud, we will need to turn right to get the coconut. Otherwise, we will move to the left to collect it.
As was done before, when we get to the end of an adventure, we need to go around to collect food while we draw another letter on the ground so our friends know where we have been.