Skip to content

Commit

Permalink
Shinobiplus premoves
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtami committed Jan 6, 2024
1 parent 74fad0c commit 179146e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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.2",
"version": "10.5.3",
"description": "Extended lichess.org Chess UI",
"type": "module",
"module": "chessground.js",
Expand Down
3 changes: 3 additions & 0 deletions src/premove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@ function builtinMobility(
};

case 'shinobi':
case 'shinobiplus':
return (boardState, key, canCastle) => {
const piece = boardState.pieces.get(key)!;
const role = piece.role;
Expand Down Expand Up @@ -1129,6 +1130,8 @@ function builtinMobility(
return ferz;
case 'd-piece': // dragon
return shogiDragon;
case 'f-piece': // fox
return shogiHorse;
case 'j-piece': // ninja
return archbishop;
case 'k-piece': // king
Expand Down

0 comments on commit 179146e

Please sign in to comment.