Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GSoC: Add Turtle Class #17

Merged
merged 4 commits into from
Jun 6, 2018
Merged

GSoC: Add Turtle Class #17

merged 4 commits into from
Jun 6, 2018

Conversation

Ellipse0934
Copy link
Collaborator

@Ellipse0934 Ellipse0934 commented Jun 5, 2018

A 3-D turtle with yaw, pitch and roll. Addresses #13

A 3-D turtle with yaw, pitch and roll
Copy link
Member

@aviks aviks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some usage examples would be good, can be a separate PR.

src/turtle.jl Outdated
penDown = true
return new(pos, direction, normal, penBlock, stepSize, penDown)
end
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

create a keyword constructor, so that people can use it as turtle(;stepSize = 0.5) etc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, this looks good now, but please document the constructor.

src/turtle.jl Outdated

Move the turtle `t` forward `s` steps.
"""
function move(t::turtle, s::Int)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe have the function take Real, and convert to Int before applying?

@Ellipse0934
Copy link
Collaborator Author

Examples will be a part of a different PR.

@aviks aviks merged commit f5fa345 into JuliaBerry:master Jun 6, 2018
@Ellipse0934 Ellipse0934 changed the title Add Turtle Class GSoC: Add Turtle Class Aug 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants