You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/python/beginners.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,6 +206,23 @@ Try adjusting some of the numbers to see what effect they have on your bouncing
206
206
207
207
Read more about writing games with pygame at [pygame.org](http://www.pygame.org).
208
208
209
+
### Use AI to enhance the game with additional features
210
+
211
+
You can use AI tools, such as GitHub Copilot, to generate code that updates the bouncing ball game with new interactive features, improved behaviors, and smoother animations. You can customize the prompt to suit your requirements.
212
+
213
+
The following text shows an example prompt for Copilot Chat:
214
+
215
+
```copilot-prompt
216
+
Update the pygame bouncing ball code to:
217
+
- Add a vertical wall in the center that the ball bounces off
218
+
- Ensure the ball can bounce off the center wall and continue moving, not get stuck next to it
219
+
- Cycle through different colors each time the ball bounces
220
+
- Reduce movement speed from 1 to 0.5 pixels per frame
221
+
- Add frame rate control for 60 FPS
222
+
```
223
+
224
+
GitHub Copilot is powered by AI, so surprises and mistakes are possible. For more information, see [Copilot FAQs](https://aka.ms/copilot-general-use-faqs).
225
+
209
226
## Resources for continued learning
210
227
211
228
We recommend the following resources to support you in continuing to learn about Python development on Windows.
@@ -221,3 +238,8 @@ We recommend the following resources to support you in continuing to learn about
221
238
-[Debugging Python](https://code.visualstudio.com/docs/python/debugging): Debugging is the process of identifying and removing errors from a computer program. This article covers how to initialize and configure debugging for Python with VS Code, how to set and validate breakpoints, attach a local script, perform debugging for different app types or on a remote computer, and some basic troubleshooting.
222
239
223
240
-[Unit testing Python](https://code.visualstudio.com/docs/python/unit-testing): Covers some background explaining what unit testing means, an example walkthrough, enabling a test framework, creating and running your tests, debugging tests, and test configuration settings.
241
+
242
+
## Related content
243
+
244
+
-[GitHub Copilot in VS Code](https://code.visualstudio.com/docs/copilot/overview)
245
+
-[GitHub Copilot in Visual Studio](/visualstudio/ide/visual-studio-github-copilot-install-and-states)
0 commit comments