-
Notifications
You must be signed in to change notification settings - Fork 39
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
Goscorer integration and stone removal phase overhaul #162
Conversation
Fixes some errors with node 22
phase Also draw the red x's over the stones like the stone removal phase
}); | ||
return encodeMoves(moves); | ||
export function sortMoves(moves: string, width: number, height: number): string; | ||
export function sortMoves(moves: JGOFMove[], width: number, height: number): JGOFMove[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be nice to allow the caller to omit the width
/height
arguments in the JGOFMove
signature, given that they aren't used.
export function sortMoves(moves: JGOFMove[], width: number, height: number): JGOFMove[]; | |
export function sortMoves(moves: JGOFMove[], width?: number, height?: number): JGOFMove[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch thanks!
public toggleSingleGroupRemoval( | ||
x: number, | ||
y: number, | ||
force_removal: boolean = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm reading correctly, the only way to trigger this is via shift-click. Is there a mobile-friendly escape hatch as well?
And are we that confident in the algorithm to prevent people from removing groups (without the shift key)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Long press, I think that trickles down starting from the GobanSVG and GobanCanvas code
This patch updates the stone removal phase in a number of ways: