Mistři v programování na #hovnokod

int direction = 0;
...
if(direction == 0)
direction = 1;
if(direction == 1)
direction = 2;
if(direction == 2)
direction = 3;
if(direction == 3)
direction = 4;

if(direction > 3)
direction = 0;

Anonymous,