Pawn-Duo, (Phalanx) [1]
two adjacent pawns of the same color on the same rank that mutually cover the other's stop square. A Trio are three horizontal friendly pawns, a Quart four horizontal friendly pawns.
Working in the bitboard centric world to determine pawn related pattern set-wise.
Pawns with east or west neighbors are at least member of a duo. Pawns with east and west neighbors at least member of a trio. If two neighbors have both east and west neighbors, it is at least a quart.
An exclusive pawn duo is therefor a pawn with one neighbor, while this neighbor has no other neighbor as well.
Table of Contents
Pawn-Duo, (Phalanx) [1]
two adjacent pawns of the same color on the same rank that mutually cover the other's stop square. A Trio are three horizontal friendly pawns, a Quart four horizontal friendly pawns.
Working in the bitboard centric world to determine pawn related pattern set-wise.
The code snippets rely on shifting bitboards, specially by one step only.
Neighbors
To get pawns with east or west neighbors is simple:or
pawns pawns with east pawns with west pawns with east neighbors neighbors and west neighbors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 1 . . . . . 1 1 . . . . . . . 1 1 . . . . . . 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 . . . . . . 1 . . . . . . . . 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Neighbor Algebra
Pawns with east or west neighbors are at least member of a duo. Pawns with east and west neighbors at least member of a trio. If two neighbors have both east and west neighbors, it is at least a quart.An exclusive pawn duo is therefor a pawn with one neighbor, while this neighbor has no other neighbor as well.
pawns pawns with excl. pawns with excl. duo east neighbor west neighbor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 1 . . . . . 1 . . . . . . . . . 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 . . . . . . 1 . . . . . . . . 1 . . . . . . 1 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .See also
Forum Posts
External Links
Kinga Głyk, Irek Głyk, Rafal Stepien
References
What links here?
Up one Level