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" > = ({ scrollHandler }: Props) => {
- The human chess AI + Human-like chess AI Maia is a neural network chess model that captures human style. diff --git a/src/pages/play/hb.tsx b/src/pages/play/hb.tsx index b2e7d086..eab2e067 100644 --- a/src/pages/play/hb.tsx +++ b/src/pages/play/hb.tsx @@ -35,7 +35,7 @@ const PlayHandBrain: React.FC = ({ ) return ( - + = ({ }, [controller.playerActive, controller.game.termination]) return ( - +