MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / expected_score

Function expected_score

codeclash/analysis/bootstrap/bootstrap.py:19–21  ·  view source on GitHub ↗

Calculate expected score for player A against player B.

(rating_a: float, rating_b: float)

Source from the content-addressed store, hash-verified

17
18
19def expected_score(rating_a: float, rating_b: float) -> float:
20 """Calculate expected score for player A against player B."""
21 return 1 / (1 + 10 ** ((rating_b - rating_a) / ELO_DENOM))
22
23
24def update_elo(*, current_rating: float, expected_score: float, actual_score: float, k: float = 32) -> float:

Callers 3

play_gameMethod · 0.85
_update_elo_per_roundMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected