Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- game/engine.py +7 -0
game/engine.py
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
print(f"DEBUG: Looking for file at: {CATALOG_PATH}")
|
| 2 |
print(f"DEBUG: Does the file exist? {CATALOG_PATH.exists()}")
|
| 3 |
|
|
|
|
|
|
|
|
|
|
| 4 |
"""
|
| 5 |
Core Myco gameplay — LLM is the primary game engine.
|
| 6 |
"""
|
|
|
|
| 1 |
+
# 1. Define the variable FIRST
|
| 2 |
+
CATALOG_PATH = Path(__file__).resolve().parents[1] / "data" / "mushrooms.json"
|
| 3 |
+
|
| 4 |
+
# 2. THEN try to print it
|
| 5 |
print(f"DEBUG: Looking for file at: {CATALOG_PATH}")
|
| 6 |
print(f"DEBUG: Does the file exist? {CATALOG_PATH.exists()}")
|
| 7 |
|
| 8 |
+
@lru_cache(maxsize=1)
|
| 9 |
+
def load_mushrooms() -> tuple[Mushroom, ...]:
|
| 10 |
+
|
| 11 |
"""
|
| 12 |
Core Myco gameplay — LLM is the primary game engine.
|
| 13 |
"""
|