From ae8ff77d0deaab07a3b626db1ff76bceb197fbca Mon Sep 17 00:00:00 2001 From: gbtami Date: Thu, 13 Jun 2024 10:44:53 +0200 Subject: [PATCH] Lint --- src/premove.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/premove.ts b/src/premove.ts index 8679c36..4eca7fe 100644 --- a/src/premove.ts +++ b/src/premove.ts @@ -296,7 +296,7 @@ function scout(color: cg.Color): Mobility { (x2 === x1 && (color === 'white' ? y2 === y1 + 1 : y2 === y1 - 1)) || ((x2 === x1 - 1 || x2 === x1 + 1) && (color === 'white' ? y2 === y1 + 2 : y2 === y1 - 2)) || ((x2 === x1 - 2 || x2 === x1 + 2) && (color === 'white' ? y2 === y1 + 1 : y2 === y1 - 1)) -}; +} // Define xiangqi palace based on geometry // The palace is the 3x3 squares in the middle files at each side's end of the board