Increased number of matches played.
This commit is contained in:
parent
9fbd008f59
commit
b922b9dd20
1 changed files with 12 additions and 10 deletions
|
@ -250,7 +250,7 @@ determineIfSessionShouldContinueAndUpdateLog = (sessionID, sessionRank, cb) ->
|
||||||
cb null, true
|
cb null, true
|
||||||
else
|
else
|
||||||
ratio = (updatedSession.numberOfLosses) / (totalNumberOfGamesPlayed)
|
ratio = (updatedSession.numberOfLosses) / (totalNumberOfGamesPlayed)
|
||||||
if ratio > 0.2
|
if ratio > 0.33
|
||||||
cb null, false
|
cb null, false
|
||||||
console.log "Ratio(#{ratio}) is bad, ending simulation"
|
console.log "Ratio(#{ratio}) is bad, ending simulation"
|
||||||
else
|
else
|
||||||
|
@ -275,7 +275,9 @@ findNearestBetterSessionID = (levelOriginalID, levelMajorVersion, sessionID, ses
|
||||||
team: opposingTeam
|
team: opposingTeam
|
||||||
|
|
||||||
if opponentSessionTotalScore < 30
|
if opponentSessionTotalScore < 30
|
||||||
queryParameters["totalScore"]["$gt"] = opponentSessionTotalScore + 2
|
# Don't play a ton of matches at low scores--skip some in proportion to how close to 30 we are.
|
||||||
|
# TODO: this could be made a lot more flexible.
|
||||||
|
queryParameters["totalScore"]["$gt"] = opponentSessionTotalScore + 2 * (30 - opponentSessionTotalScore) / 20
|
||||||
|
|
||||||
limitNumber = 1
|
limitNumber = 1
|
||||||
|
|
||||||
|
|
Reference in a new issue