-
Notifications
You must be signed in to change notification settings - Fork 5
Walker #3
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
base: main
Are you sure you want to change the base?
Conversation
import matplotlib.pyplot as plt | ||
import random | ||
from randomwalk import Walker |
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 check the imports. Some are duplicated.
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.
Ok thanks! Will fix it.
""" | ||
last_x = self.x_coords[-1] | ||
last_y = self.y_coords[-1] | ||
new_x, new_y = self.nextStep(last_x, last_y) |
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 stick to PEP8 and make the method snake_case (self.next_step
)
import random | ||
|
||
|
||
class Walker: |
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.
Cool class! :)
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.
Good job, but there are some changes needed.
No description provided.