diff options
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; } |