umair-nasir14 / Word2World

Word2World is an LLM-based PCG system that creates playable 2D world from stories
Apache License 2.0
35 stars 5 forks source link

fix bugs for json path and local variable round_number #3

Closed Gracesta closed 4 months ago

Gracesta commented 4 months ago
  1. On Linux machine, "\" is illegal for path so I modified to use os.path.join to get the example json.
  2. For round_number, it's declared as local variable so errors would be reported when game_path is specified. I modified to declare it outside the if else.
umair-nasir14 commented 4 months ago

Thanks for the PR @Gracesta! I am merging it but I believe there might be more path changes required to run it on Linux!