More compact board than CompactBoard. More...
#include <miniBoard.h>
| Public Member Functions | |
| MiniBoard () | |
| MiniBoard (const state::SimpleState &state) | |
| SimpleState | getState () const | 
| boost::dynamic_bitset | toBits () const | 
| std::string | toBase64 () const | 
| Static Public Attributes | |
| static const size_t | total_bits = 400 | 
| Private Types | |
| typedef osl::vector< OPSquare > | PawnArray | 
| typedef osl::vector< OPSquare > | LanceArray | 
| typedef osl::vector< OPSquare > | KnightArray | 
| typedef osl::vector< OPSquare > | SilverArray | 
| typedef osl::vector< OPSquare > | BishopArray | 
| typedef osl::vector< OPSquare > | RookArray | 
| typedef osl::vector< OSquare > | GoldArray | 
| typedef osl::CArray< char, 2 > | KingArray | 
| Friends | |
| int | fromBase64 (const std::string &base64, MiniBoard &mb) | 
| Converts a base64 string to MiniBoard.  More... | |
More compact board than CompactBoard.
400 bits. PAWNs 1 - 180 LANCEs 181 - 220 KNIGHTs 221 - 260 SILVERs 261 - 300 BISHOPs 301 - 320 ROOKs 321 - 340 GOLDs 341 - 376 Black KING 377 - 384 White KING 385 - 392 not used 393 - 399 turn 400 (0: Black; 1:White)
Definition at line 103 of file miniBoard.h.
| 
 | private | 
Definition at line 117 of file miniBoard.h.
| 
 | private | 
Definition at line 119 of file miniBoard.h.
| 
 | private | 
Definition at line 120 of file miniBoard.h.
| 
 | private | 
Definition at line 115 of file miniBoard.h.
| 
 | private | 
Definition at line 114 of file miniBoard.h.
| 
 | private | 
Definition at line 113 of file miniBoard.h.
| 
 | private | 
Definition at line 118 of file miniBoard.h.
| 
 | private | 
Definition at line 116 of file miniBoard.h.
| 
 | inline | 
Definition at line 107 of file miniBoard.h.
| 
 | explicit | 
| SimpleState osl::record::MiniBoard::getState | ( | ) | const | 
Definition at line 112 of file miniBoard.cc.
References osl::BISHOP, bishop_pieces, osl::record::OPiece::bits2Square(), osl::BLACK, osl::GOLD, gold_pieces, osl::Piece::isPromoted(), osl::KING, king_pieces, osl::KNIGHT, knight_pieces, osl::LANCE, lance_pieces, osl::PAWN, pawn_pieces, osl::promote(), osl::ROOK, rook_pieces, osl::SILVER, silver_pieces, turn, and osl::WHITE.
| std::string osl::record::MiniBoard::toBase64 | ( | ) | const | 
Definition at line 251 of file miniBoard.cc.
References osl::misc::base64Encode(), and toBits().
| boost::dynamic_bitset osl::record::MiniBoard::toBits | ( | ) | const | 
Definition at line 178 of file miniBoard.cc.
References bishop_pieces, osl::BLACK, gold_pieces, king_pieces, knight_pieces, lance_pieces, pawn_pieces, rook_pieces, silver_pieces, osl::record::OSquare::total_bits, osl::record::OPSquare::total_bits, total_bits, and turn.
Referenced by toBase64().
| 
 | friend | 
Converts a base64 string to MiniBoard.
Definition at line 257 of file miniBoard.cc.
| 
 | private | 
Definition at line 127 of file miniBoard.h.
Referenced by osl::record::fromBase64(), getState(), and toBits().
| 
 | private | 
Definition at line 129 of file miniBoard.h.
Referenced by osl::record::fromBase64(), getState(), and toBits().
| 
 | private | 
Definition at line 130 of file miniBoard.h.
Referenced by osl::record::fromBase64(), getState(), and toBits().
| 
 | private | 
Definition at line 125 of file miniBoard.h.
Referenced by osl::record::fromBase64(), getState(), and toBits().
| 
 | private | 
Definition at line 124 of file miniBoard.h.
Referenced by osl::record::fromBase64(), getState(), and toBits().
| 
 | private | 
Definition at line 123 of file miniBoard.h.
Referenced by osl::record::fromBase64(), getState(), and toBits().
| 
 | private | 
Definition at line 128 of file miniBoard.h.
Referenced by osl::record::fromBase64(), getState(), and toBits().
| 
 | private | 
Definition at line 126 of file miniBoard.h.
Referenced by osl::record::fromBase64(), getState(), and toBits().
| 
 | static | 
Definition at line 106 of file miniBoard.h.
Referenced by osl::record::fromBase64(), and toBits().
| 
 | private | 
Definition at line 131 of file miniBoard.h.
Referenced by osl::record::fromBase64(), getState(), and toBits().
 1.8.4
 1.8.4