Skip to content

Simplify get_go_string() in Board implementation - #9

Open
abhinav-upadhyay wants to merge 2 commits into
maxpumperla:masterfrom
abhinav-upadhyay:patch-1
Open

Simplify get_go_string() in Board implementation#9
abhinav-upadhyay wants to merge 2 commits into
maxpumperla:masterfrom
abhinav-upadhyay:patch-1

Conversation

@abhinav-upadhyay

Copy link
Copy Markdown

We could simply return the value from self._grid.get(point) rather than checking for None, since if it is None we are returning None.

We could simply return the value from self._grid.get(point) rather than checking for None, since if it is None we are returning None.
@maxpumperla

Copy link
Copy Markdown
Owner

@abhinav-upadhyay you're right, thanks. sorry for the late reply. To keep the book in sync with master, can you please re-submit your PR against our new improvements branch?

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