A Python package that simulates a thrilling card game where players draw cards, hoping to avoid the deadly one.
Card Roulette is a text-based game where players draw cards in rounds. Each round, players draw cards randomly, and if a player draws the deadly card, they lose the round. The game introduces a new deadly card with each iteration (Iteration n's deadly card is card n). If the deadly card is the only one remaining, all players survive.
You can find the Rust version here.
- Python 3.6 or above
git clone https://github.com/Disciple0fMarx/card_roulette
cd card_roulette
python3 -m card_roulette
Default settings: 3 players, 3 rounds
python3 -m card_roulette play --players 4 --rounds 2
Default settings: 5 games, 3 players, 3 rounds
python3 -m card_roulette simulate --games 10 --players 4 --rounds 2
Results will be saved in the results
folder like so:
results/
โโโ 3_players/
โ โโโ 3_rounds/
โ โ โโโ 020549a8-1daf-43c2-a0d9-b0a49e31d860.csv
โ โ โโโ ...
โ โโโ 4_rounds/
โ โโโ a568cd44-9c4d-4ff2-a604-f100307040e4.csv
โ โโโ ...
โโโ 4_players/
โ โโโ 2_rounds/
โ โโโ fe54d3d1-ff4e-41f0-a579-e22d208163ea.csv
โ โโโ ...
โโโ ...
โโโ total_results.json
<id>.csv
contains the scores of all players in each game in the simulation with the given UID.total_results.json
stores the cumulative scores of each simulation.