Solved Task 2

This commit is contained in:
schrom01 2022-10-17 20:03:35 +02:00
parent 17945a953d
commit f574472a78
1 changed files with 8 additions and 2 deletions

View File

@ -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();
}