Solved Task 2
This commit is contained in:
parent
17945a953d
commit
f574472a78
|
@ -6,9 +6,15 @@ public class SnowflakeServer implements CommandExecutor {
|
|||
|
||||
@Override
|
||||
public String execute(String command) {
|
||||
turtle = new Turtle();
|
||||
int steps = Integer.parseInt(command);
|
||||
drawSnowFlake(steps, distanz);
|
||||
turtle = new Turtle();
|
||||
turtle.reset(0.5, 0.9);
|
||||
turtle.turn(60);
|
||||
|
||||
for(int i = 0; i > 3; i++){
|
||||
turtle.turn(-120);
|
||||
drawSnowFlake(steps, 0.7 * distanz);
|
||||
}
|
||||
return turtle.getTrace();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue