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.cpp | |
parent | 6175cb1c53772cc92d91a39a254c38bdf8f64905 (diff) |
Play interactively against AI
Diffstat (limited to 'board.cpp')
-rw-r--r-- | board.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -177,9 +177,6 @@ Bounds Board::computeBounds() const { } void Board::write(ostream &os) const { - static const char *edgeStr = "\x1B[36m+\x1B[0m"; - static const char *openStr = "ยท"; - Bounds bounds = computeBounds(); for (int y = bounds.top; y <= bounds.bottom; y++) { @@ -188,8 +185,8 @@ void Board::write(ostream &os) const { int idx = BSZ * y + x; if (bd[idx] != 0) os << Stone(bd[idx]); - else if (checkEdge(idx)) os << edgeStr; - else os << openStr; + else if (checkEdge(idx)) os << EDGE_STR; + else os << OPEN_STR; } os << endl; } |