Mari's Tarot
 All Classes Files Functions Variables Enumerations Enumerator Friends
Beginner.hpp
Go to the documentation of this file.
1 /*
2  * Tarot is an application for Android system to play to French Tarot.
3  * Please visit https://github.com/richoux/Tarot for further information.
4  *
5  * Copyright (C) 2013-2016 Florian Richoux
6  *
7  * This file is part of Tarot.
8  * Tarot is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12 
13  * Tarot is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17 
18  * You should have received a copy of the GNU General Public License
19  * along with Tarot. If not, see http://www.gnu.org/licenses/.
20  */
21 
22 #pragma once
23 
24 #include <vector>
25 #include <set>
26 #include <memory>
27 
28 #include "Biddings.hpp"
29 #include "Card.hpp"
30 #include "StratDiff.hpp"
31 
32 using namespace std;
33 
35 
39 class Beginner : public StratDiff
40 {
41 public:
43 
50  Biddings bid( const Biddings bestBid, const int numberOudlers, const bool chelemAnnounced) const;
51 
53 
59  set< shared_ptr<Card> > makeEcart( const int dogSize, const vector< shared_ptr<Card> >& allCards) const;
60 
62 
66  shared_ptr<Card> playCard( const vector< shared_ptr<Card> >& cardsCanPlay) const;
67 };
One of the proposed difficulty.
Definition: Beginner.hpp:39
Biddings
The enum containing all official biddings.
Definition: Biddings.hpp:35
StratDiff is the abstract class handling the Strategy pattern for applying different AI difficulties...
Definition: StratDiff.hpp:34