diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2019-02-13 23:52:46 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2019-02-13 23:52:46 +0100 |
commit | 99f3ad9bc30815213af5c666150daa6080c509db (patch) | |
tree | 9f989bf92a28ec503b15dfa0dd5910cf1120a40b | |
parent | 73e1fc55276661d2cb290876135255e3b534a204 (diff) |
Subtly mark chosen in UI-printed board
-rw-r--r-- | ui.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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': |