From 5c85e464657f309f1069a9cb6a9aaf1a181418a1 Mon Sep 17 00:00:00 2001 From: Ashton Anderson Date: Sat, 28 Mar 2026 09:58:48 -0400 Subject: [PATCH 1/2] fix: human to human-like --- src/components/Home/HomeHero.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Home/HomeHero.tsx b/src/components/Home/HomeHero.tsx index 792ede36..0905c6bc 100644 --- a/src/components/Home/HomeHero.tsx +++ b/src/components/Home/HomeHero.tsx @@ -145,7 +145,7 @@ export const HomeHero: React.FC = ({ scrollHandler }: Props) => {
- The human chess AI + Human-like chess AI Maia is a neural network chess model that captures human style. From b7141643f9be9eb0e69551dd75e4fa38a60ebe99 Mon Sep 17 00:00:00 2001 From: Ashton Anderson Date: Sat, 28 Mar 2026 10:59:59 -0400 Subject: [PATCH 2/2] fix: reset play board state between games --- src/components/Board/GameBoard.tsx | 2 ++ src/components/Board/GameplayInterface.tsx | 8 +++++++- src/pages/play/hb.tsx | 2 +- src/pages/play/maia.tsx | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/components/Board/GameBoard.tsx b/src/components/Board/GameBoard.tsx index f0da2c3a..57f17975 100644 --- a/src/components/Board/GameBoard.tsx +++ b/src/components/Board/GameBoard.tsx @@ -69,6 +69,7 @@ export const GameBoard: React.FC = ({ destinationBadges = [], }: Props) => { const { playMoveSound } = useSound() + const boardInstanceKey = game?.id ?? 'board' const after = useCallback( (from: string, to: string) => { @@ -151,6 +152,7 @@ export const GameBoard: React.FC = ({ return (
> = ( [string, string] | null >(null) + useEffect(() => { + setPromotionFromTo(null) + }, [game.id]) + const onPlayerMakeMove = useCallback( (move: [string, string] | null) => { if (move) { @@ -199,6 +203,7 @@ export const GameplayInterface: React.FC> = ( className="relative flex aspect-square w-full max-w-[75vh] flex-shrink-0" > > = ( className="relative mx-auto flex aspect-square w-full max-w-3xl" > = ({ ) return ( - + = ({ }, [controller.playerActive, controller.game.termination]) return ( - +