-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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: |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
No description provided.