Skip to content

Commit 03fbcd7

Browse files
WIP: testing last chessground is correctly used from lila
1 parent 1615a87 commit 03fbcd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/premove.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function pawn(playerIndex: cg.PlayerIndex): Mobility {
1717
}
1818

1919
export const knight: Mobility = (x1, y1, x2, y2) => {
20+
console.log('generated knight premoves from latest chessground');
2021
const xd = diff(x1, x2);
2122
const yd = diff(y1, y2);
2223
return (xd === 1 && yd === 2) || (xd === 2 && yd === 1);

0 commit comments

Comments
 (0)