Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jun 13, 2024
1 parent 9ad40ae commit ae8ff77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/premove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae8ff77

Please sign in to comment.