aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-26 14:10:48 +0200
committerAdam <adammegarules1@gmail.com>2026-07-26 14:10:48 +0200
commitc04f179b9902532a8d5db0c2ebd98460a70fc652 (patch)
tree6fe2718c2a172a24c5bf2fc24030392007c80ffa /src/main.cpp
parent1db141c6c0d87cde4270d50b661162273ef6a9f5 (diff)
making repl work
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index bea30b0..d59195d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,3 +1,5 @@
+#include "board.hpp"
+#include "moves.hpp"
#include <algorithm>
#include <cctype>
#include <cstdint>
@@ -7,9 +9,6 @@
#include <string>
#include <vector>
-#include "board.hpp"
-#include "moves.hpp"
-
Piece NonePiece = {
false,
NONE,
@@ -123,6 +122,10 @@ int main(int argc, char **argv) {
continue;
}
std::println();
+ PlayMove(move, &b);
+ b.MoveClock++;
+ b.turn = !b.turn;
+ printBoard(&b);
}
return EXIT_SUCCESS;
}