From bf74001c193ae18cf208f57c145e8c9b8b88c7e8 Mon Sep 17 00:00:00 2001 From: Stephen Enders Date: Fri, 29 Jan 2021 18:12:04 -0500 Subject: Allow player to pass when no available moves If the player has NO legal moves display the pass option --- src/helper.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/helper.hpp') diff --git a/src/helper.hpp b/src/helper.hpp index b56dc30..f7d6b8d 100644 --- a/src/helper.hpp +++ b/src/helper.hpp @@ -117,9 +117,10 @@ canMovePiece(std::shared_ptr piece, std::shared_ptr> myPieces, std::shared_ptr> enemyPieces); -std::vector -getLegalMoves(std::shared_ptr activePlayer, - std::shared_ptr opponent); +bool +hasMoves(std::shared_ptr activePlayer, + std::shared_ptr opponent, + int roll); sf::Vector2f pos(float c, float r); -- cgit v1.2.3-54-g00ecf