Skip to content

next_wire() only finds wires that start at (0, 0) #2

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

Closed
dragoncoder047 opened this issue Jan 24, 2023 · 1 comment
Closed

next_wire() only finds wires that start at (0, 0) #2

dragoncoder047 opened this issue Jan 24, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@dragoncoder047
Copy link
Owner

Running wires.py to test it (using wires_test.txt) --

With no blank lines at the top it finds the entire wire as it should

With any leading blank lines it fails.

In either case, it fails to find the wires below the first one once it has processed the wire at (0, 0).

@dragoncoder047
Copy link
Owner Author

Bug was here

line_pieces = search_wire(grid, complex(min(indexes), i))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant