-
Notifications
You must be signed in to change notification settings - Fork 20
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
Color picker sometimes chooses 2 identical colours #63
Comments
Well the random color is just that - random. It doesn't check if similar colors are present on the board. So this happens sometimes. Bad luck =). I can leave this issue open in case someone wants to improve the logic of color selection. |
@gereleth I'll try and create a PR for this then. |
Can resolve this by assigning an incrementing ID to each group of connected pipes. Colours can then be assigned based off of the ID, with sufficient colours for expected IDs. Also can eliminate colouring single cell groups after a rotation, as this doesn't aid the solve, and will take up colours for other groups. |
See attached image, there are 2 separate parts in (almost) identical green colour.
Seems the randomisation screwed up?
The text was updated successfully, but these errors were encountered: