niklasf / rust-chessground

An experimental chessboard widget for Relm/GTK
https://docs.rs/chessground
GNU General Public License v3.0
65 stars 7 forks source link

[feature] Adding a indicator for the player turn #3

Closed loloof64 closed 5 years ago

loloof64 commented 5 years ago

Hi, is it planed to add a kind of indicator for the player turn, or does this feature already exists ? Because I could not find any way to do this, even looking at the source.

Regards

niklasf commented 5 years ago

Hi, one way would be to infer it from the last_move indicator (the squares highlighted in green).

image

Does that suffice for your use case?

loloof64 commented 5 years ago

Hi, thank you very much for your answer.

Your solution could cover most cases. However sometimes there can be a different starting position and so I need to show whose turn is.

loloof64 commented 5 years ago

In order to clarify,

Most chess programs let you select the first position of the game (the overall pieces positions), and also indicates in some manner whose turn it is. For example ChessBase. An useful use case is for generating chess endings for training.

niklasf commented 5 years ago

Now drawing a little circle in the corner.

loloof64 commented 5 years ago

Thank you very much :smiley: