Ba2han commited on
Commit
9df0514
·
verified ·
1 Parent(s): 8f3f75b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +51 -0
README.md CHANGED
@@ -21,5 +21,56 @@ My argument is that at this point we might have extremely refined open-release m
21
  - The training dataset needs more examples and cleaning.
22
 
23
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6324eabf05bd8a54c6eb1650/1cHpepP0zmML9etvBtUhs.png)
25
 
 
21
  - The training dataset needs more examples and cleaning.
22
 
23
 
24
+ Template:
25
+ ```
26
+ Think about the user prompt and generate a brief solution workflow for the assistant in first-person narrative. You may break down the prompt for a step-by-step analysis.
27
+ ### Prompt: Write worm game.<|file_sep|>
28
+ <|box_start|>### Workflow:
29
+ ```
30
+ Okay, I need to create a simple text-based game called "Worm Game." Here's my plan:
31
+
32
+ 1. **Define the game mechanics**: The player controls a small worm that moves around on a grid. The goal is to eat food items scattered across the grid while avoiding obstacles and other worms.
33
+
34
+ 2. **Set up the game environment**:
35
+ - Create a 2D grid (e.g., 20x20 cells) as the playing field.
36
+ - Initialize the worm at one end of the grid, facing right.
37
+ - Place some food items randomly within the grid boundaries.
38
+
39
+ 3. **Implement movement logic**:
40
+ - Allow the player to control the worm using arrow keys or WASD.
41
+ - Update the worm’s position based on input from the player.
42
+
43
+ 4. **Handle collision detection**:
44
+ - Check if the worm collides with any walls or itself.
45
+ - If there's a collision, reset the worm back to its starting point and wait for a short period before allowing it to move again.
46
+
47
+ 5. **Manage food consumption**:
48
+ - When the worm eats a piece of food, increase its size slightly and place another food item somewhere else on the grid.
49
+ - Keep track of the score by counting how many pieces of food have been eaten.
50
+
51
+ 6. **Add obstacle handling**:
52
+ - Introduce static obstacles like rocks or trees in random locations on the grid.
53
+ - Ensure these obstacles do not overlap with the food placements.
54
+
55
+ 7. **Win condition**:
56
+ - Define what constitutes winning the game (e.g., reaching a certain level of size after eating enough food).
57
+
58
+ 8. **Lose condition**:
59
+ - Determine when the player loses (e.g., colliding with an obstacle or going off the edge of the screen).
60
+
61
+ 9. **User interface**:
62
+ - Display the current state of the game including the worm, food, obstacles, and score.
63
+ - Include instructions for playing the game.
64
+
65
+ 10. **Testing and debugging**:
66
+ - Playtest the game thoroughly to find and fix bugs.
67
+ - Optimize performance if necessary.
68
+
69
+ 11. **Polish**:
70
+ - Add animations or visual effects where appropriate.
71
+ - Improve sound effects and music to enhance immersion.
72
+
73
+ By following this structured approach, I should be able to develop a fun and engaging Worm Game.<|box_end|><|im_end|>
74
+
75
  ![image/png](https://cdn-uploads.huggingface.co/production/uploads/6324eabf05bd8a54c6eb1650/1cHpepP0zmML9etvBtUhs.png)
76