Skip to content

Lesson 5 -> practice 2 #1332

Description

@areeso

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:

  1. Go to lesson 5, practice 2
  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as intended

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions