Set is a fun cardgame
- Prerequisites:
- Pyenv (install with
brew install pyenv
), - Python 3.8.1 (install with
Pyenv install 3.8.1
), - Pyenv virtualenv plugin (install with
brew install pyenv-virtualenv
)
- Pyenv (install with
- Set the .python-version file to whatever Python version you have/want to use
- Test with
pyenv versions
from the terminal
From the terminal run python -m src.main
game_id
- the ID of a complete game of SETround_id
- the ID of a round in SET which includes looking for SETs, removing one (if any) and replacing the removed cards from the deck (if any).game_id
andround_id
are the keys of the table.round_type
- one of three types:normal
- deck not empty, at least 1 SET foundno-set
- deck not empty, no SETs foundno-deck
- deck empty, looking for set
is_first_round
- True if first round, False otherwiseis_last_round
- True if last round, False otherwisedate_time
num_cards_table
- number of cards on the table at the beginning of the roundnum_cards_deck
- number of cards in the deck at the beginning of the roundnum_sets
- number of SETs at the beginning of the roundcards_table
- cards on the tablecards_deck
- cards in the decksets
- cards of SETs groupedchosen_set