Set up
|
Part one
An Introduction to Programming with Karel J. Robot |
Part two
Teaching a young robot new tricks
Variations on the theme: GRADED
Take your two solutions from the previous exercise and change them so that the squares have 4x4 dimensions. Now add a third square on top.
|
Part three
Karel and Company - More Robots
2 bots : GRADED
A task for you. : GRADED
In Listing 4, when we gave the command jane = dick; we transfered the name jane from robot 2 back to robot 1, leaving robot 2 without a name and beyond reach. Can you think of a way of swapping the robots that jane and dick refer to without leaving any robots "orphaned"? In other words, start with jane referring to robot 1 and dick referring to robot 2 but end with jane referring to robot 2 and dick referring to robot 1.
|