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: in creating siblings, checking if the caller has a partner doesn't help avoiding trouble. #170

Open
mariopaolucci opened this issue Jun 16, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@mariopaolucci
Copy link
Contributor

The line here:

let trouble one-of candidates with [ any? partner-link-neighbors or any? turtle-set [ partner-link-neighbors ] of myself ]

Makes no sense in the part or any? turtle-set [ partner-link-neighbors ] of myself. There, myself is the agent looking for siblings; that he or she is married or not makes little sense. I wonder what was meant there.

Removing the check survived unit tests, so I guess that's the way to go.

@mariopaolucci mariopaolucci added the bug Something isn't working label Jun 16, 2020
@mariopaolucci
Copy link
Contributor Author

Notice that just removing it might decrease a bit the number of initial siblings. Quick and dirty tests seem to indicate it is not so. The routine, however, blocked the test at 5K agents once.

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