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

deal with spawn area being to small for numberOfAgents #228

Open
Jolijn2020 opened this issue Mar 17, 2022 · 0 comments
Open

deal with spawn area being to small for numberOfAgents #228

Jolijn2020 opened this issue Mar 17, 2022 · 0 comments
Assignees
Labels
bug Something isn't working Lvl 3 ~2 - 4hrs task
Projects

Comments

@Jolijn2020
Copy link
Collaborator

When the spawn area is very small, it is possible for the getRandomPosition method in Map to loop forever.

It is fixed right now by not adding a new agent if it loops 500 times, but this is only a temporary fix

@Jolijn2020 Jolijn2020 added bug Something isn't working Lvl 3 ~2 - 4hrs task labels Mar 17, 2022
@Jolijn2020 Jolijn2020 added this to To do in Phase 2 via automation Mar 17, 2022
@Jolijn2020 Jolijn2020 self-assigned this Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Lvl 3 ~2 - 4hrs task
Projects
Phase 2
To do
Development

No branches or pull requests

1 participant