first prototype
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
"""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",
|
||||
]
|
||||
Reference in New Issue
Block a user