Skip to content

Added assignment 3 code. Open for review :)#3

Open
figalit wants to merge 2 commits intomasterfrom
assignment_3
Open

Added assignment 3 code. Open for review :)#3
figalit wants to merge 2 commits intomasterfrom
assignment_3

Conversation

@figalit
Copy link
Owner

@figalit figalit commented Jun 14, 2017

No description provided.

Copy link
Collaborator

@kkasiacodeu kkasiacodeu left a comment

Choose a reason for hiding this comment

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

Nice! The algorithm is good and I can't see any potential failures :)

Just one major comment on possible refactoring. But I'm approving this anyway, feel free to submit this as it is if you don't feel like doing the refactoring exercise :)

assignment3.py Outdated
class Dictionary(object):
def __init__(self, dictionary=None):
self.dictionary = []
# self.prefixes = []
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove this line


visited.append([row_number,col_number])

# left up
Copy link
Collaborator

Choose a reason for hiding this comment

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

While this block of ifs is correct, can you maybe think of a more maintainable way to implement it? (Generalize all the 8 cases)

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