alphaBetaPlayer.h Source File

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
alphaBetaPlayer.h
Go to the documentation of this file.
1 /* alphaBetaPlayer.h
2 */
3 #ifndef GAMEPLAYING_ALPHABETAPLAYER_H
4 #define GAMEPLAYING_ALPHABETAPLAYER_H
5
6 #include "osl/game_playing/searchPlayer.h"
7 #include <boost/scoped_ptr.hpp>
8
9 namespace osl
10 {
11 namespace search
12 {
13 struct AlphaBeta2SharedRoot;
14 }
15 namespace game_playing
16 {
17 class AlphaBeta2ProgressEvalPlayer : public SearchPlayer
18 {
19 public:
20 AlphaBeta2ProgressEvalPlayer();
21 ~AlphaBeta2ProgressEvalPlayer();
22 ComputerPlayer* clone() const;
23
24 const MoveWithComment searchWithSecondsForThisMove(const GameState&, const search::TimeAssigned&);
25 bool isReasonableMove(const GameState&, Move move, int pawn_sacrifice);
26 };
27
28 class AlphaBeta2OpenMidEndingEvalPlayer : public SearchPlayer
29 {
30 public:
31 AlphaBeta2OpenMidEndingEvalPlayer();
32 ~AlphaBeta2OpenMidEndingEvalPlayer();
33 ComputerPlayer* clone() const;
34
35 const MoveWithComment searchWithSecondsForThisMove(const GameState&, const search::TimeAssigned&);
36 bool isReasonableMove(const GameState&, Move move, int pawn_sacrifice);
37
38 const MoveWithComment analyzeWithSeconds(const GameState& gs, const search::TimeAssigned& org,
39 search::AlphaBeta2SharedRoot& out);
40 };
41
42 class AlphaBeta3OpenMidEndingEvalPlayer : public SearchPlayer
43 {
44 public:
45 AlphaBeta3OpenMidEndingEvalPlayer();
46 ~AlphaBeta3OpenMidEndingEvalPlayer();
47 ComputerPlayer* clone() const;
48
49 const MoveWithComment searchWithSecondsForThisMove(const GameState&, const search::TimeAssigned&);
50 bool isReasonableMove(const GameState&, Move move, int pawn_sacrifice);
51 };
52
53 class AlphaBeta4Player : public SearchPlayer
54 {
55 public:
56 AlphaBeta4Player();
57 ~AlphaBeta4Player();
58 ComputerPlayer* clone() const;
59
60 const MoveWithComment searchWithSecondsForThisMove(const GameState&, const search::TimeAssigned&);
61 bool isReasonableMove(const GameState&, Move move, int pawn_sacrifice);
62 };
63 } // namespace game_playing
64 } // namespace osl
65
66 #endif /* GAMEPLAYING_ALPHABETAPLAYER_H */
67 // ;;; Local Variables:
68 // ;;; mode:c++
69 // ;;; c-basic-offset:2
70 // ;;; End: