The Burger Game
Purpose
The burger joint needs your help!
They have hired a robot and you need to train the robot to make burgers.
The robot is not a human, and therefore knows nothing about what a good burger is.
You now need to make a detailed instruction that the robot can understand and follow.
Task
- Create your “items” / elements for your burger.
Start by finding all the “items” /elements that need to be in a burger.
E.g. bread, lettuce, ketchup etc.
Write each part on individual pieces of paper – you can also draw them. - Create “actions”
Find all actions needed to make a burger.
E.g. lift, move, stop, shake, etc.
Write each action needed on individual pieces of paper.
Write them as coding blocks, if you prefer. - Create “conditions” – if/do
Write the necessary conditions you need in your code.
E.g.: If the ketchup creates a full circle then stop. It might also be necessary to insert a “loop”. A “loop” is about time and control.
E.g. a wait block can be important in between some codes. - Design your code for the robot to make a burger by using your items, actions,
conditions and maybe even a loop. - Check if your code works on your parents – they can act robots for you to test.
- Change your code if something doesn’t work.
Test yourself!
What can you add to your code for the robot to work alone and make 100 burgers in a row?