Skip to content

Diegorestrepog1988/mini_turtle_ootask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Mini Turtle OOTask

Overview

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.

Method Names

  • 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.

Attribute Names

  • 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.

Project Structure

  • src/: Contains the main source files,
  • tests/: Includes unit tests for validating the methods,
  • docs/: Documentation explaining how to use the project.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages