Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/it1shka/code-adventure

Project to teach kids basics of programming (in active development)
https://github.com/it1shka/code-adventure

game ide learn-to-code platform playground programming-language

Last synced: about 1 month ago
JSON representation

Project to teach kids basics of programming (in active development)

Awesome Lists containing this project

README

        

# πŸ€– Code Adventure
Project to teach kids basics of programming

Screenshot 2024-09-01 at 19 08 21

## Welcome!

Welcome to the exciting world of
__"Peter the Robot's Clean-Up Adventure"!__
In this fun and engaging game, you'll meet
Peter, a friendly robot with a
big task ahead of him. Peter's hangar is filled
with a __jumble of boxes and junk__, and he needs
your help to tidy it up!



Peter wants to scatter the boxes around the hangar
to collect all the rubbish. To lend Peter a hand,
you'll write __a simple program__ to guide him.
Don't worry, thoughβ€”it's easy! The programming
language Peter uses has just __6 simple commands__.



Are you ready to help Peter turn his messy hangar
into a sparkling clean space? Let's get started
and have a blast coding together!


## Instructions:

There are currently __6 minimal instructions__
implemented in the language:


1. **_Move_**: robot makes _n_ steps forward
```instructions
move ${n} steps
```

2. **_Turn_**: robot turns either __right__ or __left__
```instructions
turn ${right | left}
```

3. **_Repeat_**: robot repeats _n_ times some
particular block of instructions
```instructions
repeat ${n} times
${block}
end
```

4. **_Define_**: define custom procedure
```instructions
define ${body} as
${body}
end
```

5. **_Execute_**: execute custom procedure
```
execute ${procedure_name}
```

6. **_Backtracking_**: robot returns to the
initial position (before the _backtracking_) automatically
```
backtracking
${body}
end
```

Additionally, you can leave comments
in your code. Comments start with symbol __'#'__:
```instructions
# This is a comment
# This is another comment
```

Sample program:
```instructions
define Square as
repeat 4 times
move 5 steps
turn right
end
end

backtracking
execute Square
end

move 6 steps
execute Square
```

## Project Status:
The development is temporarily frozen
since I don't have enough time for
project enhancement.
There is a chance it will be resumed
in the future.

If you would like to support me financially,
just let me know, maybe I will setup some sort
of donation service for that purpose.

My email is [email protected]