Jumper-Clown commited on
Commit
4b4be2a
1 Parent(s): 6b60852

add asyncio hint when not using code example

Browse files
.idea/workspace.xml CHANGED
@@ -5,6 +5,7 @@
5
  </component>
6
  <component name="ChangeListManager">
7
  <list default="true" id="ba1eab7b-54ae-409d-bac6-f23bdc636598" name="Changes" comment="">
 
8
  <change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
9
  </list>
10
  <option name="SHOW_DIALOG" value="false" />
 
5
  </component>
6
  <component name="ChangeListManager">
7
  <list default="true" id="ba1eab7b-54ae-409d-bac6-f23bdc636598" name="Changes" comment="">
8
+ <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
9
  <change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
10
  </list>
11
  <option name="SHOW_DIALOG" value="false" />
__pycache__/ai.cpython-311.pyc ADDED
Binary file (2.31 kB). View file
 
__pycache__/cpu_ai.cpython-311.pyc ADDED
Binary file (2.79 kB). View file
 
__pycache__/github_manager.cpython-311.pyc ADDED
Binary file (3.17 kB). View file
 
app.py CHANGED
@@ -9,7 +9,9 @@ def main():
9
  initial_prompt = """Conway's game of life, but the user controls one of the squares. If the square dies, the game is over."""
10
 
11
  add_example = False
12
- post_prompt = ""
 
 
13
  if add_example:
14
  example_code_file_path = "resources/main.py"
15
  with open(example_code_file_path, "r") as file:
 
9
  initial_prompt = """Conway's game of life, but the user controls one of the squares. If the square dies, the game is over."""
10
 
11
  add_example = False
12
+ post_prompt = """
13
+ run the game with asyncio.run(main())
14
+ """
15
  if add_example:
16
  example_code_file_path = "resources/main.py"
17
  with open(example_code_file_path, "r") as file: