-
-
Notifications
You must be signed in to change notification settings - Fork 201
Open
Labels
bugSomething isn't working as intendedSomething isn't working as intended
Description
Describe the bug
Lesson 7 Exercise 2 produces a lot of unexpected results, accepts wrong answers, and refuses right ones.
To Reproduce
Steps to reproduce the bug:
- Go to 'Lesson 7 Exercise 2'
- Make your own "draw_square" function instead of using "draw_rectangle"
- You will see a lot of visual errors with the turtle.
3a. If you do everything else like in the provided solution, changing "position.x" will continue to draw, and your solution will not be accepted.
3b. If you replace "position.x" with "jump(200, 0), "jump" will continue to draw, but your solution will still be accepted.
3b-. no matter what's in the second variable in "jump", the solution will be accepted. Any value other than 0 provides very unexpected final results.
Expected behavior
Consistent results.
Information about your device (please complete the following information):
- Browser: Chrome
Additional context
Code for the screenshot:
func run():
position.x = 100
position.y = 100
draw_square(100)
jump(200,50)
draw_square(100)
jump(200,50)
func draw_square(length):
move_forward(length)
turn_right(90)
move_forward(length)
turn_right(90)
move_forward(length)
turn_right(90)
move_forward(length)
turn_right(90)
Metadata
Metadata
Assignees
Labels
bugSomething isn't working as intendedSomething isn't working as intended
