Solved Task 2
This commit is contained in:
@@ -9,11 +9,11 @@ public class SnowflakeServer implements CommandExecutor {
|
|||||||
int steps = Integer.parseInt(command);
|
int steps = Integer.parseInt(command);
|
||||||
turtle = new Turtle();
|
turtle = new Turtle();
|
||||||
turtle.reset(0.5, 0.9);
|
turtle.reset(0.5, 0.9);
|
||||||
turtle.turn(120);
|
turtle.turn(240);
|
||||||
|
|
||||||
for(int i = 0; i < 3; i++){
|
for(int i = 0; i < 3; i++){
|
||||||
turtle.turn(120);
|
|
||||||
drawSnowFlake(steps, distanz);
|
drawSnowFlake(steps, distanz);
|
||||||
|
turtle.turn(120);
|
||||||
}
|
}
|
||||||
return turtle.getTrace();
|
return turtle.getTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user