First 3 Programs - CattyCode/cattycode.github.io GitHub Wiki
π Your First 3 CattyCode Programs
Welcome to CattyCode! Letβs start with 3 simple programs to help you get the hang of things.
β οΈ Note: The Reload button only works in the Web Editor. If you're using the Desktop App, close and reopen
CattyCode.exe
to start fresh.
π 1. Hello World
Goal: Print your first message.
How to make it:
-
Drag a
print
block into the workspace. -
Drag a blank
text
block into theprint
block. -
Click the text block and type:
Hello, world!
π You just wrote your first CattyCode program!
π’ 2. Count to 5
Goal: Print numbers 1 to 5.
How to make it:
-
Drag a
repeat count
block into the workspace. -
Set the:
- First number to
1
- Second number to
5
- Third number (step) to
1
- First number to
-
Inside the loop, place a
print
block. -
Drag the pink
i
variable block into theprint
block.
π This loop will print each number from 1 to 5.
π 3. LOL Machine (Web Only)
Warning: Only use this in the Web Editor. It runs forever and the desktop version requires Task Manager to quit.
How to make it:
-
Drag a
repeat
block into the workspace. -
Add a
number
block into it and type:Infinity
(Make sure the box turns white, not red!)
-
Inside the loop, add a
print
block. -
Drag a blank
text
block intoprint
and type:LOL
π₯ Now it prints βLOLβ forever β until you stop the project!
You're all set! These 3 projects are your first steps into CattyCode. Have fun exploring more! πΊπ»