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

Pull request #14

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Pull request #14

wants to merge 5 commits into from

Conversation

victorbianchi
Copy link

No description provided.

Copy link

@SeunginLyu SeunginLyu left a comment

Choose a reason for hiding this comment

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

Looks good. A few lines of inline comments wouldn't hurt though!


building_blocks = ['x','y','cos_pi','sin_pi','prod','avg','tan_pi','substract',]
pick = random.choice(building_blocks)
i = random.randint(min_depth, max_depth)

Choose a reason for hiding this comment

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

something like random_depth would be a more appropriate variable name. i does not give you any semantic information about the variable.

Choose a reason for hiding this comment

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

but I don't see you using it anywhere else in the code.

@@ -159,13 +195,11 @@ def generate_art(filename, x_size=350, y_size=350):

if __name__ == '__main__':
import doctest
doctest.testmod()
#doctest.testmod(verbose = True)

Choose a reason for hiding this comment

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

please remove comments for your final submission

# TODO: implement this
pass

output_val = input_interval_end - input_interval_start

Choose a reason for hiding this comment

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

it would be useful to add more unit tests for this function, just to confirm that it works for all ranges.

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.

None yet

2 participants