Today you will work in pairs to complete 8 Minecraft-themed coding activities.
Each activity requires input(), int(input()), if / elif / else, and loops (for or while).
You must:
Work together on every challenge.
Write your code on online-python.com.
Show your completed code to me after each challenge or when you finish them all.
Make sure your programs work correctly with no errors.
Important:
You must finish all 8 activities to complete the challenge.
If you finish correctly, you will each earn 4 House Points.
Good luck, and code like Minecraft champions!
1. Digging for Diamonds (while loop)
You are mining deep under a mountain biome, searching for shiny diamonds before your pickaxe breaks.
Ask the player (input string): "Are you ready to dig? (yes/no)"
Ask (int input): "How many blocks do you want to dig?"
Use a while loop: keep digging until the player says they found a diamond.
Print a success message.
2. Building a Wall (for loop)
Raiders are coming to attack your village — you must build a strong wall of cobblestone to protect it.
Ask (input string): "What material will you use (stone/wood)?"
Ask (int input): "How many blocks high will the wall be?"
Use a for loop to place each block.
Print block placement and material.
3. Hunger Check (if / elif / else)
After fighting mobs all night, you check your hunger bar to survive the next day.
Ask (input string): "What food do you have?"
Ask (int input): "What is your hunger level (0–10)?"
Use if / elif / else to give the right message about hunger.
4. Lava Pit Escape (while loop)
You slipped into a lava river inside the Nether — your armour is burning!
Ask (input string): "Type 'escape' when you find a ladder!"
Ask (int input): "How much health do you have?"
While health > 0, lose health each turn.
Print "Still alive..." and end with "Game Over" when health reaches 0.
5. Farming Crops (for loop)
You're racing to plant carrots and potatoes before a skeleton archer finds your farm at night.
Ask (input string): "What seed are you planting?"
Ask (int input): "How many seeds do you have?"
Use a for loop to plant seeds one by one.
Print planting messages.
6. Monster Battle (if / else)
Night has fallen and a zombie horde and skeleton archers are swarming near your house.
Ask (input string): "What monster are you fighting (zombie/skeleton)?"
Ask (int input): "What is your current health (0–20)?"
Use if / else to tell them the best weapon choice.
7. Treasure Hunt (while loop)
You are exploring an abandoned mineshaft, searching for hidden chests filled with gold and enchanted books.
Ask (input string): "Are you still searching? (yes/no)"
Ask (int input): "How many rooms have you checked?"
While the player says "yes", keep exploring.
Celebrate when treasure is found.
8. Tower Building Challenge (for loop + if)
The king of the village has challenged you to build the tallest tower — higher than the clouds.
Ask (input string): "What will you name your tower?"
Ask (int input): "How many floors will you build?"
Use a for loop to build floor by floor.
Print progress and "Halfway there!" at the halfway point.