Use GitHub Copilot to Build a Rock, Paper, Scissors Game
For this exercise, CodeTour prompts developers to write comments and lines of code that trigger GitHub Copilot to generate code to create a rock, paper, scissors game.
CodeTour is a VS Code extension developed by Jonathan Carter. It allows developers to create and follow a guided walkthrough of a codebase.
In this repository, you will find:
-
A main.py file with no contents
-
A devcontainer that installs CodeTour and GitHub Copilot when the Codespace is created
-
A CodeTour to guide the developer through using GitHub Copilot to develop a rock, paper, scissors game
How to Use the Guided CodeTour
Navigate to this repository that I created. Then follow these instructions:
Choose “Use this template,” and “Open in a codespace.”
Choose the “Explorer Icon” on the left sidebar of your editor.
Toggle the CodeTour panel.
Press the Play button to start the tour.
Your CodeTour will begin! Your CodeTour will take you through ...
Get Use GitHub Copilot to Build a Rock, Paper, Scissors Game now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.