summaryrefslogtreecommitdiff
path: root/board.cpp
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2019-02-13 23:32:08 +0100
committerTom Smeding <tom.smeding@gmail.com>2019-02-13 23:32:08 +0100
commitbc598375da7b9a20a35e958afb61dcd690d3d7b7 (patch)
tree764398251e30ae68920e53aa256d7e30b4cf55a0 /board.cpp
parent6175cb1c53772cc92d91a39a254c38bdf8f64905 (diff)
Play interactively against AI
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;
}