- Blind mode tutorial
lichess.org
Donate

Swapping coordinates in Board Editor

A useful addition to the board editor would be a function to swap the coordinates of the board, so the pieces stay at their relative places but the a1 square is now at the top right instead of the bottom left. This is useful for importing positions that were from black's point of view but have been transposed as if they were from white's. I can't find any function like this at the moment in the board editor, but it would be very useful to me. Thanks!

A useful addition to the board editor would be a function to swap the coordinates of the board, so the pieces stay at their relative places but the a1 square is now at the top right instead of the bottom left. This is useful for importing positions that were from black's point of view but have been transposed as if they were from white's. I can't find any function like this at the moment in the board editor, but it would be very useful to me. Thanks!

Oh it seems I didn’t describe it correctly. I’m looking for a function where the coordinates are flipped relative to the pieces.

For example, turning this position: https://lichess.org/analysis/8/8/2K1Q3/4PBP1/5P2/1ppp4/2nk4/8_w_-_-_0_1

into this position: https://lichess.org/analysis/8/4kn2/4ppp1/2P5/1PBP4/3Q1K2/8/8_w_-_-_0_1

Flip board just views the board as it is from a different perspective. Hopefully I’ve been clearer this time.

Oh it seems I didn’t describe it correctly. I’m looking for a function where the coordinates are flipped relative to the pieces. For example, turning this position: https://lichess.org/analysis/8/8/2K1Q3/4PBP1/5P2/1ppp4/2nk4/8_w_-_-_0_1 into this position: https://lichess.org/analysis/8/4kn2/4ppp1/2P5/1PBP4/3Q1K2/8/8_w_-_-_0_1 Flip board just views the board as it is from a different perspective. Hopefully I’ve been clearer this time.

In terms of practical use, the issue commonly arises for me after taking a position from black's perspective such as (for example):

https://imgur.com/cYXgP8b

and running it through an image reader such as: https://www.ocf.berkeley.edu/~abhishek/putz/

which outputs an analysis board such as this: https://lichess.org/analysis/1KR1QB1R/PP3PPP/2P1BN2/6b1/b7/2n2P2/ppp2p1p/1kr1q2r_b_-_-_0_1

The pieces are all correct relative to one another (and even on the right color squares) but no piece is on the correct coordinates, the pawns are traveling the wrong direction, etc. If there was a way to quickly "pick up the pieces, flip the board under them, and place them back down" that would be very useful.

Another hypothetical use case is mindlessly hand copying a diagram into Board Editor using white's perspective, only to realize that the diagram was printed from black's perspective. (Maybe an ambiguous endgame position with the kings traveled up the board.) This function would save having to start over from scratch.

A niche function, to be sure, but a useful one.

In terms of practical use, the issue commonly arises for me after taking a position from black's perspective such as (for example): https://imgur.com/cYXgP8b and running it through an image reader such as: https://www.ocf.berkeley.edu/~abhishek/putz/ which outputs an analysis board such as this: https://lichess.org/analysis/1KR1QB1R/PP3PPP/2P1BN2/6b1/b7/2n2P2/ppp2p1p/1kr1q2r_b_-_-_0_1 The pieces are all correct relative to one another (and even on the right color squares) but no piece is on the correct coordinates, the pawns are traveling the wrong direction, etc. If there was a way to quickly "pick up the pieces, flip the board under them, and place them back down" that would be very useful. Another hypothetical use case is mindlessly hand copying a diagram into Board Editor using white's perspective, only to realize that the diagram was printed from black's perspective. (Maybe an ambiguous endgame position with the kings traveled up the board.) This function would save having to start over from scratch. A niche function, to be sure, but a useful one.

This topic has been archived and can no longer be replied to.