summaryrefslogtreecommitdiff
path: root/board.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'board.cpp')
-rw-r--r--board.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/board.cpp b/board.cpp
index c84e72f..fcb82ae 100644
--- a/board.cpp
+++ b/board.cpp
@@ -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;
}