Modules

Defines things in the absolute term: “which piece lies in the square LIA?”/絶対座標ベース。「LIAのマスにはどの駒がある?」という話をする
According to https://github.com/cetkaik/cetkaik_yhuap_move_candidates/pull/7, this function was a bottleneck that accounted for roughly fifty percent of all the runtime in an attempt to implement an AI for this game. Hence, this module contains multiple implementations of this functions and test that they are equal.

Structs

Enums

Denotes the color of a piece/駒の色を表す。
Defines a perspective, with which you can transform between the absolute and the relative /どちらの視点で見ているかを表現する型。 視点を固定すると、相対座標表現と絶対座標表現を相互変換することができる。
Denotes the profession of a piece/駒の職業を表す。
Describes a move denoted in absolute coordinates. /絶対座標で書かれた指し手を表す。

Traits

Functions

Returns the list of all possible locations that a piece can move to / step on. Supports both cetkaik_core and cetkaik_compact_representation.
Converts relative::Coord into absolute::Coordrelative::Coordabsolute::Coord に変換する。