This file is indexed.

/usr/share/games/cuyo/springer.ld is in cuyo-data 2.0.0brl1-2.

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
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#
#   Copyright 2011 Bernhard R. Link
#   Modified 2011 by Immanuel Halupczok
#   Modified 2011 by Mark Weyer
#   Maintenance modifications 2011 by the cuyo developers
#   based heavily on schach.ld and thus also
#     Copyright <=2004 by Immanuel Halupczok
#     Maintenance modifications 2005,2006,2008 by the cuyo developers
#
#   This program is free software; you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# The above notices apply to this file and to:
#   ispBeige.xpm[.gz], ispBraun.xpm[.gz], ispGraubraun.xpm[.gz]
#   ispGrau.xpm[.gz], ispOrange.xpm[.gz], ispRest.xpm[.gz], ispSchwarz.xpm[.gz],
#   ispWeiss.xpm[.gz]
#

Springer={
  name="Knights"
  author="brl & Immi"
  description="Knights connect via knight moves. Pawns don't connect at all."
  numexplode=6
  chaingrass[hard]=1
  pics=isSpringer * 6
  bgcolor=190,210,150
  startpic=isKoenig
  startdist="EEEEEEEEEE","EEEEEEEEEE"
  greypic=isBauer
  topcolor=15,45,20
  textcolor=20,75,25
  toptime=100
  <<
  knightlines={
    switch {
      basekind@(1,0)==isSpringer && kind@(-1,-1)==kind@(1,0) -> {
        [qu=Q_BL_TL] {A*};
        [qu=Q_BR_TR] {A*};
      };
    };
    switch {
      basekind@(1,1)==isSpringer && kind@(1,1)==kind@(-1,0) -> {
        [qu=Q_TL_BL] {A*};
        [qu=Q_TR_BR] {A*};
      };
    };
    switch {
      basekind@(1,-1)==isSpringer && kind@(1,-1)==kind@(-1,0) -> {
        [qu=Q_BL_TL] {D*};
        [qu=Q_BR_TR] {D*};
      };
    };
    switch {
      basekind@(1,0)==isSpringer && kind@(1,0)==kind@(-1,1) -> {
        [qu=Q_TL_BL] {D*};
        [qu=Q_TR_BR] {D*};
      };
    };
    switch {
      basekind@(0,1)==isSpringer && kind@(0,1)==kind@(-1,-1) -> {
        [qu=Q_TR_TL] {B*};
        [qu=Q_BR_BL] {B*};
      };
    };
    switch {
      basekind@(1,1)==isSpringer && kind@(1,1)==kind@(0,-1) -> {
        [qu=Q_TL_TR] {B*};
        [qu=Q_BL_BR] {B*};
      };
    };
    switch {
      basekind@(-1,1)==isSpringer && kind@(-1,1)==kind@(0,-1) -> {
        [qu=Q_TR_TL] {C*};
        [qu=Q_BR_BL] {C*};
      };
    };
    switch {
      basekind@(0,1)==isSpringer && kind@(0,1)==kind@(1,-1) -> {
        [qu=Q_TL_TR] {C*};
        [qu=Q_BL_BR] {C*};
      };
    };
  };
  >>

  isKoenig={
    pics=ispRest.xpm
    << isKoenig={B*}; >>
  }
  isBauer={
    pics=ispRest.xpm
    colourprob=3
    << isBauer={A*}; >>
  }
  isSpringer={
    pics=ispSchwarz.xpm,ispWeiss.xpm,ispGrau.xpm,ispBraun.xpm,ispBeige.xpm,ispOrange.xpm
    neighbours=<neighbours_knight>
    <<
    isSpringer={
      file=kind-isSpringer;
      if kind@(2,1) == kind -> {
        [qu=Q_BR] B*; [qu=Q_TL_BL] B@(1,0)*; [qu=Q_TR_BR] B@(1,0)*;
      };
      if kind@(-2,-1) == kind -> {
        [qu=Q_TL] B*; [qu=Q_BL_TL] B@(-1,0)*; [qu=Q_BR_TR] B@(-1,0)*;
      };
      if kind@(1,2) == kind -> {
        [qu=Q_BR] C*; [qu=Q_TL_TR] C@(0,1)*; [qu=Q_BL_BR] C@(0,1)*;
      };
      if kind@(-1,-2) == kind -> {
        [qu=Q_TL] C*; [qu=Q_TR_TL] C@(0,-1)*; [qu=Q_BR_BL] C@(0,-1)*;
      };
      if kind@(-1,2) == kind -> {
        [qu=Q_BL] D*; [qu=Q_TR_TL] D@(0,1)*; [qu=Q_BR_BL] D@(0,1)*;
      };
      if kind@(1,-2) == kind -> {
        [qu=Q_TR] D*; [qu=Q_TL_TR] D@(0,-1)*; [qu=Q_BL_BR] D@(0,-1)*;
      };
      if kind@(2,-1) == kind -> {
        [qu=Q_TR] E*; [qu=Q_BL_TL] E@(1,0)*; [qu=Q_BR_TR] E@(1,0)*;
      };
      if kind@(-2,1) == kind -> {
        [qu=Q_BL] E*; [qu=Q_TL_BL] E@(-1,0)*; [qu=Q_TR_BR] E@(-1,0)*;
      };
      A*;
    };
    >>
  }
}