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 706ca28..555e728 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3,6 +3,8 @@
#include "moves.hpp"
#include "repl.hpp"
#include <cstdio>
+#include <cstdlib>
+#include <ctime>
#include <string>
using namespace std;
@@ -37,6 +39,7 @@ Board initBoard(string startingFEN) {
#define askMode = false
int main(int argc, char **argv) {
+ srand(time(0));
std::string startingFen =
"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1";
if (argc < 1 || argc > 2) {