Files
Wizard/wizard_server/game_logic/wizard_game/__init__.py
T
2026-09-27 09:52:00 +02:00

56 lines
1.2 KiB
Python

"""Rules engine of the Wizard card game.
This package is independent of the game server so that it can also be used
to train AI players.
"""
from .actions import Action, Bid, ChooseTrump, PlayCard, action_from_dict, action_to_dict
from .cards import ALL_CARDS, DECK_SIZE, SUITS, Card, CardKind, Suit, card_by_id
from .game import IllegalActionError, WizardGame
from .observation import Observation
from .rules import MAX_PLAYERS, MIN_PLAYERS, total_rounds
from .state import (
Event,
GameFinished,
GameOptions,
Phase,
PlayedCard,
RoundCompleted,
RoundResult,
RoundStarted,
TrickCompleted,
TrickResult,
)
__all__ = [
"ALL_CARDS",
"DECK_SIZE",
"MAX_PLAYERS",
"MIN_PLAYERS",
"SUITS",
"Action",
"Bid",
"Card",
"CardKind",
"ChooseTrump",
"Event",
"GameFinished",
"GameOptions",
"IllegalActionError",
"Observation",
"Phase",
"PlayCard",
"PlayedCard",
"RoundCompleted",
"RoundResult",
"RoundStarted",
"Suit",
"TrickCompleted",
"TrickResult",
"WizardGame",
"action_from_dict",
"action_to_dict",
"card_by_id",
"total_rounds",
]