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

[Bug]: Multiple recursive division problems #3

Open
Ijee opened this issue Jul 22, 2024 · 3 comments
Open

[Bug]: Multiple recursive division problems #3

Ijee opened this issue Jul 22, 2024 · 3 comments
Labels
bug Bug help wanted Can be worked on by anyone that wants to maze This is related to one of the maze algorithms

Comments

@Ijee
Copy link
Owner

Ijee commented Jul 22, 2024

What happened?

I fixed a few problems that will be found in v1.2.3 but these still occur:

  1. Clicking on "complete algorithm" in the algorithm controller doesn't work.
  2. Going back and forth between iterations can skip divisions and leaves unpainted sections (screenshot 1).
  3. Sometimes it is missing the last node in a painted division. In screenshot 2 the node I marked with blue is missing in the maze I created.
  4. The second to last iteration also throws an error (see error further down)

This algorithm is one of the messiest ones I wrote. It may be a good idea to just rewrite it and could then also be implemented recursively as the name suggests which then only shows the .

Reproduction steps

Not needed.

Version

1.2.2

What browser did you use?

Chrome, Firefox

Screenshots (optional)

image

image

Console Logs (optional)

simulation.service.ts:91 ERROR TypeError: Cannot read properties of undefined (reading 'xEnd')
    at RecursiveDivision.nextStep (recursive-division.ts:149:30)
    at _AlgorithmService.getNextStep (algorithm.service.ts:265:34)
    at _SimulationService.stepForward (simulation.service.ts:121:41)
    at simulation.service.ts:92:28
    at timer (zone.js:1716:37)
    at _ZoneDelegate.invokeTask (zone.js:398:33)
    at core.mjs:15428:55
    at AsyncStackTaggingZoneSpec.onInvokeTask (core.mjs:15428:36)
    at _ZoneDelegate.invokeTask (zone.js:397:38)
    at Object.onInvokeTask (core.mjs:15730:33)
@Ijee Ijee added bug Bug path finding This is related to one of the pathfinding algorithms labels Jul 22, 2024
@Ijee Ijee changed the title [Bug]: Multiple recursive divison problems [Bug]: Multiple recursive division problems Jul 22, 2024
@Ijee Ijee added help wanted Can be worked on by anyone that wants to maze This is related to one of the maze algorithms and removed path finding This is related to one of the pathfinding algorithms labels Jul 22, 2024
@jdegand
Copy link

jdegand commented Aug 3, 2024

You need to look into code analysis tools to help find issues. The CodeScene VS Code extension can be a quick way to help pinpoint problem areas. There are other tools like Code Climate that you can intergrate with your repo that can also find code smells.

@Ijee
Copy link
Owner Author

Ijee commented Aug 9, 2024

You need to look into code analysis tools to help find issues. The CodeScene VS Code extension can be a quick way to help pinpoint problem areas. There are other tools like Code Climate that you can intergrate with your repo that can also find code smells.

Thank you. Currently I only rely on open source projects for all the tools I use to work on my projects but I admit something like you mentioned would certainly help. 👍

I'll most likely fix the problems I described above for the next release unless someone wants to work on this. The next release will also have quite a few bug fixes in itself.

@jdegand
Copy link

jdegand commented Aug 11, 2024

Check this list for more tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug help wanted Can be worked on by anyone that wants to maze This is related to one of the maze algorithms
Projects
None yet
Development

No branches or pull requests

2 participants