Skip to content

[Bug]: Turtle.js.polygon and Turtle.js.forward returns NaN #338

@ninmonkey

Description

@ninmonkey

Description

The output of Turtle.js.ToHTML does not render because of path errors

Reproducable Steps

### Case 1


turtle.forward( 10 )
console.log( turtle.steps )
[' l NaN NaN ']
`

### Case 2 

turtle.polygon( 10, 8 )
console.log( turtle.steps )

[ ' l NaN NaN ', ' l NaN NaN ', ' l NaN NaN ', ' l NaN NaN ', ' l NaN NaN ', ' l NaN NaN ', ' l NaN NaN ', ' l NaN NaN ']

Links

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions