-
Notifications
You must be signed in to change notification settings - Fork 0
Home
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
This is a simple turtle graphics environment for the browser.
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.
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.
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.