18 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
19 |
*****************************************************************************/ |
*****************************************************************************/ |
20 |
|
|
|
/* $Id$ */ |
|
|
|
|
21 |
#ifndef _TRAINING_H_ |
#ifndef _TRAINING_H_ |
22 |
#define _TRAINING_H_ |
#define _TRAINING_H_ |
23 |
|
|
44 |
/************************* |
/************************* |
45 |
* Game handling |
* Game handling |
46 |
*************************/ |
*************************/ |
47 |
|
|
48 |
/// play a round on the board |
/// Play a round on the board |
49 |
virtual int play(int player, Round& round); |
virtual int play(int player, Round& oRound); |
50 |
virtual int back(); |
virtual int back(); |
51 |
|
using Game::back; |
52 |
|
|
53 |
/// search for the best possibilities |
/// Search for the best possibilities |
54 |
void search(); |
void search(); |
55 |
const Results& getResults() const { return m_results; } |
const Results& getResults() const { return m_results; } |
56 |
|
|
57 |
/// play result 'n' |
/// Play result 'n' |
58 |
int playResult(int); |
int playResult(int); |
59 |
|
|
60 |
/// Place a temporary word on the board for preview purpose |
/// Place a temporary word on the board for preview purpose |
64 |
void removeTestPlay(); |
void removeTestPlay(); |
65 |
|
|
66 |
/// Get the temporary word |
/// Get the temporary word |
67 |
std::string getTestPlayWord(); |
std::string getTestPlayWord() const; |
68 |
|
|
69 |
int setRack(PlayedRack::set_rack_mode mode, bool check, std::string rack); |
int setRack(PlayedRack::set_rack_mode mode, bool check, const std::string& rack); |
70 |
|
|
71 |
private: |
private: |
72 |
// Private constructor and destructor to force using the GameFactory class |
// Private constructor and destructor to force using the GameFactory class |
80 |
|
|
81 |
#endif /* _TRAINING_H_ */ |
#endif /* _TRAINING_H_ */ |
82 |
|
|
83 |
|
|
84 |
/// Local Variables: |
/// Local Variables: |
85 |
/// mode: hs-minor |
/// mode: hs-minor |
86 |
/// c-basic-offset: 4 |
/// c-basic-offset: 4 |