/usr/share/pyshared/pychess/Variants/pawnspushed.py is in pychess 0.12~beta3-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 | # Pawns Pushed Chess
from pychess.Utils.const import *
from pychess.Utils.Board import Board
PAWNSPUSHEDSTART = "rnbqkbnr/8/8/pppppppp/PPPPPPPP/8/8/RNBQKBNR w - - 0 1"
class PawnsPushedBoard(Board):
variant = PAWNSPUSHEDCHESS
def __init__ (self, setup=False):
if setup is True:
Board.__init__(self, setup=PAWNSPUSHEDSTART)
else:
Board.__init__(self, setup=setup)
class PawnsPushedChess:
__desc__ = _("FICS wild/8: http://www.freechess.org/Help/HelpFiles/wild.html\n" +
"Pawns start on 4th and 5th ranks rather than 2nd and 7th")
name = _("Pawns Pushed")
cecp_name = "normal"
board = PawnsPushedBoard
need_initial_board = True
standard_rules = True
variant_group = VARIANTS_OTHER
|