One of the proposed difficulty. More...
#include <Beginner.hpp>
Public Member Functions | |
Biddings | bid (const Biddings bestBid, const int numberOudlers, const bool chelemAnnounced) const |
Called to decide if we propose a bid or not, and if any, what bid. More... | |
set< shared_ptr< Card > > | makeEcart (const int dogSize, const vector< shared_ptr< Card > > &allCards) const |
To make the ecart once we take the dog. More... | |
shared_ptr< Card > | playCard (const vector< shared_ptr< Card > > &cardsCanPlay) const |
Choose what card we play, given the first card and the highest trump of the trick. More... | |
One of the proposed difficulty.
Beginner is one of the concrete class of the Strategy pattern dealing with the game difficulty (i.e., how good the AI is).
|
virtual |
Called to decide if we propose a bid or not, and if any, what bid.
bid is delegated to the difficulty Strategy.
bestBid | The best bid proposed so far. |
numberOudlers | The number of oudlers we have in our hand. |
chelemAnnounced | A Boolean to know if someone has declared a chelem. |
Implements StratDiff.
|
virtual |
To make the ecart once we take the dog.
makeEcart is delegated to the difficulty Strategy.
dogSize | The number of card we must include into the ecart. |
allCards | The vector of all our cards, including the dog. |
Implements StratDiff.
|
virtual |
Choose what card we play, given the first card and the highest trump of the trick.
cardCanPlay | The vector of cards one is allowed to play. |
Implements StratDiff.