🚀 Neuridion for Kids

Learn to code by making cool stuff — no experience needed!

Hey there! You're about to learn how to talk to computers. It's like learning a magic language — you type words, and the computer does what you say. Ready? Let's go!

👋 Hey! Let's Code!

Your very first program is just one line. Type this:

Print("Hello, World!")

Now click the green Run button. You'll see this in the console:

Hello, World!

That's it! You just wrote your first program. Print tells the computer to show text on the screen. The text goes inside quotes "like this".

💡 Try this! Change the text to your name: Print("Hello, I'm Alex!")

💬 Make the Computer Talk

You can print as many lines as you want:

Print("My name is Neuridion")
Print("I am a computer")
Print("I can do math: 2 + 2 = " + (2 + 2).ToString())
My name is Neuridion
I am a computer
I can do math: 2 + 2 = 4

Cool, right? The computer can do math! The + between text glues them together. And .ToString() turns a number into text so you can glue it.

There's an even easier way — use $"..." to mix text and math:

Print($"5 times 3 is {5 * 3}")
Print($"100 divided by 4 is {100 / 4}")
5 times 3 is 15
100 divided by 4 is 25
✅ Remember: Put {...} around math inside $"..." and the computer calculates it for you!

📦 Variables Are Boxes

A variable is like a labeled box. You put something in it and use it later:

Var name As String = "Alex"
Var age As Integer = 10

Print($"Hi, I'm {name}!")
Print($"I'm {age} years old")
Print($"Next year I'll be {age + 1}!")
Hi, I'm Alex!
I'm 10 years old
Next year I'll be 11!

There are different types of boxes:

Var pizza As Double = 12.99
Var slices As Integer = 8
Var pricePerSlice As Double = pizza / slices

Print($"Each slice costs ${pricePerSlice}")
Each slice costs $1.62375
🎯 Challenge: Create variables for your pet's name and age, then print a sentence about them!

❓ Ask Questions

Want your program to talk to people? Use Console.ReadLine to ask for input:

Print("What's your name?")
Var name As String = Console.ReadLine()

Print($"Nice to meet you, {name}!")
Print($"Your name has {name.Length} letters!")
What's your name?
> Alex
Nice to meet you, Alex!
Your name has 4 letters!

The program waits for you to type something and press Enter. Whatever you type goes into the variable!

Print("How old are you?")
Var ageText As String = Console.ReadLine()
Var age As Integer = ageText.ToInteger()

Print($"In 10 years you'll be {age + 10}!")
Print($"That's {(age + 10) * 365} days from now!")
💡 Note: Console.ReadLine always gives you text. Use .ToInteger() to turn it into a number so you can do math with it!

🤔 Make Decisions

Programs can make choices with If / Then / Else:

Print("How old are you?")
Var age As Integer = Console.ReadLine().ToInteger()

If age >= 18 Then
    Print("You can drive a car!")
ElseIf age >= 13 Then
    Print("Almost there! A few more years.")
Else
    Print("You'll have to wait a bit longer!")
End If

Print($"But you CAN eat ice cream at any age!")

The computer checks each condition from top to bottom and runs the first one that's true.

You can compare things with:

Var password As String = "secret123"

Print("Enter the password:")
Var guess As String = Console.ReadLine()

If guess = password Then
    Print("Access granted! Welcome, agent.")
Else
    Print("Wrong password! Intruder alert!")
End If

🔄 Loops = Repeat!

Loops let you repeat things without typing them over and over:

For i = 1 To 5
    Print($"Count: {i}")
End For
Count: 1
Count: 2
Count: 3
Count: 4
Count: 5

Now let's make a star pattern:

For row = 1 To 5
    Var stars As String = ""
    For col = 1 To row
        stars = stars + "* "
    End For
    Print(stars)
End For

* * 
* * * 
* * * * 
* * * * * 

A pyramid! Each row adds one more star.

✅ How it works: The outer loop runs 5 times (rows). The inner loop runs row times, adding more stars each row.

You can also loop with While — it keeps going as long as something is true:

Var countdown As Integer = 10

While countdown > 0
    Print($"{countdown}...")
    countdown = countdown - 1
End While

Print("LIFTOFF!")
10...
9...
8...
7...
6...
5...
4...
3...
2...
1...
LIFTOFF!

🎮 Build a Mini Game

Let's build a number guessing game! The computer picks a secret number and you try to guess it:

// The computer picks a random number between 1 and 100
Var secret As Integer = Math.RandomInt(1, 100)
Var tries As Integer = 0
Var found As Boolean = False

Print("I'm thinking of a number between 1 and 100.")
Print("Can you guess it?")
Print("")

While found = False
    Print("Your guess:")
    Var guess As Integer = Console.ReadLine().ToInteger()
    tries = tries + 1

    If guess = secret Then
        Print($"YOU GOT IT in {tries} tries!")
        found = True
    ElseIf guess < secret Then
        Print("Too low! Try higher.")
    Else
        Print("Too high! Try lower.")
    End If
End While

If tries <= 5 Then
    Print("Amazing! You're a mind reader!")
ElseIf tries <= 10 Then
    Print("Great job!")
Else
    Print("You got there eventually!")
End If
🎮 Play it! Run this program and try to guess the number. A good strategy: always guess the middle of the remaining range!
🎯 Challenge: Can you change the game so the range is 1 to 50 instead? Or add a maximum number of tries?

🎨 Draw Something!

You can draw pictures with code using the Graphics module:

// Create a picture (400 pixels wide, 400 tall)
Var pic As Object = Graphics.CreatePicture(400, 400)

// Draw a blue sky
pic.SetFillColor(Color.RGB(135, 206, 235))
pic.FillRectangle(0, 0, 400, 300)

// Draw green grass
pic.SetFillColor(Color.RGB(34, 139, 34))
pic.FillRectangle(0, 300, 400, 100)

// Draw a yellow sun
pic.SetFillColor(Color.RGB(255, 223, 0))
pic.FillEllipse(270, 20, 100, 100)

// Draw a red house
pic.SetFillColor(Color.RGB(200, 50, 50))
pic.FillRectangle(100, 200, 150, 100)

// Draw a brown door
pic.SetFillColor(Color.RGB(139, 90, 43))
pic.FillRectangle(155, 250, 40, 50)

// Show the picture!
pic.Show()

When you run this, a window pops up with your drawing — a house with a sun and grass!

✅ Colors: Color.RGB(red, green, blue) makes any color. Each value goes from 0 to 255. Try different numbers!

Here are some shapes you can draw:

🎯 Challenge: Add windows to the house! Or draw a tree next to it!

🔊 Make Some Noise

The computer can talk! Use Speech.Say to make it speak out loud:

Speech.Say("Hello! I am your computer and I can talk!")

Make an interactive talking program:

Print("What should I say?")
Var words As String = Console.ReadLine()

Speech.Say(words)
Print($"I just said: {words}")

Or make a silly joke teller:

Var jokes As Array = [
    "Why do programmers prefer dark mode? Because light attracts bugs!",
    "What's a computer's favorite snack? Microchips!",
    "Why was the computer cold? It left its Windows open!"
]

Var pick As Integer = Math.RandomInt(0, jokes.Count - 1)
Print(jokes[pick])
Speech.Say(jokes[pick])
💡 Fun fact: Every time you run this, you get a random joke! Try running it multiple times!

🎉 You're a Programmer Now!

Wow, look what you've learned:

That's amazing! You now know the building blocks of every program ever made.

What to Try Next

✅ Pro tip: The best way to learn is to change things and see what happens. Take any example, modify it, and run it. You can't break anything — just have fun!

Happy coding! 🚀