@@ -574,7 +574,7 @@ def chess_character_display(
574
574
is_potential_capture = True # let's highlight checks in "see solution" mode
575
575
576
576
horizontal_translation = (
577
- ("left-3 " if is_knight else "left-0" )
577
+ ("left-2 " if ( is_knight or is_king ) else "left-0" )
578
578
if is_from_original_left_hand_side
579
579
else "right-0"
580
580
)
@@ -607,9 +607,9 @@ def chess_character_display(
607
607
)
608
608
if is_highlighted
609
609
else (
610
- "drop-shadow-piece-symbol -w"
610
+ "drop-shadow-piece-unit -w"
611
611
if piece_player_side == "w"
612
- else "drop-shadow-piece-symbol -b"
612
+ else "drop-shadow-piece-unit -b"
613
613
)
614
614
),
615
615
"drop-shadow-potential-capture" if is_potential_capture else "" ,
@@ -675,9 +675,9 @@ def chess_unit_symbol_display(
675
675
676
676
is_knight , is_pawn = piece_type == "n" , piece_type == "p"
677
677
678
- # We always display a "w" symbol, because for some reason I find the board
679
- # game clearer that way. We'll just make it a bit less white for "b" pieces.
680
- unit_symbol_class = chess_unit_symbol_class ( player_side = "w" , piece_name = piece_name )
678
+ unit_symbol_class = chess_unit_symbol_class (
679
+ player_side = player_side , piece_name = piece_name
680
+ )
681
681
682
682
symbol_class = (
683
683
# We have to do some ad-hoc adjustments for Knights and Pawns:
@@ -691,7 +691,6 @@ def chess_unit_symbol_display(
691
691
if player_side == "w"
692
692
else "drop-shadow-piece-symbol-b"
693
693
),
694
- * (("brightness-60" ,) if player_side == "b" else []),
695
694
unit_symbol_class ,
696
695
)
697
696
symbol_display = div (
0 commit comments