willb335 / chessboardjsx

:black_square_button: Chessboard built for React
https://chessboardjsx.com
MIT License
267 stars 79 forks source link

Rotate board - orientation left right #69

Open pdigre opened 3 years ago

pdigre commented 3 years ago

Currently the "orientation" property allows "black" or "white", I would like it to also support "left" and "right".

Since I am using this for a chess timer app for when two humans are playing eachother. The ipad is located alongside the chessboard and both players use it to mark their moves. It makes more sense to have your pieces close to you left or right side rather the normal up and down orientation.

pdigre commented 3 years ago

I have worked around it by rotating FEN and Moves. I also had to switch color on the light/dark squares. The notation markers are wrong but I can turn them off. This would be so much nicer if it could all have been done by the widget ;-)