Closed thinktt closed 1 year ago
This is by design. Since chessground itself does not know about chess rules, the configuration needs to be explicit.
true
means the side that is configured as movable (not necessarily the turn from the FEN). In the given examples, this is always white by default, so it's always the white king that is assumed to be in check.
I would recommend using only 'white' | 'black' | false
.
Makes sense. Thanks.
Only seems to happen with certain random fens. Other fens causing the issue as well:
Note, at least all these examples are with the White king when it is blacks move
Workaround: Simply make sure you set check to the actual color that is in check.