From 540f8f1941456643946952f5f03bb2babb8c6a10 Mon Sep 17 00:00:00 2001 From: Maciej Caderek Date: Wed, 13 Apr 2022 03:26:01 +0200 Subject: [PATCH] WIP --- src/ui/components/Moves.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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."}