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
|
python -m build --sdist --wheel -n
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
@ -517,7 +517,7 @@ def generate_players(num_players=10, min_num_games=1, total_budget=200) -> List[
|
|||||||
return players
|
return players
|
||||||
|
|
||||||
|
|
||||||
def play_round(players, verbose=False) -> List[float]:
|
def spin_wheel(players, verbose=False) -> List[float]:
|
||||||
"""
|
"""
|
||||||
Simulates a single game of roulette.
|
Simulates a single game of roulette.
|
||||||
|
|
||||||
@ -566,7 +566,7 @@ def play_roulette(players: List[Player], games: int = 10) -> List[Player]:
|
|||||||
if not players:
|
if not players:
|
||||||
break
|
break
|
||||||
# print(f"GAME {g}")
|
# print(f"GAME {g}")
|
||||||
winnings = play_round(players)
|
winnings = spin_wheel(players)
|
||||||
new_losers = []
|
new_losers = []
|
||||||
for i, p in enumerate(players):
|
for i, p in enumerate(players):
|
||||||
p.wallet -= p.strategy.value
|
p.wallet -= p.strategy.value
|
||||||
|
2
setup.py
2
setup.py
@ -10,7 +10,7 @@ with open(BASEDIR.joinpath("README.md"), "r") as fp:
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pyroulette",
|
name="pyroulette",
|
||||||
version="0.0.1rc3",
|
version="0.0.1rc4",
|
||||||
description="A package for exploring roulette strategies.",
|
description="A package for exploring roulette strategies.",
|
||||||
long_description=LONG_DESCRIPTION,
|
long_description=LONG_DESCRIPTION,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
Loading…
Reference in New Issue
Block a user