byte-vortex commited on
Commit
d18c59d
·
verified ·
1 Parent(s): 3da2984

Deploy Myco from CI

Browse files
Files changed (1) hide show
  1. game/engine.py +6 -3
game/engine.py CHANGED
@@ -1,11 +1,14 @@
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
-
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
  """