< Previous Challenge - Home - Next Challenge >
Having explored GitHub Copilot’s capabilities, it’s time to dive deeper and refine your approach. This challenge will not only focus on adopting best practices for effective interaction with Copilot but also apply these strategies to integrate a new feature into your Whack-a-Mole game.
In this challenge, you’ll focus on learning best practices for working with GitHub Copilot to implement a new feature in your app. You’ll learn the art of prompt engineering, which involves crafting inputs that guide Copilot to provide the most relevant and helpful suggestions. Below are some to take into consideration:
Set The Stage: Understand the importance of setting the stage of what we are building. A high level overview of what we are trying to achieve can help Copilot offer more accurate and beneficial suggestions, aligning closely with your coding objectives.
Keep It Simple and Specific: Simplify complex problems into smaller, more manageable tasks. Copilot tends to generate more precise and practical solutions when dealing with focused queries rather than broad, vague ones.
Give Examples: Provide some examples of what you are looking for which can help Copilot grasp the context and the specific pattern you’re aiming for.
You will have successfully completed this challenge when you: