Crate cetkaik_core[][src]

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

absolute

Defines things in the absolute term: “which piece lies in the square LIA?”/絶対座標ベース。「LIAのマスにはどの駒がある?」という話をする

perspective

Defines a perspective, with which you can transform between the absolute and the relative/視点を定めることで、相対座標と絶対座標の間を変換できるようにする

relative

Defines things in terms of relative view: “which piece is opponent’s?”/相対座標ベース。「どの駒が相手の駒?」という話をする

Macros

color

A shortcut macro for creating Color. /Color を楽に構築するためのマクロ。

cp

A shortcut macro for creating NonTam2Piece, which is essentially a tuple of the color and the profession. /NonTam2Piece を楽に構築するためのマクロ。

prof

A shortcut macro for creating Profession. /Profession を楽に構築するためのマクロ。

Enums

Color

Denotes the color of a piece/駒の色を表す。

Profession

Denotes the profession of a piece/駒の職業を表す。

Functions

serialize_color

Serializes Color./Colorを文字列に変換する。

serialize_prof

Serializes Profession./Professionを文字列にする。