Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

CSA一括表現の後の 00AL #69

Closed
sugyan opened this issue Jul 25, 2022 · 2 comments
Closed

CSA一括表現の後の 00AL #69

sugyan opened this issue Jul 25, 2022 · 2 comments

Comments

@sugyan
Copy link

sugyan commented Jul 25, 2022

'行き詰まり『新たなる殺意』 (看寿賞 平成元年短編賞)
P1 *  *  *  *  *  *  *  *  * 
P2 *  *  *  *  *  *  *  *  * 
P3 *  *  * -FU-FU *  *  *  * 
P4-RY *  * -OU * -FU *  *  * 
P5 *  * +KY * -TO *  *  *  * 
P6 *  * +RY *  *  *  *  *  * 
P7+KA *  *  *  *  *  *  *  * 
P8+KA *  *  *  *  *  *  *  * 
P9 *  *  *  *  *  *  *  *  * 
P-00AL
+

のように一括表現を使って盤面を表現した後に 00AL が出てきている場合に、盤面に使われた駒が考慮されないようです。
(後手の持駒は {FU: 14, KY: 3, KE: 4, GI: 4, KI: 4, KA: 0, HI: 0} となるのが正しいはず)

{
  "header": {},
  "initial": {
    "preset": "OTHER",
    "data": {
      "board": [ ... ],
      "hands": [
        {
          "FU": 0,
          "KY": 0,
          "KE": 0,
          "GI": 0,
          "KI": 0,
          "KA": 0,
          "HI": 0
        },
        {
          "FU": 18,
          "KY": 4,
          "KE": 4,
          "GI": 4,
          "KI": 4,
          "KA": 2,
          "HI": 2
        }
      ],
      "color": 0
    }
  },
  "moves": [
    {}
  ]
}
@na2hiro
Copy link
Owner

na2hiro commented Oct 2, 2022

ご指摘ありがとうございます。ALが駒別単独表現でしか使われないものと誤解していました。

@na2hiro na2hiro closed this as completed in e4d0f0e Oct 2, 2022
na2hiro added a commit that referenced this issue Oct 2, 2022
Support 00AL for Ikkatsu expression (Closes #69)
@na2hiro
Copy link
Owner

na2hiro commented Oct 2, 2022

をpublishしました

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants