Crate cetkaik_core
source ·Expand description
Core data types and whatnot for cetkaik, a board game. See https://sites.google.com/view/cet2kaik/the-standardized-rule-in-english for more context. /机戦(セットカイク)のための基本的なデータ型など。
Modules
Defines things in the absolute term: “which piece lies in the square LIA?”/絶対座標ベース。「LIAのマスにはどの駒がある?」という話をする
Defines a perspective, with which you can transform between the absolute and the relative/視点を定めることで、相対座標と絶対座標の間を変換できるようにする
Defines things in terms of relative view: “which piece is opponent’s?”/相対座標ベース。「どの駒が相手の駒?」という話をする
Macros
A shortcut macro for creating
Color
.
/Color
を楽に構築するためのマクロ。A shortcut macro for creating
ColorAndProf
, which is essentially a tuple of the color and the profession.
/ColorAndProf
を楽に構築するためのマクロ。A shortcut macro for creating
Profession
.
/Profession
を楽に構築するためのマクロ。Structs
Describes a piece that is not a Tam2, and hence can be taken and be placed in a hop1zuo1.
/駒のうち、皇以外を表す。これは手駒として存在できる駒でもある。
Enums
Denotes the color of a piece/駒の色を表す。
Denotes the profession of a piece/駒の職業を表す。
Describes a move.
/指した手を表す。
Traits
A trait that signifies that you can use it as a
Board
with an absolute coordinate
/絶対座標付きの Board
として扱える型を表すトレイトA trait that signifies that you can use it as a
Board
/Board
として扱える型を表すトレイトA trait that signifies that you can use it as a
Field
/Field
として扱える型を表すトレイトFunctions
Serializes
Profession
./Profession
を文字列にする。