Skip to content

allows passing through up-down/left-right borders on option#24

Merged
brean merged 3 commits intobrean:masterfrom
HSTEHSTEHSTE:master
Dec 19, 2019
Merged

allows passing through up-down/left-right borders on option#24
brean merged 3 commits intobrean:masterfrom
HSTEHSTEHSTE:master

Conversation

@HSTEHSTEHSTE
Copy link
Copy Markdown
Contributor

Implementation for the minor improvement suggested in issue #23.

s0 = True
# →
if x == self.width and self.passable_left_right_border:
if x == self.width - 1 and self.passable_left_right_border:
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Nice catch with the -1 (self.width is the length and we are accessing array indices, so this might raise an IndexError)! I think this bug was not seen before? Good bugfix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Think I made the bug myself and then fixed it :D Thanks anyway!

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Oh oups... Anyway, thanks for the pull request!

@brean brean merged commit a61b67f into brean:master Dec 19, 2019
@brean brean mentioned this pull request Dec 19, 2019
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