From 658a797ec8cb5b6d8607fac089e036685f2a3958 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 27 Jul 2026 10:26:54 +0200 Subject: adding enpassant --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b8dd297..706ca28 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ #include "board.hpp" #include "fen.hpp" +#include "moves.hpp" #include "repl.hpp" #include #include @@ -23,6 +24,8 @@ void setAllPiecesToEmpty(Board *b) { }; Board initBoard(string startingFEN) { Board b; + b.enPassant = IndexToPosition(0); // default value + b.canEnpassant = false; b.state = TURN; b.turn = true; b.castle = ""; -- cgit v1.2.3