A Robot Butler

Due Date:  Monday February 21, 2000 at 8:00 am

Assignment:
The budget is improving but we are still not solvent. The gardener bots are making some money but we need more (sound familiar???) It occurred to the mgmt. that a butler-bot would also help us in our budgetary struggles. Marketing has told us that having a robot butler that would close the windows when a storm approaches would make lots of money so we are going to design the prototype. Here's the deal...

The room is rectangular of unknown length and width. There are an unknown number of windows in the room at unknown places. The windows can be any width.. There are no corner windows - this is important. R&D has built a window-beeper that can be placed in front of each opening to keep out the wind, rain, snow, and bugs.

The robot will always start in the northeast corner of the room facing West. The robot will have exactly enough beepers to do the job - no extras. The robot must put only on beeper in front of each window that is closed. Remember, we are on a tight budget.

Background
There are several very different ways to approach this program. Read the problem description very carefully because it provides some hints that might help you.

We still encourage you to work together on this program up to the actual coding of the solution.Your Butler class must be in a .r file and your task list must be in a .kpp file. You must do this task with one robot.

Handin Instructions:
Create a folder named with your last name (and first if needed), section letter and the number 6.
e.g.
SmurffPappa.A.6
Put copies of your .r file, .kpp file and at least three worlds for testing to
/afs/andrew.cmu.edu/course/15/120/handin/lab6


15-120 Spring 2000                                                                   Lab 6

Back to 15-120 Assignments