From 38b1d28ecdb6c87fe6f3cea3b36ee5d2de525aac Mon Sep 17 00:00:00 2001 From: Michael Pilosov Date: Sun, 27 Nov 2022 01:05:43 -0700 Subject: [PATCH] more variation, quicker runtime --- Makefile | 9 ++++++++- index.html | 9 +++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 20b027c..1545e73 100644 --- a/Makefile +++ b/Makefile @@ -15,4 +15,11 @@ lint: test: # TODO: replace with real tests python app.py && python strategy.py -.PHONY: build publish clean lint test \ No newline at end of file +serve: + python -m http.server 1337 + +demo: + scp -P 10044 index.html git@mlden.com:/data/f/play.html + @echo "visit http://clfx.cc/play.html" + +.PHONY: build publish clean lint test diff --git a/index.html b/index.html index ba063b6..69c9768 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@
-
Simulating Games:
+
Simulating 100 Games for 500 Players:
@@ -36,7 +36,12 @@ from pyroulette import * # seed(59) -players = generate_players(num_players=1000, min_num_games=20, total_budget=100) +from random import randint +players = [] +for _ in range(1, 20): + min_games = randint(1, 100) + players.extend(generate_players(num_players=25, min_num_games=min_games, total_budget=100)) + players = play_roulette(players, games=100) for p in sorted(players, reverse=True):