/usr/include/osl/move_classifier/trapRook.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 | /* trapRook.h
*/
#ifndef OSL_MOVE_CLASSIFIER_TRAPROOK_H
#define OSL_MOVE_CLASSIFIER_TRAPROOK_H
#include "osl/state/numEffectState.h"
namespace osl
{
namespace move_classifier
{
/**
* @param 指す側 alt(P)の飛車を封じ込める(のに結構な確率で貢献する)手かどうか
*/
template <Player P>
struct TrapRook
{
static bool
#ifdef __GNUC__
__attribute__ ((pure))
#endif
isMember(const NumEffectState& state,
Ptype ptype,Square from,Square to);
private:
template <Direction Dir>
static bool
#ifdef __GNUC__
__attribute__ ((pure))
#endif
testDirection(const NumEffectState& state, Square initial);
};
} // namespace move_classifier
} // namespace osl
#endif /* OSL_MOVE_CLASSIFIER_TRAPROOK_H */
// ;;; Local Variables:
// ;;; mode:c++
// ;;; c-basic-offset:2
// ;;; coding:utf-8
// ;;; End:
|