שפת C/מערכים/תרגילים: הבדלים בין גרסאות בדף
תוכן שנמחק תוכן שנוסף
Crazy Ivan (שיחה | תרומות) מ קטגוריה |
|||
שורה 349:
x--;
//if we are on the limit: move limit one step to center & change direction
if(x
u++;
dir=(dir+1)%4;
שורה 358:
y++;
//if we are on the limit: move limit one step to center & change direction
if(y
r--;
dir=(dir+1)%4;
שורה 367:
x++;
//if we are on the limit: move limit one step to center & change direction
if(x
d--;
dir=(dir+1)%4;
שורה 376:
y--;
//if we are on the limit: move limit one step to center & change direction
if(y
l++;
dir=(dir+1)%4;
|