All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
computerPlayer.cc
Go to the documentation of this file.
1 /* computerPlayer.cc
2  */
8 #include "osl/misc/random.h"
9 
12 {
13 }
14 
17 {
18  return true;
19 }
20 
23 {
24  speculative_search_allowed = value;
25 }
26 
28 ComputerPlayer::setInitialState(const NumEffectState&)
29 {
30 }
31 
34 {
35  return true;
36 }
37 
40 {
41 }
42 
43 /* ------------------------------------------------------------------------- */
46 {
47 }
48 
49 /* ------------------------------------------------------------------------- */
50 
53 {
54 }
55 
58 {
59 }
62 {
63 }
66 {
67  return MoveWithComment(Move::INVALID());
68 }
69 
70 /* ------------------------------------------------------------------------- */
71 
74 {
75 }
76 
79 {
80 }
83 {
84 }
86 RandomPlayer::selectBestMove(const GameState& state, int, int, int)
87 {
88  MoveVector moves;
90  if (moves.empty())
91  return MoveWithComment(Move::INVALID());
92  return MoveWithComment(moves[time_seeded_random() % moves.size()]);
93 }
94 
95 /* ------------------------------------------------------------------------- */
96 // ;;; Local Variables:
97 // ;;; mode:c++
98 // ;;; c-basic-offset:2
99 // ;;; End: