aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-27 10:26:54 +0200
committerAdam <adammegarules1@gmail.com>2026-07-27 10:26:54 +0200
commit658a797ec8cb5b6d8607fac089e036685f2a3958 (patch)
tree2de2efc25079b74ab4cf8cdcba9ea5c4e0469ece /src/main.cpp
parent9b1665430fd0379db92000740c7a70045baa1746 (diff)
adding enpassant
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
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 <cstdio>
#include <string>
@@ -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 = "";