Piece: expanding getLegalMoves for Queen/Knight/Bishop
This commit is contained in:
parent
e5a124d193
commit
6773da28fb
4 changed files with 70 additions and 5 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
#include "Piece.hpp"
|
||||
|
||||
|
|
@ -32,6 +33,7 @@ public:
|
|||
std::vector<std::vector<std::unique_ptr<Piece>>> boardGrid;
|
||||
Board();
|
||||
virtual ~Board();
|
||||
|
||||
void setupInitialPosition();
|
||||
std::unique_ptr<Piece> &getPieceAt(Square square);
|
||||
void movePiece(Square from, Square to);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue