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

Visualize valid pieces #11

Closed
wants to merge 1 commit into from
Closed

Visualize valid pieces #11

wants to merge 1 commit into from

Conversation

Awthura
Copy link
Collaborator

@Awthura Awthura commented Jan 9, 2021

@mlsdpk @aungpaing98 @aungmcs please make suggestions and comments for #7

Copy link
Owner

@mlsdpk mlsdpk left a comment

Choose a reason for hiding this comment

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

Overall, the implementation works properly as it solves the issue. I've highlighted some suggestions for you to improve the code. @aungmcs @aungpaing98

if self.grid[right_grid_row][right_grid_col] == 0:
self.valid_pieces.append((row,col))
continue
print(self.valid_pieces)
Copy link
Owner

Choose a reason for hiding this comment

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

It would be nice to remove this printing statement.

self.valid_pieces.append((row,col))
continue
print(self.valid_pieces)
return (len(self.valid_pieces)>0)
Copy link
Owner

@mlsdpk mlsdpk Jan 9, 2021

Choose a reason for hiding this comment

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

You can remove the open and close brackets in line 83 return (len(self.valid_pieces)>0)

@@ -13,10 +13,15 @@ def __init__(self, screen):
0 - Selection Mode
1 - Active Mode
'''
self.mode = 0
self.mode = 9
Copy link
Owner

Choose a reason for hiding this comment

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

We can make this mode 9 as initial mode 0, and change other modes accordingly.

@mlsdpk mlsdpk closed this Jan 9, 2021
@Awthura Awthura deleted the feature-valid-pieces branch January 9, 2021 16:55
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