Assignment:
Chapter 2, Problem 6, page 22 and 23
? Build a world to match the Initial Situation on page 23.
? Write a robot program to solve the problem as shown in the final
solution on page 23.
Background
This is your first program in the robot simulator we call Karel.
Feel free to work in groups and talk about the solutions. Most solutions
will look very similar since this is a fairly simple robot program with
only one path for Karel to follow.
This is also your first chance to work with the simulator software so there will be some "ramp up" time. It is not difficult but it takes some time to learn.
We will show you how to build the world on Tuesday and how to run the simulator. You can use any word processor that you choose but recommend that you use the CodeWarrior IDE (integrated development environment) to write the program. If you use the
The world file should end in the extension .wld and the Karel file should be saved as text if necessary ( this is not necessary if you are using CodeWarrior) and have the extension .kpp otherwise your program may not work. The Karel Distribution folder that is on the intront server has two template files for you to use to start your work. template.wld is a world that you can modify for the lab. template.kpp is a Karel program that you can use to begin to write your solution.
Handin Instructions:
Bring your program and world to class on Thursday - we will show you
how to receive credit and hand in the program.