This file is indexed.

/usr/include/osl/game_playing/gameState.h is in libosl-dev 0.6.0-3.1.

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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/* gameState.h
 */
#ifndef OSL_GAMESTATE_H
#define OSL_GAMESTATE_H

#include "osl/state/numEffectState.h"
#include "osl/stl/vector.h"
#include <boost/scoped_ptr.hpp>
#include <boost/shared_ptr.hpp>
namespace osl
{
  class Sennichite;
  class RepetitionCounter;
  namespace state
  {
    class SimpleState;
  }
  namespace container
  {
    class MoveStack;
    class MoveVector;
  }
  namespace hash
  {
    class HashKeyStack;
  }
  namespace game_playing
  {
    /**
     * State と千日手状態などを一元管理
     */
    class GameState
    {
    private:
      struct State;
      boost::scoped_ptr<State> stack;
      explicit GameState(const State& src);
    public:
      explicit GameState(const SimpleState& initial_state);
      ~GameState();

      enum MoveType { VALID, PAWN_DROP_FOUL, UNSAFE_KING, OTHER_INVALID };
      MoveType isIllegal(Move m) const;
      const Sennichite pushMove(Move m, int eval=0);
      const Move popMove();
      bool canPopMove() const;

      const NumEffectState& state() const;
      const RepetitionCounter& counter() const;
      const container::MoveStack& moveHistory() const;
      const hash::HashKeyStack& hashHistory() const;
      int moves() const;
      int chessMoves() const { return moves() / 2 + 1; }
      const SimpleState& getInitialState() const;

      /**
       * GameState のコピーを作る.
       * 現在の局面を初期局面として扱うため,
       * pushMoveしない限りpopMoveはできない
       */
      const boost::shared_ptr<GameState> clone() const;

      const vector<int>& evalStack() const;
      void generateNotLosingMoves(container::MoveVector& normal_or_win_or_draw, 
				  container::MoveVector& loss) const;
      void generateMoves(container::MoveVector& normal_moves, 
			 container::MoveVector& win, 
			 container::MoveVector& draw, 
			 container::MoveVector& loss) const;
      bool rejectByStack(Move move) const;
    };
  } // namespace game_playing
} // namespace osl

#endif /* OSL_GAMESTATE_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; End: