From 9b1665430fd0379db92000740c7a70045baa1746 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 27 Jul 2026 09:45:58 +0200 Subject: lot of changes --- src/main.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 4b9e965..b8dd297 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,8 +2,6 @@ #include "fen.hpp" #include "repl.hpp" #include -#include -#include #include using namespace std; @@ -25,6 +23,7 @@ void setAllPiecesToEmpty(Board *b) { }; Board initBoard(string startingFEN) { Board b; + b.state = TURN; b.turn = true; b.castle = ""; b.halfMoveClock = 0; @@ -32,6 +31,7 @@ Board initBoard(string startingFEN) { setBoardFen(startingFEN, &b); return b; }; +#define askMode = false int main(int argc, char **argv) { std::string startingFen = @@ -44,16 +44,8 @@ int main(int argc, char **argv) { if (argc == 2) { startingFen = argv[1]; } - println("ENTER which mode you want (REPL)"); - Mode mode = EXIT; - string modeString; - cin >> modeString; - std::transform(modeString.begin(), modeString.end(), modeString.begin(), - ::toupper); - if (modeString == "REPL") { - mode = REPL; - } + Mode mode = REPL; // ADD support for other modes here Board b = initBoard(startingFen); -- cgit v1.2.3