1"""Pawns Pushed Chess""" 2 3from pychess.Utils.const import PAWNSPUSHEDCHESS, VARIANTS_OTHER 4from pychess.Utils.Board import Board 5 6PAWNSPUSHEDSTART = "rnbqkbnr/8/8/pppppppp/PPPPPPPP/8/8/RNBQKBNR w - - 0 1" 7 8 9class PawnsPushedBoard(Board): 10 """:Description: Standard chess rules but the start setup position is all the white pawns 11 start on the 4th rank and all the black pawns start on the 5th rank 12 """ 13 variant = PAWNSPUSHEDCHESS 14 __desc__ = _("FICS wild/8: http://www.freechess.org/Help/HelpFiles/wild.html\n" + 15 "Pawns start on 4th and 5th ranks rather than 2nd and 7th") 16 name = _("Pawns Pushed") 17 cecp_name = "normal" 18 need_initial_board = True 19 standard_rules = True 20 variant_group = VARIANTS_OTHER 21 22 def __init__(self, setup=False, lboard=None): 23 if setup is True: 24 Board.__init__(self, setup=PAWNSPUSHEDSTART, lboard=lboard) 25 else: 26 Board.__init__(self, setup=setup, lboard=lboard) 27