diff options
Diffstat (limited to 'board.h')
-rw-r--r-- | board.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -57,6 +57,7 @@ public: void write(ostream &os) const; Bounds computeBounds() const; + bool checkEdge(int idx) const; private: // 0 = empty, 1...NC = coloured stones @@ -73,7 +74,6 @@ private: int countStones(uint8_t clr, int idx, int delta) const; void newEdgeCand(int idx); - bool checkEdge(int idx) const; }; struct Stone { @@ -81,5 +81,8 @@ struct Stone { inline Stone(uint8_t clr) : clr(clr) {} }; +#define EDGE_STR "\x1B[36m+\x1B[0m" +#define OPEN_STR "ยท" + ostream& operator<<(ostream &os, Stone stone); ostream& operator<<(ostream &os, const Board &bd); |