How can I make a turtle graphic program in c?

that only displays the movement of turtle by special character i.e *and allows user to:move upmove downmove leftmove rightand some other basic moves.

that only displays the movement of turtle by special character i.e *
and allows user to:
move up
move down
move left
move right
and some other basic moves.

or:that only displays the movement of turtle by special character i.e *and allows user to:move upmove downmove leftmove rightand some other basic moves.


or:Then you can just print the matrix. This illiminates display problems and gives your tutle a working region. Be sure to prevent out of index problems with your matrix...


or:Several problems although the initial error is that your second while loop starts with i already set to the end of the array (since the previous loop exits when it reads a 9)You also dont have any bounds checking, i.e. what happens if I enter 21 codes?You should replace all the constants (i.e. commands and directions) with an enumerations, makes the code much easier to readUse functions to remove duplicated code.You can simplify the direction handling.

Tags:movement,down,turtles,