Skip to content

Commit

Permalink
use PuzzleTier.good for opening angles when fetching puzzle batches
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Oct 30, 2024
1 parent 602fb50 commit 1bb7aa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/puzzle/src/main/PuzzleBatch.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ final class PuzzleBatch(colls: PuzzleColls, anonApi: PuzzleAnon, pathApi: Puzzle
me.foldUse(anonApi.getBatchFor(angle, difficulty, nb)): me ?=>
val tier =
if perf.nb > 5000 then PuzzleTier.good
else if angle.opening.isDefined then PuzzleTier.good
else if PuzzleDifficulty.isExtreme(difficulty) then PuzzleTier.good
else PuzzleTier.top
pathApi
Expand Down

0 comments on commit 1bb7aa5

Please sign in to comment.