run tests and rename function

This commit is contained in:
Michael Pilosov 2022-11-26 22:36:36 -07:00
parent 5bdc1c8192
commit 0ecb6ef192
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
build: clean lint
build: clean lint test
python -m build --sdist --wheel -n
clean:

View File

@ -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

View File

@ -10,7 +10,7 @@ with open(BASEDIR.joinpath("README.md"), "r") as fp:
setup(
name="pyroulette",
version="0.0.1rc3",
version="0.0.1rc4",
description="A package for exploring roulette strategies.",
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",