Towers of Hanoi: Difference between revisions

m
Line 304:
int height;
 
void text(int y, int i, int d, const char *s)
{
printf("\033[%d;%dH", height - y + 1, (height + 1) * (2 * i + 1) - d);
while (d--) printf("%s", s);
}
 
Anonymous user