We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if (d >= p1 || data[n[1]] && data[n[1]][n[0]] == null && data[n[1]][n[0]] === -sign || n in visited) continue
A question about above code, isn't 'data[n[1]] && data[n[1]][n[0]] == null && data[n[1]][n[0]] === -sign' always return false?
The text was updated successfully, but these errors were encountered:
Nice catch! Looking at the commit history, it's probably supposed to be instead:
if (d >= p1 || data[n[1]] && data[n[1]][n[0]] != null && data[n[1]][n[0]] === -sign || n in visited)
or equivalently just:
if (d >= p1 || data[n[1]] && data[n[1]][n[0]] === -sign || n in visited)
The middle condition is supposed to block radiance if encountering an enemy stone. Do you mind creating a PR for this?
Sorry, something went wrong.
Nice catch! Looking at the commit history, it's probably supposed to be instead: if (d >= p1 || data[n[1]] && data[n[1]][n[0]] != null && data[n[1]][n[0]] === -sign || n in visited) or equivalently just: if (d >= p1 || data[n[1]] && data[n[1]][n[0]] === -sign || n in visited) The middle condition is supposed to block radiance if encountering an enemy stone. Do you mind creating a PR for this?
Sure, thanks for your reply
Closed with #5.
No branches or pull requests
A question about above code, isn't 'data[n[1]] && data[n[1]][n[0]] == null && data[n[1]][n[0]] === -sign' always return false?
The text was updated successfully, but these errors were encountered: