사용자 도구

사이트 도구


trueskill

Trueskill

# pip install trueskill
 
from trueskill import Rating, quality_1vs1, rate_1vs1
alice, bob = Rating(25), Rating(30)  # assign Alice and Bob's ratings
if quality_1vs1(alice, bob) < 0.50:
    print('This match seems to be not so fair')
alice, bob = rate_1vs1(alice, bob)  # update the ratings after the match, alice win
# alice, bob = rate_1vs1(alice, bob, drawn=True)  # drwan
trueskill.txt · 마지막으로 수정됨: 2024/03/23 02:38 저자 127.0.0.1