Skip to content
hobbestherat edited this page Feb 15, 2015 · 1 revision

Welcome to the bimbonium-programming wiki!

This contains some programs* that I wrote to teach my kids (Marcus and Lucas) about programming.

* Currently the plural form is not yet correct for this repository, I have uploaded only one piece so far to try out GitHub

Programmable Turtle for the Browser

This is a simple turtle graphics environment for the browser.

Usage

Point to a server that hosts the respective files e.g. http://bbos.org/2014/12/21/programming/index.html or download all files from js_turtle and open index.html. Edit the program with the simple commands e.g. step(); left(); step(); left(); step(); left(); step(); left(); press the Run button.

Program Details

The program is interpreted with Javascript eval. Upon Run the program is executed and movement functions are recorded. After the program is completed, the recorded steps are animated.

Hosting

WARNING: the current implementation executes arbitrary Javascript code (i.e. the code the user provided or copied from somewhere/url) in the context of the page, so better only do this if your domain has no relevant context, i.e. is completely static and the user is not logged-in in any ways.