Skip to content

Commit

Permalink
Do not use control loss for the last round
Browse files Browse the repository at this point in the history
jvc56 committed Jan 11, 2025
1 parent b14eb4a commit 5cbbf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pair/copdata/copdata.go
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@ func GetPrecompData(ctx context.Context, req *pb.PairRequest, copRand *rand.Rand
var controlLossSimResults *pkgstnd.SimResults
var allControlLosses map[int]int
highestControlLossRankIdx := -1
if req.UseControlLoss && !improvedFactorSimResults.GibsonizedPlayers[0] {
if req.UseControlLoss && !improvedFactorSimResults.GibsonizedPlayers[0] && initialFactor > 1 {
controlLossSimResults, pairErr = standings.SimFactorPairAll(ctx, req, copRand, int(req.ControlLossSims), maxFactor, true, nil)
if pairErr != pb.PairError_SUCCESS {
return nil, pairErr

0 comments on commit 5cbbf20

Please sign in to comment.