Skip to content

Two kinds of pawns doesnt work, its bad pawn definition or something else ? #1008

@Dropzila

Description

@Dropzila

Hi, i tried several ways how to define second type of pawn with only difference that second type will promoted walk only as knight,
but always ended with problem that initial doublestep doesnt work and custom pawn cannot be taken e.p.

[001twopawns:chess]
# second pawn type "Z" should move like a standard pawn (forward push + diagonal capture +double step once from initial 2nd and 7th rank) but promoted walk only as Knight


#customPiece1 = z:fmWfceF
#moves like pawn but cannot make double step from 2nd rank

customPiece1 = z:fmW2fceF
#makes double step but always not only in first initial move from 2nd rank

# "z" always promotes into a knight, no other option

promotedPieceType = z:n
mandatoryPiecePromotion = true


pieceToCharTable = PNBRQ....Z.........Kpnbrq....z.........k

# start position with two kinds of pawns (p z) on both sides
startFen = rnbqkbnr/ppzpzpzz/8/8/8/8/ZPPPZZPP/RNBQKBNR w KQkq - 0 1


#Summary of problems: can go doublestep always and cannot be taken e.p.

When tried add zones for en passant, also didnt work

[002twopawns:chess]
# second pawn type "Z" should move like a standard pawn (forward push + diagonal capture +double step once from initial 2nd and 7th rank) but promoted walk only as Knight


customPiece1 = z:fmW2fceF
pawnTypes = z

doubleStepRegionWhite = *2

doubleStepRegionBlack = *7
#z should be able doublestep only from 2 rank, but can do it from any rank now, Hmm??


# "z" always promotes into a knight only
promotedPieceType = z:n
mandatoryPiecePromotion = true

enPassantTypes = z
#p can be taken by z e.p. but  z cannot be taken e.p. Hmm??


pieceToCharTable = PNBRQ....Z.........Kpnbrq....z.........k

# start position with two kinds of pawns on both sides
startFen = rnbqkbnr/ppzpzpzz/8/8/8/8/ZPPPZZPP/RNBQKBNR w KQkq - 0 1


#Summary of problems: z can go doublestep always and cannot be taken e.p. and also promoting to n only doesnt works now

Thanks for any comment,
what is bad ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions