My Project
|
SimpleStateよりcompactな局面の表現 More...
#include <compactBoard.h>
Public Member Functions | |
CompactBoard () | |
CompactBoard (const SimpleState &state) | |
SimpleState | state () const |
const std::vector< OPiece > & | pieces () const |
Player | turn () const |
Private Attributes | |
std::vector< OPiece > | piece_vector |
Player | player_to_move |
Friends | |
std::ostream & | operator<< (std::ostream &os, const CompactBoard &c) |
std::istream & | operator>> (std::istream &os, CompactBoard &c) |
bool | operator== (const CompactBoard &, const CompactBoard &) |
局面を比較する. | |
SimpleStateよりcompactな局面の表現
Definition at line 59 of file compactBoard.h.
|
inline |
Definition at line 62 of file compactBoard.h.
|
explicit |
Definition at line 44 of file compactBoard.cc.
References osl::SimpleState::pieceOf(), osl::PieceMask::test(), osl::SimpleState::turn(), and osl::SimpleState::usedMask().
|
inline |
Definition at line 65 of file compactBoard.h.
References piece_vector.
Referenced by osl::book::operator<<(), and osl::book::operator==().
osl::SimpleState osl::book::CompactBoard::state | ( | ) | const |
Definition at line 57 of file compactBoard.cc.
References osl::SimpleState::init(), osl::SimpleState::initPawnMask(), osl::SimpleState::setPiece(), and osl::SimpleState::setTurn().
Referenced by osl::book::WeightedBook::board().
|
inline |
Definition at line 66 of file compactBoard.h.
References player_to_move.
Referenced by osl::book::operator<<(), osl::book::operator==(), and osl::book::WeightedBook::stateIndex().
|
friend |
|
friend |
局面を比較する.
将棋としての局面(手番や持ち駒を含む)を比較する. NumEffectState等と異なり駒番号は考慮されない.
|
friend |
|
private |
Definition at line 72 of file compactBoard.h.
Referenced by osl::book::operator>>(), and pieces().
|
private |
Definition at line 73 of file compactBoard.h.
Referenced by osl::book::operator>>(), and turn().