Keep the Wolves away from the sheep.
You must work with a partner or in a three for this lesson.
Activity 1: Secure the Chicken Coup
You will need to use more than 64 blocks of Wire to secure the chicken coup. So, if you look in the first repeat, there is a 'constant' re-fill of the wire into the Agent's inventory.
Activity 2: Moving the Sheep
Moving the sheep from one pasture to the other.
How are you going to move the sheep? What code do you need? What are the steps you need to take?
2.1 You must work with a partner on this mission. You need to talk the steps through to complete this.
2.2. You will need a board, pen and eraser to draw the steps though to compare the code to mine.
2.3. Look at my code. I think there is a mistake in the code. Once you have written you code and tested it, is it the same as mine or is it different?
Activity 3: Hazing
What is hazing?
Hazing is moving around the area to keep the wolves away from the sheep. It also means making noises to startle the wolves so that they move away when the bell goes off.
3.1. How will you make the bells go off when a wolf goes near it? Can you use something to make the bell go off?
3.2. How does my code look? Are there any mistakes in it? Is your code neater or better?
Activity 4: Clearing the area
Wolves are sneaky.
Wolves will try to sneak up on the sheep to eat them.
You need to code the agent to remove the foliage around the area so that there is less of a chance of the sheep been eaten by the sneaky wolves.
4.1. There are a few ways to do this. You can check my code here to see if there is a better way of completing this task.
Use a board, pen and eraser to draw out the plan and code it. Is yours better?
Learning Intention:
Can I code repeating Algorithms?
Can I code 'loops and NOT coditions'?
Can I code Conditionals?
Success Criteria
I know the importance of computer science and repeating code.
I can Block-program in
Microsoft MakeCode.
I can change our Minecraft world through coding.
Teacher Resources
Educator Guide