고속 게임 엔진 골격 추가

This commit is contained in:
2026-05-06 21:40:33 +09:00
parent 771c0ec821
commit ec0e468fa1
8 changed files with 862 additions and 2 deletions
@@ -1,4 +1,11 @@
# cython: language_level=3, boundscheck=False, wraparound=False, cdivision=True, initializedcheck=False
"""Deprecated compatibility rules engine for Lost Cities classic.
This module remains the public engine while the replacement fast engine is
developed under ``coolrl_lost_cities.games.classic.engines``. New traversal,
simulation, and training work should target the fast engine once it exists.
"""
from collections import Counter
from dataclasses import dataclass, fields
import random
@@ -10,6 +17,7 @@ cimport cython
Phase = Literal["card", "draw"]
DEPRECATED_ENGINE = True
class IllegalMoveError(ValueError):