aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
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 = "";