Skip to content

Commit

Permalink
Slight bug when moving a piece within the 10th rank in Janggi/Xiangqi (
Browse files Browse the repository at this point in the history
…#228)

* Attempt to fix the misplacement of the Arrows in 9x10 boards plus no legal moves

* Removing unnecessary console.log from tests

* Bug when moving pieces within the 10th rank

Co-authored-by: RYZEN <RYZEN@DESKTOP-KEGP1V2>
  • Loading branch information
fjscabral and RYZEN authored Oct 1, 2021
1 parent c0c476b commit 6b52370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/ChessGround.vue
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ export default {
return (orig, dest, metadata) => {
let uciMove = orig + dest
if (this.dimensionNumber === 3) {
uciMove = uciMove.replace(':', '10') // Convert the ':' back to '10'
uciMove = uciMove.replaceAll(':', '10') // Convert the ':' back to '10'
}
if (this.isPromotion(uciMove)) {
if (this.variant === 'makruk') {
Expand Down

0 comments on commit 6b52370

Please sign in to comment.