From ae65305d8d48cdba67e8832143db3331205ec41e Mon Sep 17 00:00:00 2001 From: Michael Pilosov Date: Sun, 27 Nov 2022 03:03:29 -0700 Subject: [PATCH] sky high values spotted --- index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 2cb662f..2d11d05 100644 --- a/index.html +++ b/index.html @@ -47,14 +47,14 @@ from random import random, randint players = [] for _ in range(1, 20): c = random() - if c < 0.5: # half our players want to play 50-100 games - min_games = randint(50, 100) - elif c < 0.8: # 30% want to play 25-50 games - min_games = randint(25, 50) - else: # the rest are fine with going home very early. - min_games = randint(1, 10) + if c < 0.25: + min_games = randint(1, 100) + elif c < 0.5: + min_games = randint(1, 25) + else: # bold half + 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 = pr.play_roulette(players, games=100)