gbtami / pychess-variants

Chess variant server
https://www.pychess.org
GNU Affero General Public License v3.0
235 stars 114 forks source link

Janggi: highlight the general in bikjang #234

Open Kadagaden opened 4 years ago

Kadagaden commented 4 years ago

When the generals are facing each other, highlight the player's general whose turn to move (like in check when red highlight is used).

screenshot

It could be orange to differentiate it from check (red).

Example css:

background: #ffb60a;
filter: blur(10px);
border-radius: 10px;
gbtami commented 4 years ago

We should expose bikjang() https://github.com/ianfab/Fairy-Stockfish/blob/master/src/position.h#L176 in Fairy bindings to get this info.