Dear Jerry,
Your job is to make a robot that can clean a room. It can be any type of cleaning tool! The things you should consider when building your decision tree are, what the robot’s main task is, what may get in its way and what questions it can ask to make sure it overcomes its obstacles and completes its task!
Name the robot, then name its purpose and then write the decisions it will make!
For example:
Jerry’s VacuuBOT
When placed at an entrance, VacuuBOT moves one foot at a time and then cleans the space underneath it.
- Am I at the netrance and facing the room?
- if no beep and blink green light
- If yes:
- Is there something blocking me within one foot ahead of me?
- If no move one foot ahead
- If yes:
- Is there something one foot to the right of me?
- If no move one foot right
- If yes:
- Is there something one foot to the left of me?
- If no move one foot left
- If yes:
- Is there something one foot behind me?
- If no move one foot back
- If yes: return to first question