Skip to content

Commit 3e9d9b2

Browse files
committed
different values
1 parent 5956f0e commit 3e9d9b2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

elo.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
import random
2+
#https://github.com/ddm7018/Elo
23
from elosports.elo import Elo
34
import sys
45
import matplotlib.pyplot as plt
56
import statistics
67

78

8-
nb_players = 10000
9-
base_elo = 1000
10-
k_factor = 10
11-
nb_round_robin = 10
9+
nb_players = 2500
10+
base_elo = 2000
11+
k_factor = 32
12+
nb_round_robin = 20
13+
#Number of bins in the histogram
1214
number_of_bins = 20
1315

1416
eloLeague = Elo(k = k_factor , homefield = 0)
1517
for i in range(nb_players):
16-
eloLeague.addPlayer(str(i), rating = 1000)
18+
eloLeague.addPlayer(str(i), rating = base_elo)
1719

1820

1921

@@ -30,8 +32,8 @@
3032

3133

3234

33-
for team in eloLeague.ratingDict.keys():
34-
print(team, eloLeague.ratingDict[team])
35+
#for team in eloLeague.ratingDict.keys():
36+
# print(team, eloLeague.ratingDict[team])
3537

3638
elo_list=eloLeague.ratingDict.values()
3739
hist_bins = []

0 commit comments

Comments
 (0)