Skip to content

Commit

Permalink
Merge pull request lichess-org#16678 from FawzyAshraf/practice
Browse files Browse the repository at this point in the history
Fix practice mode underboard in the case of stalemates
  • Loading branch information
ornicar authored Jan 7, 2025
2 parents 3128262 + 6c09f6c commit 05d1aa1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/analyse/src/study/practice/studyPracticeSuccess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export default function (root: AnalyseCtrl, goal: Goal, nbMoves: number): boolea
case 'mate':
if (node.threefold) return false;
if (isDrawish(node)) return false;
if (root.position(node).unwrap().isStalemate()) return false;
}
return null;
}

0 comments on commit 05d1aa1

Please sign in to comment.