diff options
| author | Adam <adammegarules1@gmail.com> | 2026-07-28 19:03:20 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-07-28 19:03:20 +0200 |
| commit | 40e242dc5450e1661c817b0bad8f9748388c278a (patch) | |
| tree | 569053925f92516b1ee52a7e21ed9e1c75e1e3a0 /src/main.cpp | |
| parent | b2dbf812cb9e6da5f69a2b74c24c97d09fa7a684 (diff) | |
removing repl and unsuded featuares
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 44 |
1 files changed, 2 insertions, 42 deletions
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 <cstdio> + #include <cstdlib> #include <ctime> -#include <string> - -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; |
