PIWM / src /game /__init__.py
musictimer's picture
Fix bug 2
b0d3efd
raw
history blame
412 Bytes
# Conditional imports to avoid pygame dependency in web deployment
try:
from .game import Game
except ImportError:
# pygame not available, skip Game import for web deployment
Game = None
try:
from .play_env import PlayEnv
except ImportError:
# Skip PlayEnv if dependencies not available
PlayEnv = None
# Web-compatible components (always available)
from .web_play_env import WebPlayEnv