Spaces:
Configuration error
Configuration error
File size: 1,481 Bytes
69373e6 c903325 69373e6 c903325 69373e6 c903325 69373e6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | """
PyCatan - Settlers of Catan Simulation Library
A modular Python library for simulating Settlers of Catan games with support
for multiple player types (human/AI) and visualization interfaces.
Architecture:
- core: Game rules and state management
- management: Turn flow and orchestration
- players: Human and AI player implementations
- visualizations: Console and web display interfaces
- config: Board definitions and mappings
"""
# Core game components
from pycatan.core import (
Game, Board, DefaultBoard, Player, Tile, TileType, Point, Building,
ResCard, DevCard, Harbor, Statuses
)
# Game management
from pycatan.management import (
GameManager, Action, ActionType, ActionResult, GameState, PlayerState,
BoardState, GamePhase, TurnPhase, LogEntry, EventType
)
# Players
from pycatan.players import (
User, UserInputError, validate_user_list, create_test_user, HumanUser
)
# Visualizations
from pycatan.visualizations import (
Visualization, ConsoleVisualization
)
# Optional web visualization (requires Flask)
try:
from pycatan.visualizations import WebVisualization, create_web_visualization
except ImportError:
# Flask not available - web visualization disabled
WebVisualization = None
create_web_visualization = None
# Configuration and mappings
from pycatan.config import (
BoardDefinition, PointMapper, board_definition
)
# Complete game experience
from pycatan.real_game import RealGame
__version__ = "0.14.0"
|