From 94f950b19069c4dbf93fff53e78d673b58c5d14b Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 27 Jul 2026 10:31:28 +0200 Subject: adding resing featuare --- src/repl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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; -- cgit v1.2.3