summaryrefslogtreecommitdiff
path: root/board.h
diff options
context:
space:
mode:
Diffstat (limited to 'board.h')
-rw-r--r--board.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/board.h b/board.h
index a144ed7..03f096c 100644
--- a/board.h
+++ b/board.h
@@ -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);