mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Tweaked ratio calculation
This commit is contained in:
parent
e69e23115f
commit
488be26fd3
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ determineIfSessionShouldContinueAndUpdateLog = (sessionID, sessionRank, cb) ->
|
|||
console.log "Number of games played is less than 5, continuing..."
|
||||
cb null, true
|
||||
else
|
||||
ratio = (updatedSession.numberOfLosses - 5) / (totalNumberOfGamesPlayed)
|
||||
ratio = (updatedSession.numberOfLosses) / (totalNumberOfGamesPlayed)
|
||||
if ratio > 0.66
|
||||
cb null, false
|
||||
console.log "Ratio(#{ratio}) is bad, ending simulation"
|
||||
|
|
Loading…
Reference in a new issue