Skip to content
Snippets Groups Projects
Commit ae35c97c authored by Clément Desberg's avatar Clément Desberg
Browse files

commited on 20240509

parent 8627c54d
Branches
No related merge requests found
......@@ -90,4 +90,10 @@ bool piece::get_has_moved(){
/// @return the type of the piece
piece_type piece::get_type(){
return type;
}
/// @brief retrieve the piece's legal moves
/// @return the legal moves vectro
std::vector<coordinates> piece::get_legals(){
return legals;
}
\ No newline at end of file
......@@ -27,6 +27,7 @@ class piece{
bool get_color();
bool get_has_moved();
piece_type get_type();
std::vector<coordinates> get_legals();
};
#endif
\ No newline at end of file
No preview for this file type
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment