Describe the bug
The practice problem accepts your solution if you use "jump(300)" instead of "jump(300,300)". This draws overlapping squares which is what you are trying to avoid with the practice problem.
To Reproduce
Steps to reproduce the bug:
- Go to lesson 5, practice 2
- Enter the following function for your solution:
func draw_square():
move_forward(200)
turn_right(90)
move_forward(200)
turn_right(90)
move_forward(200)
turn_right(90)
move_forward(200)
turn_right(90)
func draw_three_squares():
draw_square()
jump(300, 300)
draw_square()
jump(300, 300)
draw_square()
4. Run the code
5. The practice problem is completed, even though the squares drawn are overlapping.
Describe the bug
The practice problem accepts your solution if you use "jump(300)" instead of "jump(300,300)". This draws overlapping squares which is what you are trying to avoid with the practice problem.
To Reproduce
Steps to reproduce the bug:
func draw_square():
move_forward(200)
turn_right(90)
move_forward(200)
turn_right(90)
move_forward(200)
turn_right(90)
move_forward(200)
turn_right(90)
func draw_three_squares():
draw_square()
jump(300, 300)
draw_square()
jump(300, 300)
draw_square()
4. Run the code
5. The practice problem is completed, even though the squares drawn are overlapping.