[Tutor] my newbie program

Gregor Lingl glingl@aon.at
Thu Nov 21 00:29:01 2002


Scot Stevenson schrieb:

>Hi there, 
>
>This looks like a typo: 
>
>  
>
>>>     # DirectionSymbol: (deltaX, deltaY) Assumes 0,0 lower left corner
>>>     directions = {'n': (1, 0), 's': (-1, 0), 'w': (-1, 0), 'e': (1, 9)}
>>>      
>>>
>
>You probably want 'e' to be (1,0) and not (1,9)...
>
... in which case 'e' equaled 'n' (?)
so something like

directions = {'n': (0, 1), 's': ( 0, -1), 'w': (-1, 0), 'e': (1, 0)}

would serve better? (Or vice versa)
Gregor



>
>Y, Scot 
>
>  
>