[MWForum]Re: MicroWorlds wish list
Daniel Ajoy
mwforum@lists.mathcats.com
Sat, 23 Nov 2002 19:21:49 -0500
On 23 Nov 2002 at 22:46, Mike Sandy wrote:
> FOR instead of/as well as DOTIMES though if the latter is kept,
> change the initial variable value to 1 instead of 0
> - in line with REPEAT
>
Why 1 instead of 0? If you argue that the first turtle is t1,
I think the first turtle should be t0.
I like these behaviours:
dotimes [i 12] [show remainder :i 4]
0
1
2
3
0
1
2
3
0
1
2
3
dotimes [i 12] [show remainder :i 2]
0
1
0
1
0
1
0
1
0
1
0
1
cg dotimes [i 30] [
ifelse 0 = remainder :i 2 [pu] [pd]
setpos list (20 * int :i / 2) (100 - 200 * remainder :i 2)
]
Daniel
OpenWorld Learning