From bc598375da7b9a20a35e958afb61dcd690d3d7b7 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 13 Feb 2019 23:32:08 +0100 Subject: Play interactively against AI --- board.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'board.cpp') 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; } -- cgit v1.2.3-54-g00ecf