Copilot

Meet Copilot!

Your fun coding buddy that helps you create amazing things with code. Let's learn and play together!

Copilot Terminal
Welcome to Copilot!
> What would you like to create today?
> I can help you make games, drawings, and more!
> Type your idea, and let's get started!
>

What is Copilot?

Copilot is like having a super smart friend who helps you write code! It's easy, fun, and perfect for kids who love to create.

Your Coding Helper

Copilot suggests code as you type, helping you create games, stories, and cool projects faster!

Create Fun Stuff

Make your own games, animations, and interactive stories that you can share with friends!

Learn While Playing

Discover how coding works through experimentation and play. It's like a puzzle game!

Fun with Code!

See what you can create with Copilot's help. Try changing the code to make something new!

Draw a Cat

This code makes a cute cat appear on the screen!

// Draw a cat with Copilot
function drawCat() {
  // Draw the body
  fill("gray");
  ellipse(200, 200, 100, 120);
  
  // Draw the head
  fill("gray");
  ellipse(200, 120, 80, 80);
  
  // Draw eyes
  fill("yellow");
  ellipse(180, 110, 15, 15);
  ellipse(220, 110, 15, 15);
  
  // Draw nose
  fill("pink");
  triangle(200, 120, 190, 130, 210, 130);
  
  // Draw whiskers
  line(170, 125, 140, 120);
  line(170, 130, 140, 135);
  line(230, 125, 260, 120);
  line(230, 130, 260, 135);
}

Catch the Ball

A simple game where you catch falling balls with your mouse!

// Catch the ball game
let paddleX = 200;
let ballY = 0;
let ballX = Math.random() * 400;
let score = 0;

function setup() {
  createCanvas(400, 300);
}

function draw() {
  background("lightblue");
  
  // Move paddle with mouse
  paddleX = mouseX;
  
  // Draw paddle
  fill("red");
  rect(paddleX, 270, 60, 10);
  
  // Move ball
  ballY = ballY + 5;
  
  // Draw ball
  fill("yellow");
  ellipse(ballX, ballY, 20, 20);
  
  // Reset ball when it hits bottom
  if (ballY > 300) {
    ballY = 0;
    ballX = Math.random() * 400;
  }
  
  // Check for catch
  if (ballY > 260 && ballX > paddleX && ballX < paddleX + 60) {
    score = score + 1;
    ballY = 0;
    ballX = Math.random() * 400;
  }
  
  // Display score
  textSize(20);
  text("Score: " + score, 10, 30);
}

Coding Quiz Time!

Test your coding knowledge with these fun questions. Can you get them all right?

1. What does "console.log()" do in JavaScript?

2. Which symbol is used for comments in JavaScript?

3. What does "if" do in coding?

Explore More!

Find more fun resources to learn coding with Copilot