Spaces:
Sleeping
Sleeping
Deploy Myco from CI
Browse files- game/engine.py +6 -3
game/engine.py
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
CATALOG_PATH = Path(__file__).resolve().parents[1] / "data" / "mushrooms.json"
|
| 3 |
|
| 4 |
-
#
|
| 5 |
print(f"DEBUG: Looking for file at: {CATALOG_PATH}")
|
| 6 |
print(f"DEBUG: Does the file exist? {CATALOG_PATH.exists()}")
|
| 7 |
|
| 8 |
-
|
| 9 |
"""
|
| 10 |
Core Myco gameplay — LLM is the primary game engine.
|
| 11 |
"""
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
from pathlib import Path # This MUST come before you use Path()
|
| 3 |
+
from functools import lru_cache
|
| 4 |
+
|
| 5 |
+
# Now it is safe to use Path
|
| 6 |
CATALOG_PATH = Path(__file__).resolve().parents[1] / "data" / "mushrooms.json"
|
| 7 |
|
| 8 |
+
# Now you can add your debug prints
|
| 9 |
print(f"DEBUG: Looking for file at: {CATALOG_PATH}")
|
| 10 |
print(f"DEBUG: Does the file exist? {CATALOG_PATH.exists()}")
|
| 11 |
|
|
|
|
| 12 |
"""
|
| 13 |
Core Myco gameplay — LLM is the primary game engine.
|
| 14 |
"""
|