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

Computational Art Submission #8

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

Conversation

leoliuuu
Copy link

@leoliuuu leoliuuu commented Oct 2, 2017

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 overall! I would definitely suggest you add more documentation in your future projects.

@@ -43,8 +56,24 @@ def evaluate_random_function(f, x, y):
>>> evaluate_random_function(["y"],0.1,0.02)
0.02
"""
# TODO: implement this
pass
if len(f)==1:

Choose a reason for hiding this comment

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

I recommend that you add one or two unit tests of your own to test the function.

return ['x']
return ['y']
choice = random.randint(0, len(function) - 1)
if(choice > 4):

Choose a reason for hiding this comment

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

it would be easier to understand the code if you put an inline comment explaining why you made this choice.


# Test that PIL is installed correctly
# # Test that PIL is installed correctly

Choose a reason for hiding this comment

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

please remove these comments for you final code submission

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

Choose a reason for hiding this comment

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

please remove these comments for you final code submission

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