feat: 更新状态机

This commit is contained in:
2026-01-05 05:25:14 +08:00
parent 1c297d3949
commit 7d0f4e1466
19 changed files with 314 additions and 140 deletions
+16
View File
@@ -0,0 +1,16 @@
# base.py
from heurams.services.logger import get_logger
logger = get_logger(__name__)
class BasePuzzle:
"""谜题基类"""
def refresh(self):
logger.debug("BasePuzzle.refresh 被调用(未实现)")
raise NotImplementedError("谜题对象未实现 refresh 方法")
def __str__(self):
logger.debug("BasePuzzle.__str__ 被调用")
return f"谜题: {type(self).__name__}"