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

Premoves in free play? #41

Open
sorsted opened this issue Jul 18, 2024 · 2 comments
Open

Premoves in free play? #41

sorsted opened this issue Jul 18, 2024 · 2 comments

Comments

@sorsted
Copy link

sorsted commented Jul 18, 2024

I would like to enable premoves for both sides in free play. I tried setting interactibleSide to InteractableSide.both, but this did not do the trick.

I found the issue, by the way: At lines 382 and 774 of the file Board.dart, you should check for the possibility that widget.data.interactableSide is set to InteractableSide.both.

@veloce
Copy link
Collaborator

veloce commented Jul 19, 2024

I'm not sure there is a use case for this.

Can you precise what is yours? Thanks.

@sorsted
Copy link
Author

sorsted commented Jul 19, 2024

Local games where you are allowed to premove.

In any case, the current solution where making both sides interactable turns off premoves for both sides is very confusing and inconsistent. And changing it only requires updating two lines of code.

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