You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need thing like this, but I'm beginner in python.
How can I test your code?
I need print new rating (Player A have 2162 and will play 6 games)
exp += expected(2162, 2395)
exp += expected(2162, 2334)
exp += expected(2162, 2311)
exp += expected(2162, 2323)
exp += expected(2162, 1600)
exp += expected(2162, 1600)
The text was updated successfully, but these errors were encountered:
Is this a general question about how to print something with python or how to use the functions this provides?
If you just want to print anything you can use the print function.
print('Some text')
print(123)
If you want to use the functions, look at the readme.
Here's a full example.
# import both functionsfromeloimportexpected, elo# calculate expexp=expected(2162, 2395)
exp+=expected(2162, 2334)
exp+=expected(2162, 2311)
exp+=expected(2162, 2323)
exp+=expected(2162, 1600)
exp+=expected(2162, 1600)
# win_score is determined by giving 0 points for a lost, 0.5 for a drawn, and 1 for a won matchwin_score=2.5# I just set it to a dummy value# now calculate the new elo for your playernew_elo=elo(2162, exp, win_score, k=32)
# and print itprint(new_elo)
I need thing like this, but I'm beginner in python.
How can I test your code?
I need print new rating (Player A have 2162 and will play 6 games)
exp += expected(2162, 2395)
exp += expected(2162, 2334)
exp += expected(2162, 2311)
exp += expected(2162, 2323)
exp += expected(2162, 1600)
exp += expected(2162, 1600)
The text was updated successfully, but these errors were encountered: