using fixed size array instead of vector to store moves
This commit is contained in:
1 parent
d566c6d0e4
commit
6e8f7e3d86
5 files changed
+19
-14
No files matched your search
+3
-3
@@ -3,7 +3,6 @@
|
||||
#include "bitboards.h"
|
||||
#include "types.h"
|
||||
#include "move.h"
|
||||
#include <vector>
|
||||
|
||||
class Board {
|
||||
public:
|
||||
@@ -17,7 +16,8 @@ public:
|
||||
|
||||
Bitboard occupied;
|
||||
|
||||
std::vector<Move> moveList;
|
||||
std::array<Move, 218> moveList;
|
||||
int currentMoveIndex = 0;
|
||||
|
||||
bool sideToMove = White;
|
||||
int halfMoves = 0;
|
||||
@@ -46,4 +46,4 @@ public:
|
||||
|
||||
void Promote(int square, int pieceType, int color, bool isCapture);
|
||||
void MakeMove(Move move);
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user