0.16.1 • Published 2 months ago

shogiops v0.16.1

Weekly downloads
15
License
GPL-3.0-or-later
Repository
github
Last release
2 months ago

shogiops

Test npm

Shogi and operations in TypeScript forked from chessops, rewritten for shogi.

Features

  • Read and write SFEN
  • Vocabulary (Square, SquareSet, Color, Role, Piece, Board, Position)
  • Shogi
    • Move/drop making
    • Legal move and drop move generation
    • Game end and outcome
    • Setup validation
  • Attacks and rays using hyperbola quintessence
  • Read and write USI, Japanese, Western and Kitao-Kawasaki notation
  • Read and write KIF and CSA notation
  • Currently supported variants - shogi, minishogi, chushogi, annan shogi and kyoto shogi.
  • Compatibility with shogiground
  • Compatibility with lishogi

File an issue to request more or report a bug.

Example

Test directory has a lot of examples and use-cases.

import { Shogi } from 'shogiops/shogi';
import { parseUsi } from 'shogiops/util';

const pos = Shogi.default();
const usi = parseUsi('7g7f')!;
pos.play(usi);

License

shogiops is licensed under the GNU General Public License 3 or any later version at your choice. See LICENSE.txt for details.

0.16.1

2 months ago

0.15.1

3 months ago

0.15.0

6 months ago

0.14.4

11 months ago

0.12.0

1 year ago

0.13.0

1 year ago

0.14.0

1 year ago

0.14.1

1 year ago

0.14.2

1 year ago

0.14.3

12 months ago

0.11.0

1 year ago

0.10.1

1 year ago

0.10.2

1 year ago

0.10.3

1 year ago

0.10.0

1 year ago

0.9.0

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.6.0

2 years ago

0.3.1

3 years ago

0.2.9

3 years ago

0.2.7

3 years ago

0.2.8

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.2

3 years ago

0.1.10

3 years ago

0.1.7

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago