// Fractal Turtle // fractal_turtle.c // // This program was written by YOUR-NAME-HERE (zXXXXXXX) // on INSERT-DATE-HERE // // A program which uses L-Systems to generate sequences of characters and // outputs their turtle interpretation to the termial. #include #define MAX_LENGTH 16384 #define TILE_PAINTED " #" #define TILE_BLANK " " int main(void) { printf("Initial characters (F, f, -, +): "); // TODO: Read an initial sequence of characters into an array printf("Rewriting rule for 'F': "); // TODO: Read the rewriting rule for 'F' into an array printf("Rewriting rule for 'f': "); // TODO: Read the rewriting rule for 'f' into an array printf("Number of times to apply the rewriting rules: "); // TODO: Get the number of time to rewrite the initial characters // TODO: // - Rewrite the intial sequence of charaters 'n' times // - Print the intermediate sequences of characters (after each rewrite) to // the terminal // - Output the turtle interpretation of the final sequence of characters to // the terminal return 0; }