From 99f3ad9bc30815213af5c666150daa6080c509db Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Wed, 13 Feb 2019 23:52:46 +0100 Subject: Subtly mark chosen in UI-printed board --- ui.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui.cpp b/ui.cpp index 82b9158..f1bd84a 100644 --- a/ui.cpp +++ b/ui.cpp @@ -78,8 +78,12 @@ int UI::getMove(const Board &bd) { case KEY_LF: case KEY_CR: - if (cells[cury][curx] == -1) done = true; - else bel(); + if (cells[cury][curx] == -1) { + cout << "\x1B[36m#\x1B[0m\x1B[D"; + done = true; + } else { + bel(); + } break; case 'q': -- cgit v1.2.3-54-g00ecf