Skip to content

theprogrammingbird/game-of-life-walkthrough

 
 

Repository files navigation

Build Conway's Game of Life with GitHub Copilot

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.

Getting Started

Before you get started, make sure you have the following:

Create a New Repository

To get started, you need to create a fork of this repository. Follow these steps:

  1. Click the Fork button on this repository page.

    Click the use this template button

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.

  1. Fill in the repository name and description, and click the Create fork button.

    Create the repository

Set Up your Development Environment

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.

  1. Open Visual Studio Code and install the GitHub Codespaces extension if you haven't already.

  2. Sign in to your GitHub account in Visual Studio Code.

  3. Open the Command Palette:

    • On Windows / Linux: Ctrl + Shift + P
    • On macOS: Cmd + Shift + P
  4. Type > Codespaces: Create New Codespace, and select that option.

    Create a new Codespace through the Visual Studio Code command palette

  5. 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.

    Type in the name of your newly forked repository and select it

  6. 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.

    Click the Create codespace on main button

Next Steps

Now that you have your development environment set up, proceed to Getting Started with GitHub Copilot Chat to begin exploring GitHub Copilot's capabilities.

Table of Contents

  1. Copilot Chat
  2. Copilot Edits
  3. Copilot Instructions
  4. Using Inline Chat and Slash Commands
  5. README and Copilot Extensions
  6. GitHub Actions and GitHub Pages

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Found a mistake or want to suggest an improvement? Contributions are welcome! Submit a Pull Request.

About

A sample walkthrough to create Conway's Game of Life with GitHub Copilot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published