na2hiro / json-kifu-format

JSON棋譜フォーマット(JKF)の定義とKIF, KI2, CSAからの変換ライブラリ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Specify a data model

gemmaro opened this issue · comments

Currently, json-kifu-format only specifies JSON representation.
However, this format is not fully-strictly typed, and is somewhat looser than it actually is due to JSON's limited expressive power.
Therefore, I propose to specify the data model as well. That is, to provide a more strictly typed representation of the game record in TypeScript.

The possibilities probably vary depending on the programming language paradigm, and in JavaScript, for example, Shogi.js might be a candidate. Therefore, this question may not have been very meaningful. Sorry about that.