Solved Task 2
This commit is contained in:
parent
1ab54b5b76
commit
124caff620
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue