From 9e17f7ac82df72b5068d89be27e7e6b5b43341f3 Mon Sep 17 00:00:00 2001 From: Jun Date: Fri, 7 Mar 2025 10:12:13 +0800 Subject: [PATCH 1/3] Update README.md Fixed some potential misspellings/errors. --- 05-Creating-Mini-Game-with-GitHub-Copilot/README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/05-Creating-Mini-Game-with-GitHub-Copilot/README.md b/05-Creating-Mini-Game-with-GitHub-Copilot/README.md index 9dcd799..825a743 100644 --- a/05-Creating-Mini-Game-with-GitHub-Copilot/README.md +++ b/05-Creating-Mini-Game-with-GitHub-Copilot/README.md @@ -2,7 +2,7 @@ # Creating a Mini Game with GitHub Copilot -In this module, we’ll explore how to use GitHub Copilot to build a classic rock, paper, scissors minigame. This hands-on project is designed to sharpen your programming skills and enhance your ability to develop console applications in C#. Best of all, we’ll use GitHub Codespaces, so there’s no need to worry about setting up a development environment. With GitHub Copilot as your AI pair programmer, you can focus on creating your application while effortlessly collaborating with your intelligent coding assistant. Lets begin. +In this module, we’ll explore how to use GitHub Copilot to build a classic rock, paper, scissors minigame. This hands-on project is designed to sharpen your programming skills and enhance your ability to develop console applications in C#. Best of all, we’ll use GitHub Codespaces, so there’s no need to worry about setting up a development environment. With GitHub Copilot as your AI pair programmer, you can focus on creating your application while effortlessly collaborating with your intelligent coding assistant. Let's begin. @@ -31,7 +31,7 @@ By the end of this module, you'll acquire the skills to be able to: [![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/microsoft/mastering-github-copilot-for-dotnet-csharp-developers?devcontainer_path=.devcontainer%2Fmini-game%2Fdevcontainer.json) -You have already learned a bit about GitHub Codespaces and GitHub Copilot and how they work. In this challenge exercise, your goal is to develop a minigame in C# using GitHub Copilot. +You have already learned a bit about GitHub Codespaces and GitHub Copilot and how they work. In this challenge exercise, your goal is to develop a minigame in C# using GitHub Copilot. #### Testing your GitHub Codespace @@ -46,7 +46,7 @@ You have already learned a bit about GitHub Codespaces and GitHub Copilot and ho ### Creating the game logic -Now that you've verified that Codespaces working with GitHub Copilot, your next step is to develop the logic of the C# minigame with the help of GitHub Copilot based on the following specifications: +Now that you've verified that Codespaces is working with GitHub Copilot, your next step is to develop the logic of the C# minigame with the help of GitHub Copilot based on the following specifications: The winner of the game is determined by three simple rules: @@ -58,7 +58,7 @@ The winner of the game is determined by three simple rules: The computer will be your opponent and can randomly choose one of the elements (**rock**, **paper**, or **scissors**). Your game interaction will be through the console (Terminal). -- The player can choose one of the three options rock, paper, or scissors and should be warned if they enter an invalid option. +- The player can choose one of the three options: rock, paper, or scissors and should be warned if they enter an invalid option. - At each round, the player must enter one of the options in the list and be informed if they won, lost, or tied with the opponent. - By the end of each round, the player can choose whether to play again. - Display the player's score at the end of the game. From 08b6ee38a92374a0df2f6e986a9f5ad32bb19e52 Mon Sep 17 00:00:00 2001 From: Jun Date: Fri, 7 Mar 2025 10:16:02 +0800 Subject: [PATCH 2/3] Update README.md Fixed some potential misspellings/errors. --- 04-Using-GitHub-Copilot-with-CSharp/README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/04-Using-GitHub-Copilot-with-CSharp/README.md b/04-Using-GitHub-Copilot-with-CSharp/README.md index 1de1a08..aa17436 100644 --- a/04-Using-GitHub-Copilot-with-CSharp/README.md +++ b/04-Using-GitHub-Copilot-with-CSharp/README.md @@ -47,30 +47,30 @@ We will review the steps to update the Weather BackEnd App by adding a new endpo ### 🤔 Step 0: Get familiarized with the "GitHub Codespaces ♥️ .NET" repository -Once you open the repository in Codespaces, you will find a new browser window with a fully functional Codespace. Everything in this repository is contained within this one Codespace. In example, in the explorer panel, we can see the main code for the BackEnd and the FrontEnd project. +Once you open the repository in Codespaces, you will find a new browser window with a fully functional Codespace. Everything in this repository is contained within this one Codespace. For example, in the explorer panel, we can see the main code for the BackEnd and the FrontEnd project. -![new Codespace with all the repository running](./images/005OpenRepoInCodeSpaces.png) +![new Codespace with all the repositories running](./images/005OpenRepoInCodeSpaces.png) Before we run the project, let's use GitHub Copilot Chat to inquire about what the project is and the different components. -1. Open **GitHub Copilot Chat** from the main navigation bar. +1. Open **GitHub Copilot Chat** from the main navigation bar. 1. Type in `What is this project doing, and what are the key components?` and hit **Send*** GitHub Copilot Chat will now look at the entire project and give us a summary of what the projects do, what technology they use, and any of the key components in them. ![Copilot Chat describing the project](./images/004AskCopilotAboutProject.png) -From here, you can click on files to navigate to them and you can ask follow up questions such as `What APIs are available?`. +From here, you can click on files to navigate to them and you can ask follow-up questions such as `What APIs are available?`. ### 🚀 Step 1: Run the projects -Now that we have context of what is in the project, let's run it and see it in action. +Now that we have context for what is in the project, let's run it and see it in action. In order to run the BackEnd project, go to the "Run and Debug" panel, and select the "BackEnd" Project. ![open program.cs in the BackEnd project](./images/006RunBackEndProject.png) -Start Debugging the selected project. The Weather API project, our BackEnd project will now be running in port 8080. We can copy the published url from the *Ports* panel +Start Debugging the selected project. The Weather API project, our BackEnd project will now be running on port 8080. We can copy the published url from the *Ports* panel ![Copy app url from the ports panel](./images/007ProjectRunningOpenInNewTab.png) @@ -91,7 +91,7 @@ Add a breakpoint in line 24 (press F9) and refresh the browser with the Url to t ![debug the running application.](./images/009DebugBackEndDemo.png) -Pressing F10 we can debug step-by-step until line 32, where we can see the generated values. The application should have been generated samples Weather values for the next 5 days. The variable `forecast` has an array containing these values. +Pressing F10 we can debug step-by-step until line 32, where we can see the generated values. The application should have generated samples Weather values for the next 5 days. The variable `forecast` has an array containing these values. ![debug the running application.](./images/010DebugForecastValue.png) @@ -150,7 +150,7 @@ Navigate to the end of the file and ask Copilot to generate a new record that in // create a new internal record named WeatherForecastByCity that request the following parameters: City, Date, TemperatureC, Summary ``` -The generated code sould be similar to this one: +The generated code should be similar to this one: ```csharp // create a new internal record named WeatherForecastByCity that request the following parameters: City, Date, TemperatureC, Summary @@ -179,7 +179,7 @@ In the following example, we added some extra blank lines after the previous end ![Copilot ghost suggestion for the new endpoint](./images/020GeneratedCode.gif) -***Important**: This prompt generates several lines of C# code. It's strongly adviced to check and review the generated code to verify that it works in the desired way.* +***Important**: This prompt generates several lines of C# code. It's strongly advised to check and review the generated code to verify that it works in the desired way.* The generated code should look similar to this one: From 8ce2a932fb62e838a99c4b822205a52474c355da Mon Sep 17 00:00:00 2001 From: Jun Date: Fri, 7 Mar 2025 10:18:48 +0800 Subject: [PATCH 3/3] Update README.md Fixed some potential misspellings/errors. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fad2304..d0c4523 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,9 @@ Enhance your coding efficiency with our expert-led 6-lesson GitHub Copilot cours ## 🌱 Getting Started -To get started, make sure to follow the instructions on how to fork the lessons into your own GitHub account. This will allow you to modify the code and complete the challenges at your own pace. +To get started, make sure to follow the instructions on how to fork the lessons into your own GitHub account. This will allow you to modify the code and complete the challenges at your own pace. -To use GitHub Copilot, you must have an active GitHub Copilot subscription. +To use GitHub Copilot, you must have an active GitHub Copilot subscription. **Sign up for free here: [GitHub Copilot](https://gh.io/copilot).** @@ -87,7 +87,7 @@ Check out more .NET courses on Microsoft Learn Training on: * [Entity Framework Core for Beginners](https://www.youtube.com/playlist?list=PLdo4fOcmZ0oX7uTkjYwvCJDG2qhcSzwZ6) * [.NET on Azure for Beginners](https://www.youtube.com/playlist?list=PLdo4fOcmZ0oVSBX3Lde8owu6dSgZLIXfu) -### Additional Learning +### Additional Learning Our team produces other courses! Check out: @@ -107,7 +107,7 @@ Our team produces other courses! Check out: ## Contributing -This project welcomes contributions and suggestions. Most contributions require you to agree to a +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. @@ -116,7 +116,7 @@ a CLA and decorate the PR appropriately (e.g., status check, comment). Simply fo provided by the bot. You will only need to do this once across all repos using our CLA. This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or +For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. ## Trademarks @@ -125,4 +125,4 @@ This project may contain trademarks or logos for projects, products, or services trademarks or logos is subject to and must follow [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. -Any use of third-party trademarks or logos are subject to those third-party's policies. +Any use of third-party trademarks or logos is subject to those third-parties' policies.