Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (colorIs(Color.blue)) {
- paint(Color.red);
- } else {
- paint(Color.blue);
- }
- while (frontIsClear()) {
- move();
- if (colorIs(Color.blue)) {
- paint(Color.red);
- } else {
- paint(Color.blue);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement