Struct usiagent::rule::PartialState[][src]

pub struct PartialState {
Show 14 fields pub sente_self_board: BitBoard, pub sente_opponent_board: BitBoard, pub gote_self_board: BitBoard, pub gote_opponent_board: BitBoard, pub sente_hisha_board: BitBoard, pub gote_hisha_board: BitBoard, pub sente_kaku_board: BitBoard, pub gote_kaku_board: BitBoard, pub sente_kyou_board: BitBoard, pub gote_kyou_board: BitBoard, pub sente_fu_board: BitBoard, pub gote_fu_board: BitBoard, pub sente_opponent_ou_position_board: BitBoard, pub gote_opponent_ou_position_board: BitBoard,
}
Expand description

合法手の生成に内部で利用するビットボードの集合

Fields

sente_self_board: BitBoard

先手視点の先手側の駒のビットボード

sente_opponent_board: BitBoard

先手視点の後手側の駒のビットボード

gote_self_board: BitBoard

後手視点の後手側の駒のビットボード

gote_opponent_board: BitBoard

後手視点の先手側の駒のビットボード

sente_hisha_board: BitBoard

先手の飛車の位置のビットボード

gote_hisha_board: BitBoard

後手の飛車の位置のビットボード

sente_kaku_board: BitBoard

先手の角の位置のビットボード

gote_kaku_board: BitBoard

後手の角の位置のビットボード

sente_kyou_board: BitBoard

先手の香車の位置のビットボード

gote_kyou_board: BitBoard

後手の強者の位置のビットボード

sente_fu_board: BitBoard

先手の歩の位置のビットボード

gote_fu_board: BitBoard

後手の歩の位置のビットボード

sente_opponent_ou_position_board: BitBoard

先手視点の後手の玉の位置のビットボード

gote_opponent_ou_position_board: BitBoard

後手視点の先手の王の位置のビットボード

Implementations

自身に対応する盤面を引数に受け取りStateへと変換して返す。

引数に渡したBanmenが自身の状態に対して正しくない場合は正しく動作しない。

Arguments
  • banmen - 自身に対応する盤面

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.