[][src]Crate cetkaik_yhuap_move_candidates

Re-exports

pub use pure_move::PureMove;

Modules

absolute

Defines things in the absolute term: "which piece lies in the square LIA?"

pure_move

Structs

Config
MovablePositions
PureGameState

Enums

Color

Denotes the color of a piece

Perspective

Defines a perspective, with which you can transform between the absolute and the relative /どちらの視点で見ているかを表現する型。 視点を固定すると、相対座標表現と絶対座標表現を相互変換することができる。

Profession

Denotes the profession of a piece

Functions

calculate_movable_positions_for_either_side

Returns the list of all possible locations that a piece can move to / step on.

from_hop1zuo1_candidates

Spits out all the possible opponent (downward)'s move that is played from the hop1zuo1 onto the board.

not_from_hop1zuo1_candidates_

Spits out all the possible opponent (downward)'s move that is played by moving a piece on the board, not from the hop1zuo1.

to_absolute_board

Converts relative::Board into absolute::Board. /relative::Boardabsolute::Board に変換する。

to_absolute_coord

Converts relative::Coord into absolute::Coord

to_absolute_field

Converts relative::Field into absolute::Field. /relative::Fieldabsolute::Field に変換する。

to_absolute_piece

Converts relative::Piece into absolute::Piece

to_absolute_side

Converts relative::Side into absolute::Side. /relative::Sideabsolute::Side に変換する。

to_relative_board

Converts absolute::Board into relative::Board. /absolute::Boardrelative::Board に変換する。

to_relative_coord

Converts absolute::Coord into relative::Coord

to_relative_field

Converts absolute::Field into relative::Field. /absolute::Fieldrelative::Field に変換する。

to_relative_piece

Converts absolute::Piece into relative::Piece. /absolute::Piecerelative::Piece に変換する。

to_relative_side

Converts absolute::Side into relative::Side. /absolute::Siderelative::Side に変換する。