We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1615a87 commit 03fbcd7Copy full SHA for 03fbcd7
src/premove.ts
@@ -17,6 +17,7 @@ function pawn(playerIndex: cg.PlayerIndex): Mobility {
17
}
18
19
export const knight: Mobility = (x1, y1, x2, y2) => {
20
+ console.log('generated knight premoves from latest chessground');
21
const xd = diff(x1, x2);
22
const yd = diff(y1, y2);
23
return (xd === 1 && yd === 2) || (xd === 2 && yd === 1);
0 commit comments