RubyGems Navigation menu

sashite-pan 4.0.0

Parse and generate Portable Action Notation (PAN) strings for representing atomic actions in abstract strategy board games including chess, shogi, xiangqi, and others. PAN provides an intuitive operator-based syntax with six core operators: "-" (move to empty square), "+" (capture), "~" (special moves with side effects), "*" (drop to board), "." (drop with capture), and "=" (in-place transformation), plus "..." (pass turn). Supports coordinates via CELL specification and piece identifiers via EPIN specification. Handles transformations ("e7-e8=Q"), enhanced/diminished states ("+R", "-P"), and style derivation markers ("K'"). Provides comprehensive validation, immutable action objects, and functional API design. Examples: "e2-e4" (move), "d1+f3" (capture), "e1~g1" (castling), "P*e5" (drop), "e7-e8=Q" (promotion), "..." (pass), "+d4" (static capture), "e4=+P" (modify).

Gemfile:
=

安装:
=

版本列表:

  1. 4.0.0 October 25, 2025 (15.0 KB)
  2. 3.0.0 June 05, 2025 (10.0 KB)
  3. 2.0.0 May 23, 2025 (9.5 KB)
  4. 1.3.0 August 17, 2021 (7.0 KB)
  5. 1.2.0 July 05, 2020 (6.5 KB)
显示所有版本 (共 11 个)

Runtime 依赖 (2):

sashite-cell ~> 2.0
sashite-epin ~> 1.1

所有者:

推送者:

作者:

  • Cyril Kato

SHA 256 校验和:

=

下载总量 18,924

这个版本 183

版本发布:

许可:

MIT

需要的 Ruby 版本: >= 3.2.0

新的版本需要开启多因素验证(MFA): true

使用多因素验证(MFA)发布的版本: true

链接: