nthiery / laby-jupyter

Laby-Jupyter: Learn programming, playing with ants and spider webs ;-) In Jupyter :-)
GNU General Public License v3.0
5 stars 3 forks source link

Leave a trace #12

Open nthiery opened 5 years ago

nthiery commented 5 years ago

Add command(s) to let the ant draw on the floor. This would open the door for a large range of turtle-style exercises, typically around for loops: draw a square, ...

To build on the metaphor, the ant could leave an odoriferous track. Well, which should be visible as well unlike in reality.

There could be a single command to draw on the current cell. Or two commands scent_on / scent_off -- equivalent to pen-down/pen up --

nthiery commented 5 years ago

The ant can now sow pebbles. Comme le petit poucet. 6fdfc2e05e0a93fe1cd70efef8858b59d93beb50. Maybe that's just enough.