Thursday 11 March 2010

Maeve and Kate do some turtle programming

Maeve wanted a job (at about 7:45 (past time for bed) so I asked would she like a financial position, an engineering job, ... We fired up kturtle and discovered foreward (fw ), turnleft/turnright (tl/tr ). She liked typing in the commands.






maeve_1.turtle

forward 2
tl 90
fw 100
tl 90
fw 100
fw 10
fw 100
tr 90
tr 100

THEN we discovered with a center at the end of a sequence of moves that it's real easy to make spiral patterns! Just hit Run again and again and again.

Adding a space after commands wasn't intuitive. Kate joined in and was quite adventurous "pencolor 234444432,333" "fw 1110". Using keyboard arrows for editing text was new to Kate.


#clear
pencolor 0,255,0
forward 27
tl 90
fw 100
tl 90
fw 100
tl 33
fw 10
tr 77
fw 100
tr 90
fw 10
tr 100
fw 100
center

Past bedtime! Maeve gets ready herself completely. Then we make a repeat 675 loop to run Kate's sequence while she gets ready for bed.





kate_and_maeve_turt_wheel3.turtle

#clear
pencolor 255,255,0
repeat 675 {
forward 27
tl 90
fw 100
tl 10
fw 100
tl 33
fw 10
tr 66
fw 1110
tr 90
fw 10
tr 100
fw 100
center
}

We read Maeve's story which is mixed-up fairy tales. Then Kate's from library.

No comments: