run tests and rename function
This commit is contained in:
parent
5bdc1c8192
commit
0ecb6ef192
2
Makefile
2
Makefile
@ -1,4 +1,4 @@
|
||||
build: clean lint
|
||||
build: clean lint test
|
||||
python -m build --sdist --wheel -n
|
||||
|
||||
clean:
|
||||
|
@ -517,7 +517,7 @@ def generate_players(num_players=10, min_num_games=1, total_budget=200) -> List[
|
||||
return players
|
||||
|
||||
|
||||
def play_round(players, verbose=False) -> List[float]:
|
||||
def spin_wheel(players, verbose=False) -> List[float]:
|
||||
"""
|
||||
Simulates a single game of roulette.
|
||||
|
||||
@ -566,7 +566,7 @@ def play_roulette(players: List[Player], games: int = 10) -> List[Player]:
|
||||
if not players:
|
||||
break
|
||||
# print(f"GAME {g}")
|
||||
winnings = play_round(players)
|
||||
winnings = spin_wheel(players)
|
||||
new_losers = []
|
||||
for i, p in enumerate(players):
|
||||
p.wallet -= p.strategy.value
|
||||
|
Loading…
Reference in New Issue
Block a user