Skip to main content

New answers tagged

2 votes

Changing the FEN position color

Here is another approach. It uses the python chess library to flip the side to move via a null move, which also removes the e.p. square if there is. I also added a condition that the side to move is ...
ferdy's user avatar
  • 4,035
0 votes

Changing the FEN position color

As noted in comments, all that needs to be done is replace the single character that represents the color to go next with it's "opposite", i.e. 'b' -> 'w' or 'w' -> 'b'. Also, the OP ...
GreenMatt's user avatar
  • 3,227

Top 50 recent answers are included