/usr/include/osl/game_playing/winCountTracer.h is in libosl-dev 0.6.0-3.3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | /* winCountTracer.h
*/
#ifndef GAME_PLAYING_WINCOUNTTRACER_H
#define GAME_PLAYING_WINCOUNTTRACER_H
#include "osl/game_playing/openingBookTracer.h"
#include "osl/stl/stack.h"
namespace osl
{
namespace record
{
namespace opening
{
class WinCountBook;
}
}
namespace game_playing
{
/**
* WinCountBookの追跡
*/
class WinCountTracer : public OpeningBookTracer
{
public:
typedef record::opening::WinCountBook WinCountBook;
private:
WinCountBook& book;
int state_index;
Player turn;
int randomness;
bool verbose;
osl::stack<int> state_stack;
public:
/* @param randomness ゼロ以外の場合,最良でない手も確率的に選択 */
explicit WinCountTracer(WinCountBook&,
int randomness=0, bool verbose=false);
WinCountTracer(const WinCountTracer&);
OpeningBookTracer* clone() const;
void update(Move);
const Move selectMove() const;
int stateIndex() const { return state_index; }
bool isOutOfBook() const;
void popMove();
};
} // namespace game_playing
} // namespace osl
#endif /* _WINCOUNTTRACER_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End:
|