sky high values spotted
This commit is contained in:
parent
69547c2b79
commit
ae65305d8d
14
index.html
14
index.html
@ -47,14 +47,14 @@ from random import random, randint
|
|||||||
players = []
|
players = []
|
||||||
for _ in range(1, 20):
|
for _ in range(1, 20):
|
||||||
c = random()
|
c = random()
|
||||||
if c < 0.5: # half our players want to play 50-100 games
|
if c < 0.25:
|
||||||
min_games = randint(50, 100)
|
min_games = randint(1, 100)
|
||||||
elif c < 0.8: # 30% want to play 25-50 games
|
elif c < 0.5:
|
||||||
min_games = randint(25, 50)
|
min_games = randint(1, 25)
|
||||||
else: # the rest are fine with going home very early.
|
else: # bold half
|
||||||
min_games = randint(1, 10)
|
min_games = randint(1, 2)
|
||||||
|
|
||||||
min_games = 100 # this caps out at about 250 games. need to bet bigger to win bigger.
|
# min_games = 100 # this caps out at about 250 games. need to bet bigger to win bigger.
|
||||||
players.extend(pr.generate_players(num_players=50, min_num_games=min_games, total_budget=100))
|
players.extend(pr.generate_players(num_players=50, min_num_games=min_games, total_budget=100))
|
||||||
|
|
||||||
players = pr.play_roulette(players, games=100)
|
players = pr.play_roulette(players, games=100)
|
||||||
|
Loading…
Reference in New Issue
Block a user