File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ interface Props {
1313 highlightIndices ?: number [ ]
1414 mobile ?: boolean
1515 termination ?: Termination
16+ currentMaiaModel ?: string
1617}
1718
1819export const MovesContainer : React . FC < Props > = ( {
@@ -21,6 +22,7 @@ export const MovesContainer: React.FC<Props> = ({
2122 highlightIndices,
2223 mobile = false ,
2324 termination,
25+ currentMaiaModel,
2426} : Props ) => {
2527 const controller = useContext ( GameControllerContext )
2628 const { isMobile } = useContext ( WindowSizeContext )
@@ -66,7 +68,8 @@ export const MovesContainer: React.FC<Props> = ({
6668 let predictedWhite , predictedBlack
6769
6870 if ( 'maiaEvaluations' in game ) {
69- const evals = game . maiaEvaluations [ 'maia_kdd_1100' ]
71+ const evals =
72+ game . maiaEvaluations [ currentMaiaModel ?? 'maia_kdd_1100' ]
7073
7174 const prevEvals = evals ?. [ prevMoveIndex ]
7275 const whiteEvals = evals ?. [ whiteMoveIndex ]
Original file line number Diff line number Diff line change @@ -552,6 +552,7 @@ const Analysis: React.FC<Props> = ({
552552 game = { analyzedGame }
553553 setCurrentMove = { setCurrentMove }
554554 termination = { analyzedGame . termination }
555+ currentMaiaModel = { currentMaiaModel }
555556 />
556557 </ div >
557558 < div className = "flex-none" >
@@ -653,6 +654,7 @@ const Analysis: React.FC<Props> = ({
653654 game = { analyzedGame }
654655 setCurrentMove = { setCurrentMove }
655656 termination = { analyzedGame . termination }
657+ currentMaiaModel = { currentMaiaModel }
656658 />
657659 </ div >
658660 < div >
You can’t perform that action at this time.
0 commit comments