Added moveList to Board class + some helper functions

This commit is contained in:
rektdie committed 2024-03-21 12:50:03 +01:00
1 parent d0d7af4a79
commit 076ce9b904
4 files changed
+24 -4

No files matched your search

+10
View File
@@ -211,4 +211,14 @@ void Board::PrintBoard() {
std::cout << "+---+---+---+---+---+---+---+---+\n";
std::cout << " a b c d e f g h\n\n";
}
void Board::AddMove(Move move) {
moveList.push_back(move);
}
void Board::ListMoves() {
for (Move move : moveList) {
move.PrintMove();
}
}