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

Can't use the NearbyTracker #11

Open
bsambrone opened this issue Jul 26, 2020 · 1 comment
Open

Can't use the NearbyTracker #11

bsambrone opened this issue Jul 26, 2020 · 1 comment

Comments

@bsambrone
Copy link

bsambrone commented Jul 26, 2020

I tried copy/pasting the private class NearbyTracker from the SeparationConstraint, but I realize it's referencing a boatload of internal classes. Any particular reason why this class isn't public?

What I'm trying to do is create a custom constraint so that tiles of type X cannot be within Y tiles of type Z.

@BorisTheBrave
Copy link
Owner

The entire tracker framework is internal as I couldn't find a nice way of making it public without exposing too many internals. It's just an optimization, so it doesn't really prevent custom constraints.

The NearbyTracker one specifically I hadn't considered to be reusable. I've had to tweak it several times to get the separation constraint right, so I'm not that confident in what I've got. It's got some quirks specific to the use case it was designed for.

That same struggle is why the constraint you described isn't part of DeBroglie already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants