aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/repl.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 2ffa59b..783d96c 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -60,6 +60,15 @@ int startREPL(Board *b) {
std::cout << "Exiting...\n";
return EXIT_SUCCESS;
}
+ if (command == "RESING") {
+ std::cout << "\033[1mOK\033[0m" << "\n";
+ if (b->turn) {
+ b->state = BLACK_WON;
+ } else {
+ b->state = WHITE_WON;
+ }
+ continue;
+ }
if (command == "BOARD") {
printBoard(b);
continue;