From 40e242dc5450e1661c817b0bad8f9748388c278a Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 28 Jul 2026 19:03:20 +0200 Subject: removing repl and unsuded featuares --- src/main.cpp | 44 ++------------------------------------------ 1 file changed, 2 insertions(+), 42 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index ddeb304..8a1821e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,52 +1,12 @@ -#include "board.hpp" -#include "fen.hpp" -#include "moves.hpp" #include "uci.hpp" #include "zobrist.hpp" -#include + #include #include -#include - -using namespace std; - -enum Mode { - EXIT, - REPL, -}; - -void setAllPiecesToEmpty(Game *b) { - Piece EmptyPiece = { - false, - NONE, - false, - }; - for (int i = 0; i < 64; i++) { - b->pieces[i] = EmptyPiece; - }; -}; -Game initBoard(string startingFEN) { - Game b; - b.enPassant = IndexToPosition(0); // default value - b.canEnpassant = false; - b.state = TURN; - b.turn = true; - b.castle = ""; - b.halfMoveClock = 0; - b.MoveClock = 0; - setBoardFen(startingFEN, &b); - return b; -}; -int main(int argc, char **argv) { +int main() { InitZobrist(); srand(time(0)); - if (argc < 1 || argc > 2) { - printf("wrong arg count, use: ./chess [--repl for debugging]\n"); - return 1; - } - if (argc > 1 && std::string(argv[1]) == "--repl") - return startREPL(); Uci(); return 0; -- cgit v1.2.3