Skip to content

Lesson 7 Exercise 2 is completely broken. #968

@Oicmorez

Description

@Oicmorez

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:

  1. Go to 'Lesson 7 Exercise 2'
  2. Make your own "draw_square" function instead of using "draw_rectangle"
  3. 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.

Screenshots
godot

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

No one assigned

    Labels

    bugSomething isn't working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions