|
| |
- #include "franca.h"
- // Programmed by Noah Larson UCSC winter 97
- void side1(Robot &goon,int color)
- {
- goon.mark(color);
- goon.step();
- goon.mark(color);
- goon.step();
- goon.mark(color);
- goon.step();
- goon.right();
- }
- void mainprog()
- {
- int color;
- color=ask("What color would you like the square to
be?");
- Robot fool;
- fool.face(3);
- side1(fool,color);
- side1(fool,color);
- side1(fool,color);
- side1(fool,color);
- }
|