aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/moves.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/moves.cpp b/src/moves.cpp
index 008020d..8a7feb5 100644
--- a/src/moves.cpp
+++ b/src/moves.cpp
@@ -103,8 +103,8 @@ void GeneratePawnMoves(Game *b, int from, std::vector<Move> &moves) {
std::vector<Move> GetPseudoLegalMoves(Game *b) {
std::vector<Move> moves;
- moves.reserve(50); // almost all position dont have that many moves
-
+ moves.reserve(20);
+
constexpr std::array<int, 4> rook_Moves{-1, 1, 8, -8};
constexpr std::array<int, 4> bishop_Moves{-9, 9, -7, 7};