This file is indexed.

/usr/include/osl/game_playing/gameState.h is in libosl-dev 0.8.0-1.4.

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
/* gameState.h
 */
#ifndef OSL_GAMESTATE_H
#define OSL_GAMESTATE_H

#include "osl/numEffectState.h"
#include <vector>
namespace osl
{
  class Sennichite;
  class RepetitionCounter;
  namespace container
  {
    class MoveStack;
  }
  namespace hash
  {
    class HashKeyStack;
  }
  namespace game_playing
  {
    /**
     * State と千日手状態などを一元管理
     */
    class GameState
    {
    private:
      struct State;
      std::unique_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& initialState() const;

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

      const std::vector<int>& evalStack() const;
      void generateNotLosingMoves(MoveVector& normal_or_win_or_draw, 
				  MoveVector& loss) const;
      void generateMoves(MoveVector& normal_moves, 
			 MoveVector& win, 
			 MoveVector& draw, 
			 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: