00001 /* miniBoardChar50.h 00002 */ 00003 #ifndef OSL_MINIBOARDCHAR50_H 00004 #define OSL_MINIBOARDCHAR50_H 00005 00006 #include "osl/simpleState.h" 00007 #include <string> 00008 namespace osl 00009 { 00010 namespace book 00011 { 00012 class MiniBoardChar50; 00013 bool operator<(const MiniBoardChar50&, const MiniBoardChar50&); 00014 bool operator==(const MiniBoardChar50&, const MiniBoardChar50&); 00018 class MiniBoardChar50 00019 { 00020 public: 00021 MiniBoardChar50(); 00022 explicit MiniBoardChar50(const SimpleState&); 00023 explicit MiniBoardChar50(const std::string &src); 00024 const std::string toString() const; 00025 const SimpleState toSimpleState(Player turn=BLACK) const; 00026 private: 00032 CArray<uint8_t,50> data; 00033 friend bool operator<(const MiniBoardChar50&, const MiniBoardChar50&); 00034 friend bool operator==(const MiniBoardChar50&, const MiniBoardChar50&); 00035 }; 00036 } 00037 } 00038 00039 00040 #endif /* OSL_MINIBOARDCHAR50_H */ 00041 // ;;; Local Variables: 00042 // ;;; mode:c++ 00043 // ;;; c-basic-offset:2 00044 // ;;; End: