Skip to content

suuus/ghcopilot-challenge-sesh2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GitHub Copilot Challenge ๐Ÿš€

Welcome to the GitHub Copilot Challenge! This repository contains three increasingly difficult challenges designed to help you explore and master GitHub Copilot Chat and GitHub Copilot Edits in Visual Studio Code.

๐ŸŽฏ Goal

The goal of these challenges is to familiarize yourself with:

  • Using GitHub Copilot Chat effectively
  • Leveraging Copilot Edits for code modifications
  • Understanding how to interact with Copilot for various programming tasks

๐ŸŽฎ Challenges

Each challenge has its own folder with source code, tests, and instructions:

  1. Challenge 1: String Manipulation - Beginner

    • Located in: challenges/challenge1/
    • Implementation file: challenges/challenge1/src/palindrome.js
    • Test file: challenges/challenge1/src/palindrome.test.js
  2. Challenge 2: Data Transformation - Intermediate

    • Located in: challenges/challenge2/
    • Implementation file: challenges/challenge2/src/employeeAnalytics.js
    • Test file: challenges/challenge2/src/employeeAnalytics.test.js
  3. Challenge 3: Algorithm Implementation - Advanced

    • Located in: challenges/challenge3/
    • Implementation file: challenges/challenge3/src/taskScheduler.js
    • Test file: challenges/challenge3/src/taskScheduler.test.js

โฑ๏ธ Time Frame

These challenges are designed to be completed in approximately 20 minutes:

  • Challenge 1: ~5 minutes
  • Challenge 2: ~7 minutes
  • Challenge 3: ~8 minutes

๐Ÿ› ๏ธ Setup

  1. Clone this repository
  2. Make sure you have Node.js installed
  3. Run npm install to install dependencies
  4. Use VS Code with GitHub Copilot and Copilot Chat extensions enabled

โœ… Running Tests

To verify your solutions, you can either:

Run all tests:

npm test

Or run tests for a specific challenge:

npm run test:challenge1
npm run test:challenge2
npm run test:challenge3

๐Ÿ’ก Tips for Using GitHub Copilot

  1. General Tips:

    • Use /help in Copilot Chat to explore available commands
    • Try both inline chat and the dedicated chat view
    • Experiment with Copilot Edits for code modifications
  2. When Working on Challenges:

    • Break down the problem into smaller parts
    • Ask Copilot to explain any code you don't understand
    • Use Copilot to help write test cases
    • Request optimization suggestions
  3. Useful Copilot Commands:

    • /explain - Get an explanation of selected code
    • /tests - Generate unit tests
    • /fix - Fix issues in your code
    • /doc - Generate documentation

๐Ÿ“ Project Structure

challenges/
โ”œโ”€โ”€ challenge1/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ palindrome.js
โ”‚   โ”‚   โ””โ”€โ”€ palindrome.test.js
โ”‚   โ””โ”€โ”€ README.md
โ”œโ”€โ”€ challenge2/
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ employeeAnalytics.js
โ”‚   โ”‚   โ””โ”€โ”€ employeeAnalytics.test.js
โ”‚   โ””โ”€โ”€ README.md
โ””โ”€โ”€ challenge3/
    โ”œโ”€โ”€ src/
    โ”‚   โ”œโ”€โ”€ taskScheduler.js
    โ”‚   โ””โ”€โ”€ taskScheduler.test.js
    โ””โ”€โ”€ README.md

Good luck with the challenges! ๐ŸŽ‰

About

GitHub Copilot Chat Challenge ๐Ÿš€

Resources

Stars

Watchers

Forks

Contributors