Skip to content

The Caterpillar Control System is a console-based simulation of a caterpillar's movement. The system allows users to control the caterpillar by providing commands for movement, growth, and shrinking.

Notifications You must be signed in to change notification settings

Njuguna-JohnBrian/CaterpillarControlSystem

Repository files navigation

Caterpillar Control System

License: MIT C# Version

.NET Unit Tests

Overview

The Caterpillar Control System is a console-based simulation of a caterpillar's movement. The system allows users to control the caterpillar by providing commands for movement, growth, and shrinking.

Table of Contents

Features

  • Caterpillar Simulation: Simulate the movement, growth, and shrinking of a caterpillar on a console-based grid.
  • Interactive Console Interface: Receive user commands through a console interface.
  • Obstacles and Boosters: Navigate through obstacles and collect boosters for caterpillar manipulation.
  • Logging: Log movements, errors, and general actions to different log files.

Installation

  1. Clone the repository:

    git clone https://github.com/Njuguna-JohnBrian/CaterpillarControlSystem
  2. Navigate to the project directory:

    cd CaterpillarControlSystem
  3. Compile and run the application:

    dotnet run --project CaterpillarControlSystem.control 

Usage

  1. Run the application as instructed in the installation section.
  2. Follow the on-screen instructions to provide commands for caterpillar movement, growth, and shrinking.
  3. View the console output to see the caterpillar's current state and radar image.

Command List

  • U: Move Up
  • D: Move Down
  • L: Move Left
  • R: Move Right
  • G: Grow Caterpillar
  • S: Shrink Caterpillar
  • Q: Quit

Sample Movements

Here is an example series of motions you can try:

U: Move Up
D: Move Down
L: Move Left
R: Move Right
G: Grow Caterpillar
S: Shrink Caterpillar
Q: Quit

This series of motions moves the caterpillar in different directions and includes growth and shrinking actions.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the project.

License

This project is licensed under the MIT License

About

The Caterpillar Control System is a console-based simulation of a caterpillar's movement. The system allows users to control the caterpillar by providing commands for movement, growth, and shrinking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages