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:

  1. Drag a print block into the workspace.

  2. Drag a blank text block into the print block.

  3. 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:

  1. Drag a repeat count block into the workspace.

  2. Set the:

    • First number to 1
    • Second number to 5
    • Third number (step) to 1
  3. Inside the loop, place a print block.

  4. Drag the pink i variable block into the print 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:

  1. Drag a repeat block into the workspace.

  2. Add a number block into it and type:

    Infinity
    

    (Make sure the box turns white, not red!)

  3. Inside the loop, add a print block.

  4. Drag a blank text block into print 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! πŸ˜ΊπŸ’»