diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
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 <cstdio> -#include <iostream> -#include <print> #include <string> 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); |
