My Project
miniBoardChar50.h
Go to the documentation of this file.
1 /* miniBoardChar50.h
2  */
3 #ifndef OSL_MINIBOARDCHAR50_H
4 #define OSL_MINIBOARDCHAR50_H
5 
6 #include "osl/simpleState.h"
7 #include <string>
8 namespace osl
9 {
10  namespace book
11  {
12  class MiniBoardChar50;
13  bool operator<(const MiniBoardChar50&, const MiniBoardChar50&);
14  bool operator==(const MiniBoardChar50&, const MiniBoardChar50&);
19  {
20  public:
22  explicit MiniBoardChar50(const SimpleState&);
23  explicit MiniBoardChar50(const std::string &src);
24  const std::string toString() const;
25  const SimpleState toSimpleState(Player turn=BLACK) const;
26  private:
33  friend bool operator<(const MiniBoardChar50&, const MiniBoardChar50&);
34  friend bool operator==(const MiniBoardChar50&, const MiniBoardChar50&);
35  };
36  }
37 }
38 
39 
40 #endif /* OSL_MINIBOARDCHAR50_H */
41 // ;;; Local Variables:
42 // ;;; mode:c++
43 // ;;; c-basic-offset:2
44 // ;;; End:
const std::string toString() const
CArray< uint8_t, 50 > data
friend bool operator<(const MiniBoardChar50 &, const MiniBoardChar50 &)
friend bool operator==(const MiniBoardChar50 &, const MiniBoardChar50 &)
const SimpleState toSimpleState(Player turn=BLACK) const
bool operator<(const MiniBoardChar50 &, const MiniBoardChar50 &)
bool operator==(const CompactBoard &, const CompactBoard &)
局面を比較する.
Definition: compactBoard.cc:73
Player
Definition: basic_type.h:8
@ BLACK
Definition: basic_type.h:9