From bc598375da7b9a20a35e958afb61dcd690d3d7b7 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 13 Feb 2019 23:32:08 +0100 Subject: Play interactively against AI --- board.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'board.h') 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); -- cgit v1.2.3-54-g00ecf