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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PartialState
impl Send for PartialState
impl Sync for PartialState
impl Unpin for PartialState
impl UnwindSafe for PartialState
Blanket Implementations
Mutably borrows from an owned value. Read more