This project is designed to mimic a simplified version of the turtle graphics approach. It provides basic methods to control the turtle and execute drawing commands.
moveUp(int distance): Moves the turtle upwards by the specified distance.moveDown(int distance): Moves the turtle downwards by the specified distance.turnLeft(int angle): Rotates the turtle to the left by the specified angle.turnRight(int angle): Rotates the turtle to the right by the specified angle.drawLine(int length): Draws a straight line of the given length.
turtlePosition: Tracks the current position of the turtle on the canvas.turtleDirection: Represents the current direction the turtle is facing.canvasSize: Defines the size of the drawing area.
src/: Contains the main source files,tests/: Includes unit tests for validating the methods,docs/: Documentation explaining how to use the project.