whist_core.session.distribution¶
Wraps player’s team assignment.
Module Contents¶
Classes¶
Player to team assignment. |
|
All player to team assignment. |
- class whist_core.session.distribution.DistributionEntry¶
Bases:
pydantic.BaseModelPlayer to team assignment.
- player_index: int¶
- team_id: int¶
- class whist_core.session.distribution.Distribution¶
Bases:
pydantic.BaseModelAll player to team assignment.
- entries: list[DistributionEntry] = []¶
- __iter__()¶
Iterates over all entries.
- __len__()¶
Returns the list of entries.
- __getitem__(item: int) DistributionEntry¶
Gets on specific entry. :param item: index of the item
- add(entry: DistributionEntry) None¶
Adds a new entry to the list. :param entry: to be added :return: None