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

legal chi and dahai judge, may be bug #24

Open
heartup opened this issue Jun 30, 2022 · 1 comment
Open

legal chi and dahai judge, may be bug #24

heartup opened this issue Jun 30, 2022 · 1 comment

Comments

@heartup
Copy link

heartup commented Jun 30, 2022

if (haikind(hai) < haikind(consumed0) && haikind(hai) < haikind(consumed1) && haikind(dahai) == haikind(hai) + 2) { return false; }

I think it should be the following:
if (haikind(hai) < haikind(consumed0) && haikind(hai) < haikind(consumed1) && haikind(dahai) == haikind(hai) + 3) { return false; }
if (haikind(hai) > haikind(consumed0) && haikind(hai) > haikind(consumed1) && haikind(dahai) == haikind(hai) - 3) { return false; }

@critter-mj
Copy link
Owner

Thank you for reporting!
I'm glad to know that the code is checked by other developers.
Now I have fixed this bug.

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