This repository contains a companion walkthrough to the video on Using GitHub Copilot to create Conway's Game of Life. You can follow the steps in this repository to achieve a similar result to the video.
In this tutorial, we'll build Conway's Game of Life from scratch using GitHub Copilot as our pair programming assistant. This simulation demonstrates how complex patterns can emerge from simple rules, making it an interesting project for learning both programming concepts and GitHub Copilot's capabilities.
Before you get started, make sure you have the following:
- A GitHub account
- A GitHub Copilot subscription (or trial)
- Visual Studio Code with the GitHub Codespaces extension installed
To get started, you need to create a fork of this repository. Follow these steps:
Note
This tutorial contains steps to publish your code to GitHub Pages. If you want to follow along with this part, then you should either make your repository public or make sure you have access to a plan that allows private repositories to be published to GitHub Pages.
Now that you have your repository set up, you need to set up your development environment. We'll use Visual Studio Code and GitHub Codespaces for this tutorial.
-
Open Visual Studio Code and install the GitHub Codespaces extension if you haven't already.
-
Sign in to your GitHub account in Visual Studio Code.
-
Open the Command Palette:
- On Windows / Linux: Ctrl + Shift + P
- On macOS: Cmd + Shift + P
-
Type
> Codespaces: Create New Codespace
, and select that option. -
Type in the name of your repository (e.g.
mona/game-of-life-walkthrough
) and select it from the list. After that, you will be asked to select an instance type for your Codespace. -
This will create a new Codespace for you. It may take a few moments to set up, but once it's ready, you'll be able to see the code in your editor.
Now that you have your development environment set up, proceed to Getting Started with GitHub Copilot Chat to begin exploring GitHub Copilot's capabilities.
- Copilot Chat
- Copilot Edits
- Copilot Instructions
- Using Inline Chat and Slash Commands
- README and Copilot Extensions
- GitHub Actions and GitHub Pages
This project is licensed under the MIT License - see the LICENSE file for details.
Found a mistake or want to suggest an improvement? Contributions are welcome! Submit a Pull Request.