Re-exports
pub use pure_move::PureMove;
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/駒の職業を表す。
Functions
Returns the list of all possible locations that a piece can move to / step on.
Spits out all the possible opponent (downward)’s move that is played from the hop1zuo1 onto the board.
Spits out all the possible opponent (downward)’s move that is played by moving a piece on the board, not from the hop1zuo1.
Converts
relative::Board
into absolute::Board
.
/relative::Board
を absolute::Board
に変換する。Converts
relative::Coord
into absolute::Coord
/relative::Coord
を absolute::Coord
に変換する。Converts
relative::Field
into absolute::Field
.
/relative::Field
を absolute::Field
に変換する。Converts
relative::Piece
into absolute::Piece
/relative::Piece
を absolute::Piece
に変換する。Converts
relative::Side
into absolute::Side
.
/relative::Side
を absolute::Side
に変換する。Converts
absolute::Board
into relative::Board
.
/absolute::Board
を relative::Board
に変換する。Converts
absolute::Coord
into relative::Coord
/absolute::Coord
を relative::Coord
に変換する。Converts
absolute::Field
into relative::Field
.
/absolute::Field
を relative::Field
に変換する。Converts
absolute::Piece
into relative::Piece
.
/absolute::Piece
を relative::Piece
に変換する。Converts
absolute::Side
into relative::Side
.
/absolute::Side
を relative::Side
に変換する。