diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2019-02-13 23:32:08 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2019-02-13 23:32:08 +0100 |
commit | bc598375da7b9a20a35e958afb61dcd690d3d7b7 (patch) | |
tree | 764398251e30ae68920e53aa256d7e30b4cf55a0 /board.h | |
parent | 6175cb1c53772cc92d91a39a254c38bdf8f64905 (diff) |
Play interactively against AI
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); |