MCPcopy Create free account
hub / github.com/FloatTech/ZeroBot-Plugin / getKFactor

Function getKFactor

plugin/chess/elo.go:29–37  ·  view source on GitHub ↗
(rateA, rateB int)

Source from the content-addressed store, hash-verified

27}
28
29func getKFactor(rateA, rateB int) int {
30 if rateA > 2400 && rateB > 2400 {
31 return 16
32 }
33 if rateA > 2100 && rateB > 2100 {
34 return 24
35 }
36 return 32
37}

Callers 1

calculateNewRateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected