Vertical+Flipping

toc =Sample Position=
 * Home * Chess * Position * Vertical Flipping**
 * [[image:http://upload.wikimedia.org/wikipedia/commons/4/4f/FrontAerial.gif link="http://en.wikipedia.org/wiki/File:FrontAerial.gif"]] ||~ || **Vertical Flipping** mirrors all pieces along the horizontal axis between the 4th and 5th rank. Opposed to color flipping it does not swap the piece colors and side to move, and therefor with respect to the front span of pawns, is only applicable in pawn-less endgames with castling no longer possible, and results in an equivalent position with identical evaluation and same number of attacks and moves. Along with horizontal and/or diagonal mirroring, vertical flipping is used in pawn-less endgame tablebases to restrict a white king to the 10 squares of the a1-d4-d1 triangle of the board. ||
 * Acrobatic Flip ||~ ||^ ||
 * ~ Original ||~ ||~ Vertical Flip ||~ ||~ Color Flip ||
 * [[image:http://webchess.freehostia.com/diag/chessdiag.php?fen=k7/8/NK2B3/8/8/8/8/8%20w%20-%20-&size=small&coord=yes&cap=no&stm=yes&fb=no&theme=classic&color1=E3CEAA&color2=635147&color3=000000]] ||~ || [[image:http://webchess.freehostia.com/diag/chessdiag.php?fen=8/8/8/8/8/NK2B3/8/k7%20w%20-%20-&size=small&coord=yes&cap=no&stm=yes&fb=no&theme=classic&color1=E3CEAA&color2=635147&color3=000000]] ||~ || [[image:http://webchess.freehostia.com/diag/chessdiag.php?fen=8/8/8/8/8/nk2b3/8/K7%20b%20-%20-&size=small&coord=yes&cap=no&stm=yes&fb=no&theme=classic&color1=E3CEAA&color2=635147&color3=000000]] ||
 * k7/8/NK2B3/8/8/8/8/8 w - - ||~ || 8/8/8/8/8/NK2B3/8/k7 w - - ||~ || 8/8/8/8/8/nk2b3/8/K7 b - - ||

=Flipping an 8x8 Board= An 8x8 Board with a rank-file mapping, needs to perform an exclusive or with 56 (A8 in LERF) to vertically flip square coordinates. A pure 8x8 Board may be vertically flipped that way in C: code format="cpp" int board[64], sq, s, f;

for (sq = 0; sq < 32; ++sq) { s = board[sq]; board[sq] = board[sq^56]; board[sq^56] = s; } code

=See also=
 * Color Flipping
 * Diagonal Mirroring
 * Flipping, Mirroring and Rotating of Bitboards
 * Horizontal Mirroring

=External Links= > [|ausflippen - Wiktionary]
 * [|flip - Wiktionary]
 * [|Flip from Wikipedia]
 * [|Flip (mathematics) from Wikipedia]
 * [|Reflection (mathematics) from Wikipedia]
 * [|Reflection (physics) from Wikipedia]
 * [|Reflection symmetry from Wikipedia]

=References= =What links here?= include page="Vertical Flipping" component="backlinks" limit="40"
 * Up one Level**