Skip to content

Commit

Permalink
Fix cannon shogi premoves
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed May 5, 2024
1 parent 063f442 commit 9ad40ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chessgroundx",
"version": "10.5.5",
"version": "10.5.6",
"description": "Extended lichess.org Chess UI",
"type": "module",
"module": "chessground.js",
Expand Down
8 changes: 4 additions & 4 deletions src/premove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,12 +742,12 @@ function builtinMobility(
case 'ps-piece': // promoted silver
return shogiGold(color);
case 'b-piece': // bishop
case 'u-piece': // gold cannon
case 'a-piece': // silver cannon
return bishop;
case 'r-piece': // rook
case 'i-piece': // iron cannon
case 'c-piece': // copper cannon
return bishop;
case 'r-piece': // rook
case 'u-piece': // gold cannon
case 'a-piece': // silver cannon
return rook;
case 'pr-piece': // dragon (promoted rook)
return shogiDragon;
Expand Down

0 comments on commit 9ad40ae

Please sign in to comment.