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 &) |
| 局面を比較する. More... | |
SimpleStateよりcompactな局面の表現
Definition at line 59 of file compactBoard.h.
|
inline |
Definition at line 62 of file compactBoard.h.
Referenced by osl::book::opiece_sort::operator()().
|
explicit |
Definition at line 45 of file compactBoard.cc.
References osl::SimpleState::pieceOf(), state(), osl::PieceMask::test(), osl::SimpleState::turn(), and osl::SimpleState::usedMask().
|
inline |
Definition at line 65 of file compactBoard.h.
Referenced by osl::book::operator<<(), and osl::book::operator==().
| osl::SimpleState osl::book::CompactBoard::state | ( | ) | const |
Definition at line 58 of file compactBoard.cc.
References osl::SimpleState::init(), osl::SimpleState::initPawnMask(), osl::book::operator==(), osl::SimpleState::setPiece(), and osl::SimpleState::setTurn().
Referenced by osl::book::WeightedBook::board(), and CompactBoard().
|
inline |
Definition at line 66 of file compactBoard.h.
References osl::book::operator<<(), osl::book::operator==(), and osl::book::operator>>().
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>>().
|
private |
Definition at line 73 of file compactBoard.h.
Referenced by osl::book::operator>>().
1.8.13