Added moveList to Board class + some helper functions
This commit is contained in:
1 parent
d0d7af4a79
commit
076ce9b904
4 files changed
+24
-4
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user