Skip to content

Commit a4697e0

Browse files
Merge pull request MicrosoftDocs#5566 from MicrosoftDocs/main
Merged by Learn.Build PR Management system
2 parents 85b6b24 + e6afa6f commit a4697e0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

hub/python/beginners.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,23 @@ Try adjusting some of the numbers to see what effect they have on your bouncing
206206
207207
Read more about writing games with pygame at [pygame.org](http://www.pygame.org).
208208
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+
209226
## Resources for continued learning
210227

211228
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
221238
- [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.
222239

223240
- [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

Comments
 (0)