diff --git a/src/ui/components/Moves.tsx b/src/ui/components/Moves.tsx index 8730f25..2bf9aa2 100644 --- a/src/ui/components/Moves.tsx +++ b/src/ui/components/Moves.tsx @@ -20,7 +20,11 @@ const Moves: Component<{

- {state.game.getPosition(0).turn === "w" ? "White" : "Black"} to move. + {state.game.getPosition(0).mate + ? "Checkmate." + : state.game.getPosition(0).turn === "w" + ? "White to move." + : "Black to move."}